SingleStore DB


Removes a leaf node from a cluster and rebalances its partitions into the rest of the cluster.

REMOVE LEAF 'host':port [FORCE]
  • Port value is 3306.

  • If the leaf does not have a pair, SingleStore DB 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 LEAF command 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 DB Commands ).

  • The FORCE flag disables the rebalancing behavior of REMOVE LEAF. 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 FORCE flag to disable automatic rebalancing.

  • If MemSQL Ops is not enabled for manual cluster control, then a REMOVE LEAF can result in the leaf being added back without user intervention.

REMOVE LEAF '':3306;

Related Topics