You are viewing an older version of this section. View current production version.
Join the SingleStore Community Today
Get expert advice, develop skills, and connect with others.

ATTACH LEAF ALL

Info

MemSQL Helios 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 MemSQL Commands ).

Example

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

Related Topics