# Percona HA not working over two availability zones

**URL:** https://forums.percona.com/t/percona-ha-not-working-over-two-availability-zones/31057
**Category:** Uncategorized
**Created:** [June 17, 2024, 12:57pm UTC](https://forums.percona.com/t/percona-ha-not-working-over-two-availability-zones/31057 "2024-06-17T12:57:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tdiallo](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@tdiallo](https://forums.percona.com/u/tdiallo)
#### Post date: [June 17, 2024, 12:57pm UTC](https://forums.percona.com/t/percona-ha-not-working-over-two-availability-zones/31057/1 "2024-06-17T12:57:13Z")

</div>

We are using 6 nodes cluster. 3 nodes located in NYC and 3 nodes located in California.

We are using Mysql for databases and installed Redhat SSO on redhat 8. Every time we have a network or power issue in one datacenter the cluster crashes and and application is not available.  
Our expectation was that the application would fail over to available datacenter.

1. How to fix the HA to work properly so that when we have and outage the application is accessible in the available datacenter?
2. How do a make this a true HA ?

---

<div class="post-metadata">

### Author: ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)
#### Post date: [June 17, 2024, 6:11pm UTC](https://forums.percona.com/t/percona-ha-not-working-over-two-availability-zones/31057/2 "2024-06-17T18:11:35Z")

</div>

Hello @tdiallo ,

> [@tdiallo](#):
>
> We are using 6 nodes cluster. 3 nodes located in NYC and 3 nodes located in California.

This is a bad design. You will have split-brain if the network goes down.

> [@tdiallo](#):
>
> Every time we have a network or power issue in one datacenter the cluster crashes and and application is not available.

Yes, see above.

> [@tdiallo](#):
>
> How to fix the HA to work properly so that when we have and outage the application is accessible in the available datacenter?

Have an odd number of nodes total. You can create a `garbd` process in a 3rd datacenter which will function as a additional voting member. If the link between dc1 and dc2 goes down, as long as dc1-\>dc3 and dc2-\>dc3 remains, then the cluster will remain online.

If dc1 goes completely offline, dc2 will remain as it has 3 nodes + the arbitrator (4 nodes) which is \> 50% of the total number of nodes (7).

If dc2 goes completely offline, dc1 will remain as it has 3 nodes + the arbitrator (4 nodes) which is \> 50% of the total number of nodes (7).

---

<div class="post-metadata">

### Author: ![tdiallo](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@tdiallo](https://forums.percona.com/u/tdiallo)
#### Post date: [June 17, 2024, 6:15pm UTC](https://forums.percona.com/t/percona-ha-not-working-over-two-availability-zones/31057/3 "2024-06-17T18:15:42Z")

</div>

Thank you … this is very informative
