Perform these steps to mark/unmark minions as read-only and to remove a cluster minion.

If the node_id parameter is required, it can be found inside /etc/cb/cluster.conf.

To mark minions as read-only:

  1. Stop the cluster.
    /usr/share/cb
  2. For each minion to remove, run the following command:
    /usr/share/cb/cbcluster change-node -N {node_id} -R True
  3. (Optional) If you have an eventless primary node and want it to contain events, run the following command:
    /usr/share/cb/cbcluster change-node -E True
  4. Start the cluster.

To unmark minions as read-only:

  1. Stop the cluster.
  2. For each minion to remove, run the following command:
    /usr/share/cb/cbcluster change-node -N {node_id} -R False
  3. (Optional) If you want to convert the primary node back to eventless, run the following command:
    /usr/share/cb/cbcluster change-node -E False
  4. Start the cluster.

To remove a cluster minion:

  1. Stop the cluster.
  2. For each minion to remove, run the following command:
    /usr/share/cb/cbcluster remove-node -N {node_id}
  3. Start the cluster.

Removed minions are no longer part of the cluster and can be shut down and de-provisioned.

Note:
  • Only read-only minions can be removed.
  • The system can remove a minion only if all storefiles have been copied to the primary node. If this is not the case, an error message states how many more files must be moved.