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:
- Stop the cluster.
/usr/share/cb/cbcluster stop
- For each minion to remove, run the following command:
/usr/share/cb/cbcluster change-node -N {node_id} -R True
- (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
- Start the cluster.
To unmark minions as read-only:
- Stop the cluster.
- For each minion to remove, run the following command:
/usr/share/cb/cbcluster change-node -N {node_id} -R False
- (Optional) If you want to convert the primary node back to eventless, run the following command:
/usr/share/cb/cbcluster change-node -E False
- Start the cluster.
To remove a cluster minion:
- Stop the cluster.
- For each minion to remove, run the following command:
/usr/share/cb/cbcluster remove-node -N {node_id}
- 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.