Shrink a cluster
Shrinking a cluster may be required to save the cluster's costs, and the performance degradation does not affect your business.
You can shrink the cluster by performing one of the following:
Remove only some drives from the cluster.
Remove containers with their allocated drives.
Removing drives or containers requires deactivating the drives you want to remove. But, if the deactivation leads to insufficient SSD capacity of the currently-provisioned filesystems, the WEKA system does not deactivate the drives, and shrinking the cluster is not allowed.
Before you begin
Run the following command to display a list of all the drives in the cluster with their details, such as UUID and status:
weka cluster drive
Remove only some drives from the cluster
Perform the following:
Deactivate drives
Drive deactivation starts an asynchronous process known as phasing out. It is a gradual redistribution of the data between the remaining drives in the system. On completion, the phased-out drives are in an inactive state. The WEKA cluster does not use inactive drives, but they still appear in the drives list.
To deactivate a drive, run the following command:
weka cluster drive deactivate <uuids>
Parameters
Note: Running the weka cluster drive
command is displayed whether the redistribution is still being performed.
Remove drives from the cluster
Once you remove a drive from the cluster, the drive is not recoverable.
To remove a drive, run the following command:
weka cluster drive remove <uuids>
Parameters
Remove containers with their allocated drives
Perform the following:
Deactivate containers
To deactivate containers with their drives, run the following command:
weka cluster container deactivate <container-ids> [--allow-unavailable]
Parameters
Remove containers from the cluster
Removing containers from the cluster switches them to a stem mode (not part of a cluster), so they can be reallocated to another cluster or purpose.
To remove the container from the cluster, run the following command:
weka cluster container remove <container-id>
Parameters
Last updated