Skip to content

Dynamic membership change

Filipp Ozinov edited this page Jul 24, 2016 · 3 revisions

Dynamic membership change allows you to add or remove nodes from your cluster without cluster restart. You need to enable dynamicMembershipChange config option to use this feature.

Add new node:

  • call _addNodeToCluster with new node argument on one of the existing nodes
  • ensure that node was added - wait for callback or call _printStatus
  • launch new node with correct (new one) initial otherNodesAddrs

Remove node:

  • stop node that you want to remove
  • call _removeNodeFromCluster with node that you want to remove as argument, on one of the online nodes
  • ensure that node was removed - wait for callback or call _printStatus

If you want to add or remove several nodes, you should do it one by one.

Clone this wiki locally