# HA of leaf nodes

**URL:** <https://www.singlestore.com/forum/t/ha-of-leaf-nodes/7386>\
**Category:** Uncategorized\
**Created:** [December 20, 2023, 10:08am UTC](https://www.singlestore.com/forum/t/ha-of-leaf-nodes/7386 "2023-12-20T10:08:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tchaitanya](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/t/779978/32.png) [@tchaitanya](https://www.singlestore.com/forum/u/tchaitanya)\
**Post date:** [December 20, 2023, 10:08am UTC](https://www.singlestore.com/forum/t/ha-of-leaf-nodes/7386/1 "2023-12-20T10:08:48Z")

</div>

Hi Everyone,

Greetings…!!

If we have a cluster setup of 2 aggregators and 6 leafs…and if we lose 2 leaf nodes from 1 availability group (1) and 1 leaf node from the availability group (2). Will my cluster still be available for the read/write operations or will it go down.?

---

<div class="post-metadata">

**Author:** ![pbelagatti](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/p/f4b2a3/32.png) [@pbelagatti](https://www.singlestore.com/forum/u/pbelagatti)\
**Post date:** [December 20, 2023, 3:30pm UTC](https://www.singlestore.com/forum/t/ha-of-leaf-nodes/7386/2 "2023-12-20T15:30:15Z")

</div>

It depends. If pair leaf nodes are both down then data won’t be available. If not, it will be available.

Check for the pair host and port using the view mentioned in this doc: [LEAVES · SingleStore Documentation](https://docs.singlestore.com/cloud/reference/information-schema-reference/workspace-component/leaves/)

Thanks

---

<div class="post-metadata">

**Author:** ![michael.arthur](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/michael.arthur/32/1452_2.png) [@michael.arthur](https://www.singlestore.com/forum/u/michael.arthur)\
**Post date:** [February 6, 2024, 12:29am UTC](https://www.singlestore.com/forum/t/ha-of-leaf-nodes/7386/3 "2024-02-06T00:29:35Z")

</div>

In the case where it is not a pair that goes down, will the cluster automatically move to the nodes in the other AG or are there manual steps required to do so? Assuming the downed nodes were temporary, once returned to service, will the pair automatically synch the data?

---

<div class="post-metadata">

**Author:** ![pbelagatti](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/p/f4b2a3/32.png) [@pbelagatti](https://www.singlestore.com/forum/u/pbelagatti)\
**Post date:** [February 6, 2024, 5:12pm UTC](https://www.singlestore.com/forum/t/ha-of-leaf-nodes/7386/4 "2024-02-06T17:12:56Z")

</div>

In a SingleStore cluster configured for high availability, if a leaf node goes down, the cluster will automatically failover partitions to its paired node within the configured availability group (AG), if in ‘paired’ mode, or rebalance across the cluster, if in ‘load\_balanced’ mode. This behavior occurs without manual intervention due to the cluster’s high availability features.

Once a downed node returns to service, it transitions from the ‘offline’ to the ‘attaching’ state. During this phase, the master aggregator detects the node and automatically runs `ATTACH LEAF` to reintroduce the leaf’s partitions back into the cluster. The system automatically attempts to reuse the data present on the leaf, initiating a process to synchronize and recover any changes missed while the node was down.

Refer the doc links.

> **[Enabling High Availability · SingleStore Documentation](https://docs.singlestore.com/db/v8.5/user-and-cluster-administration/high-availability-and-disaster-recovery/managing-high-availability/enabling-high-availability/)**
>
> SingleStore is a modern relational database for cloud and on-premises that delivers immediate insights for modern applications and analytical systems. Book a demo or trial today!

> **[Leaf States · SingleStore Documentation](https://docs.singlestore.com/db/v8.5/reference/sql-reference/cluster-management-commands/leaf-states/)**
>
> SingleStore is a modern relational database for cloud and on-premises that delivers immediate insights for modern applications and analytical systems. Book a demo or trial today!
