Shrink a cluster
Last updated
Last updated
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.
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
Perform the following:
.
.
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
Type
Value
Limitations
Mandatory
Default
uuids
Comma-separated strings
Comma-separated drive identifiers
Yes
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
Type
Value
Limitations
Mandatory
Default
uuids
Comma-separated strings
Comma-separated drive identifiers
Yes
Perform the following:
To deactivate containers with their drives, run the following command:
weka cluster container deactivate <container-ids> [--allow-unavailable]
Parameters
Name
Type
Value
Limitations
Mandatory
Default
container-ids
Space-separated integers
Space-separated container identifiers
Yes
allow-unavailable
Boolean
Allow deactivation of an unavailable container
If the container returns, it will join the cluster in an active state
No
No
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
Type
Value
Limitations
Mandatory
Default
container-id
Comma-separated strings
Comma-separated container identifiers
Yes
.
.