rpk cluster brokers decommission
Decommission the given broker.
Decommissioning a broker removes it from the cluster.
A decommission request is sent to every broker in the cluster, only the cluster leader handles the request.
For safety on v22.x clusters, this command will not run if the requested
broker is in maintenance mode. As of v23.x, Redpanda supports
decommissioning a node that is currently in maintenance mode. If you are on
a v22.x cluster and need to bypass the maintenance mode check (perhaps your
cluster is unreachable), use the --skip-liveness-check flag.
By default this command returns as soon as the decommission is requested. Use
--wait to block until the decommission completes, printing progress as data
moves off the broker.
| This command was introduced in version v26.2.1. |
Flags
| Value | Type | Description |
|---|---|---|
|
duration |
How often to poll the decommission status while waiting; only used with |
|
bool |
If enabled, |
|
bool |
Wait until the decommission completes, printing progress as it goes. (New in v26.3.1) |
|
duration |
How long to wait for the decommission to complete (0 means no limit); only used with |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |