Nodes can be gracefully removed from a cluster by disabling all partitions on the node. When a node is disabled all active partitions on the node failover to the next highest priority replica and all replication to the node is terminated. If there is no replica node defined for a partition that is active on the node being disabled, the partition is abandoned after confirmation from the administrator.
The following steps are required to remove a node from a cluster:
Disable all active partitions.
Figure 6.13, “Disabling partitions on a node” shows
partition XX
as Unavailable
after
being disabled on node C
. Partitions can be disabled in
two ways:
Normal - this is the default. Disable will fail if any partitions would be abandoned.
Force - Disable will succeed, even if partitions would be abandoned.
A node can also leave a cluster using this command.
administrator servicename=C leave cluster