cockroachdb / cockroachdb/cockroach

kv,storage: ability to decommission stores

Open
#131,469 2 comments 1 reaction 0 assignees View on GitHub
A-kv branch-master C-enhancement T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Currently, we support decommissioning one or more nodes, e.g. `cockroach node decommission N1 N2 ...`.

When a node has multiple stores attached, this will effectively decommission _all_ of the stores attached to it.

Improve the tooling to support decommissioning by _store_. This would allow, for example, removing of a faulty block device from a node without needing to decommission all other stores on the node.

Given the existing tooling, we'd probably want to think about the UX. Maybe something like a `cockroach decommission --store S1 --store S2 ...`?

**Note also the possible interaction with WAL failover. Before a store is removed, its "partner store" must stop relying on it for WAL failover.**

Jira issue: CRDB-42552

Epic CRDB-48087

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.