Shrink a cluster
Shrinking a cluster may be required when you need to reduce 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
Name | Value |
---|---|
| Comma-separated drive identifiers. |
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
Name | Value |
---|---|
Name | Value |
| Comma-separated drive identifiers. |
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
Name | Value | Default |
---|---|---|
| Space-separated container identifiers | |
| Allow deactivation of an unavailable container.
If the | No |
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
Name | Value |
---|---|
| Comma-separated container identifiers. |
Last updated