ATTACH LEAF ALL
On this page
Attaches all leaves in a cluster that are currently in the detached state.
Syntax
ATTACH LEAF ALL [FORCE] [NO REBALANCE]
Remarks
-
ATTACH LEAF ALLis equivalent to runningATTACH LEAFon every leaf in a cluster that is currently in thedetachedstate.If you want the leaves to fully rebalance after reattaching, you must run REBALANCE PARTITIONSafterward.This will rebalance and synchronize all partitions in one operation. To avoid the partial rebalance that is run automatically (after
attach_), userebalance_ delay_ seconds ATTACH LEAF ALL NO REBALANCE. -
FORCEis optional.Using FORCEoverrides any conflicts that would preventATTACH LEAF ALLfrom running.In practice, this happens when the data on the leaf has diverged away from the current state of the cluster (for example, a database was recreated while the leaf was down). -
Detached leaves automatically reattach.
To disable this feature, set the global variable auto_toattach false.For more information see SET GLOBAL . -
This command must be run on the master aggregator node (see Node Requirements for SingleStore Commands ).
-
This command causes implicit commits.
Refer to COMMIT for more information. -
Refer to the Permission Matrix for the required permissions.
Example
ATTACH LEAF ALL;
Query OK, 1 row affected (0.99 sec)Related Topics
Last modified: July 31, 2023