Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query optimization, and usability that you won’t want to miss.

ATTACH LEAF ALL

Info

SingleStore Managed Service does not support this command.

Attaches all leaves in a cluster that are currently in the detached state.

Syntax

ATTACH LEAF ALL

Remarks

  • ATTACH LEAF ALL is equivalent to running ATTACH LEAF ... NO REBALANCE on every leaf in a cluster that is currently in the detached state. If you want the leaves to rebalance after reattaching, you must run REBALANCE PARTITIONS afterward. This will rebalance and synchronize all partitions in one operation.
  • Detached leaves automatically reattach. To disable this feature, set the global variable auto_attach to false. For more information see SET GLOBAL .
  • This command must be run on the master aggregator node (see Node Requirements for SingleStore DB Commands ).

Example

ATTACH LEAF ALL;
Query OK, 1 row affected (0.99 sec)

Related Topics