On this page
Removes a leaf node from a cluster without deleting its data.
This command rebalances the leaf node’s partitions into the remaining cluster, removes the specified leaf node from the Master Aggregator, and the leaf node will be removed from the SHOW LEAVES command.
While the cluster will no longer know about this leaf node, Toolbox will still know that
memsqlctlrecognizes that there is a running
memsqlprocess which is now in the
A leaf node that has been removed can be added back to the cluster, without any loss of data, by using the ADD LEAF command.
This command causes implicit commits.
See COMMIT for more information.
Refer to sdb-admin delete-node to delete a leaf node and its data.
Refer to the Permission Matrix for the required permission.
REMOVE LEAF 'host':port [FORCE]
Port value is 3306.
If the leaf does not have a pair, SingleStore will rebalance its partitions onto the remaining leaves before removing it.
After this rebalance process is over, the partition databases that were moved are no longer present on the node.
You must use the
ADD LEAFcommand if you want to reintroduce the removed leaf into the system.
This command can be run on the master aggregator node, or a child aggregator node (see Node Requirements for SingleStore Commands ).
FORCEflag disables the rebalancing behavior of
This behavior is designed to keep the database online while you remove a leaf from the system. However, if you are performing maintenance and want to quickly remove a leaf node without keeping the database online, then use the
FORCEflag to disable automatic rebalancing.
If MemSQL Ops is not enabled for manual cluster control, then a
REMOVE LEAFcan result in the leaf being added back without user intervention.
REMOVE LEAF '192.168.1.110':3306;
Removes all leaf nodes without removing the data.
REMOVE LEAF section above for further information.
REMOVE LEAVES [IF EXISTS] ('host_1':port_1, ..., 'host_n':port_n) [FORCE]
REMOVE LEAVESis an all-or-nothing command either all the leaves will be removed, or none of them will.
REMOVE LEAVES ('192.168.1.110':3306, '192.168.1.111':3306, '192.168.1.112':3306);
Last modified: July 31, 2023