Skip to content

Consider remaining disk space when decommissioning a node #71757

@data-matt

Description

@data-matt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cli-adminCLI commands that pertain to controlling and configuring nodesA-kv-decom-rolling-restartDecommission and Rolling RestartsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV Team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions