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.

Usage

rpk cluster brokers decommission [BROKER ID] [flags]

Flags

Value Type Description

--poll-interval

duration

How often to poll the decommission status while waiting; only used with --wait. Default: 5s. (New in v26.3.1)

--skip-liveness-check

bool

If enabled, rpk will issue the decommission request without checking if the broker is in maintenance mode.

-w, --wait

bool

Wait until the decommission completes, printing progress as it goes. (New in v26.3.1)

--wait-timeout

duration

How long to wait for the decommission to complete (0 means no limit); only used with --wait. The decommission continues on the cluster regardless. (New in v26.3.1)

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.