Consider remaining disk space when decommissioning a node #71757
Labels
A-cli-admin
CLI commands that pertain to controlling and configuring nodes
A-kv-decom-rolling-restart
Decommission and Rolling Restarts
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Projects
Is your feature request related to a problem? Please describe.
Our operators have automated the provisioning of cockroachdb clusters on-premise. We would like to be able ask cockroachdb if there will be enough disk space left when we downscale a cluster from X to Y nodes.
For example, will we have enough space after reducing the cluster size from 20 to 5 nodes?
Describe the solution you'd like
A solution to ask this question from SQL layer would be easy for operators to use.
Alternatively:
cockroach node decommission --dry_run --consider-disk-space
Describe alternatives you've considered
Manually retrieving disk usage and comparing with disk sizes.
Additional context
This could be part of an epic and linked to #70486
gz#10216
Jira issue: CRDB-10757
The text was updated successfully, but these errors were encountered: