rpk redpanda: Node Lifecycle, Tuning & Broker Decommission
The rpk redpanda family operates a single Redpanda broker process and its
host node: starting/stopping the process, editing the node's local
redpanda.yaml, tuning the Linux kernel for production, and talking to a
broker's Admin API listener (including broker decommission/recommission).
rpk iotune (a separate top-level command) benchmarks the node's disk
hardware for the same node-provisioning story.
Self-managed only. These commands manage the broker process on the node
itself. They are not applicable to Redpanda Cloud (Serverless, BYOC,
Dedicated), where Redpanda operates the brokers. Most of the family is also
Linux-only: start, stop, mode, check, tune, config, and
iotune are hidden on macOS/Windows builds of rpk — only the admin
subtree (which talks to a possibly-remote Admin API) is available
everywhere.
Command Tree
| Command |
Purpose |
rpk redpanda start |
Start the local broker process (optionally tuning first) |
rpk redpanda stop |
Stop the local broker: SIGINT → SIGTERM → SIGKILL escalation |
rpk redpanda mode <mode> |
Switch node presets: production/prod, development/dev, recovery |
rpk redpanda check |
Verify the system meets Redpanda's requirements |
rpk redpanda tune <tuner>... | all |
The autotuner — optimize Linux kernel settings (root required) |
rpk redpanda tune list |
List tuners with enabled/supported status |
rpk redpanda tune help [TUNER] |
Describe a tuner in detail |
rpk redpanda config bootstrap |
Generate redpanda.yaml to form/join a cluster |
rpk redpanda config set <key> <value> |
Set node config values in redpanda.yaml |
rpk redpanda config print |
Display the node configuration (alias: dump) |
rpk redpanda config init |
(Deprecated) Set the node UUID after install |
rpk redpanda admin brokers list |
(Deprecated → rpk cluster info -b --detailed) List brokers via the admin listener |
rpk redpanda admin brokers decommission <ID> |
(Deprecated → rpk cluster brokers decommission) Remove a broker from the cluster |
rpk redpanda admin brokers decommission-status <ID> |
(Deprecated → rpk cluster brokers decommission-status) Monitor decommission progress |
rpk redpanda admin brokers recommission <ID> |
(Deprecated → rpk cluster brokers recommission) Abort an in-progress decommission |
rpk redpanda admin partitions list [ID] |
List the partitions hosted on one broker |
rpk redpanda admin config print |
(Deprecated → rpk cluster config list --node-id <ID>) Display a broker's effective configuration |
rpk redpanda admin config log-level set |
(Deprecated → rpk cluster loggers set) Temporarily change a broker's logger levels |
rpk iotune |
Benchmark disk I/O and write io-config.yaml for the broker to read at startup |
v26.2 relocation. The rpk redpanda admin brokers and rpk redpanda admin config commands are now hidden and deprecated. Broker
decommission/recommission moved to rpk cluster brokers, log-level control
to rpk cluster loggers, and per-node config printing to rpk cluster config list --node-id <ID> (all in the rpk-cluster skill). The old spellings
still run — they forward to the new commands — but new automation should use
the rpk cluster ... forms. rpk redpanda admin partitions list is
unaffected.
Quickstart
# --- Provision a production node (run on the node, as root where noted) ---
# 1. Generate redpanda.yaml with this node's IP and the seed servers
rpk redpanda config bootstrap --self <private-ip> --ips <ip1>,<ip2>,<ip3>
# 2. Switch the node to production mode (enables the production tuner set)
rpk redpanda mode production
# 3. Run the autotuner (requires root; Linux kernel settings)
sudo rpk redpanda tune all
# 4. Benchmark disk I/O once per hardware type (defaults: 10m run,
# writes /etc/redpanda/io-config.yaml which redpanda reads at startup)
sudo rpk iotune
# 5. Verify the system meets requirements, then start
rpk redpanda check
rpk redpanda start
# --- Development: one-shot local broker with dev presets ---
rpk redpanda start --mode dev-container
# --- Stop the local broker (SIGINT, then SIGTERM, then SIGKILL) ---
rpk redpanda stop --timeout 10s
# --- Node configuration (redpanda.yaml on local disk) ---
rpk redpanda config set redpanda.empty_seed_starts_cluster false
rpk redpanda config set rpk.tune_aio_events true
rpk redpanda config print
# --- Broker decommission (canonical since v26.2; rpk-cluster skill) ---
rpk cluster info -b --detailed # list brokers
rpk cluster brokers decommission 4
rpk cluster brokers decommission-status 4 -d -H # monitor
rpk cluster brokers recommission 4 # abort (only while in progress)
# --- Per-broker diagnostics via the admin listener ---
rpk redpanda admin partitions list 1 --leader-only
rpk cluster config list --node-id 0 # a broker's effective config
rpk cluster loggers set storage --node-id 0 -l debug -e 300
Decision Rules
rpk redpanda vs rpk cluster: rpk redpanda is node-level (the
local process, the local redpanda.yaml, per-broker admin operations).
rpk cluster is cluster-wide (cluster config, health, partition
balancing/movement, maintenance mode, self-test) — see the rpk-cluster
skill.
- Broker decommission moved in v26.2. The canonical commands are now
rpk cluster brokers decommission/decommission-status/recommission
(rpk-cluster skill). The rpk redpanda admin brokers ... spellings still
work but are hidden, deprecated aliases that forward there.
- Maintenance mode is NOT here. Draining leadership for a rolling
restart is
rpk cluster maintenance enable/disable/status (rpk-cluster
skill). Entering maintenance mode before decommissioning is optional —
decommission drains leadership gracefully on its own.
- Node config vs cluster config: properties in the local
redpanda.yaml (listeners, seeds, data dir, rpk.tune_* tuner flags)
are set with rpk redpanda config set and generally need a broker
restart. Cluster-wide properties (retention, tiered storage, etc.) are
rpk cluster config set and propagate to all nodes.
tune vs iotune: rpk redpanda tune (the autotuner) modifies
Linux kernel settings; rpk iotune benchmarks the disks and
writes an I/O properties file that redpanda reads at startup. A
production node wants both. iotune output is reusable across nodes with
identical hardware.
- Which node does a command touch?
start, stop, mode, check,
tune, config, and iotune act on the local machine. The admin
subtree targets whatever rpk.admin_api.addresses (or
-X admin.hosts=...) points at, so it can be run from anywhere.
- Not for local dev containers: to spin up throwaway local clusters in
Docker, use
rpk container (see the rpk skill) instead of
rpk redpanda start.
Broker Decommission (Top-Tier Ops Task)
Decommissioning permanently removes a broker: the controller leader moves
all of its partition replicas to the remaining brokers, then removes it
from the cluster. A decommissioned broker cannot rejoin, and its node ID
must never be reused.
Since v26.2 the canonical commands are rpk cluster brokers ... (rpk-cluster
skill); the rpk redpanda admin brokers ... aliases still work but are hidden
and deprecated.
# 1. Pre-check: cluster healthy, and remaining brokers can absorb the data
rpk cluster health
rpk cluster info -b --detailed
# 2. Start the decommission
rpk cluster brokers decommission 4
# 3. Monitor until every partition reaches 100% (add -d for bytes moved/remaining)
rpk cluster brokers decommission-status 4 -d -H
# 4. Changed your mind while it is still moving data? Abort:
rpk cluster brokers recommission 4
# 5. When complete, verify removal, then shut the node's process down
rpk cluster info -b --include-decommissioned
Before decommissioning, confirm the remaining broker count still satisfies
the highest topic replication factor, rack-awareness spread, disk capacity,
and partition-per-core limits. If progress stalls, check for leaderless
partitions and consider raising raft_learner_recovery_rate. Full
pre-checks, failure modes, --skip-liveness-check semantics, and the
maintenance-mode interaction are in
admin-and-decommission.md.
The Autotuner and iotune
rpk redpanda tune identifies the node's hardware and optimizes the Linux
kernel for Redpanda (disk IRQs, scheduler, AIO limits, swappiness, CPU
governor, and more). Run it as root, as part of production deployment, on
every broker node. Do not run it in Azure self-managed environments.
sudo rpk redpanda tune all # run every enabled tuner
rpk redpanda tune list # tuners + enabled/supported status (live source of truth)
rpk redpanda tune help <tuner> # what one tuner does
sudo rpk iotune # disk benchmark -> /etc/redpanda/io-config.yaml
The available tuners and their support status vary by kernel, hardware, and
cloud — always introspect with rpk redpanda tune list rather than relying
on a static list. Each tuner is toggled by an rpk.tune_* key in
redpanda.yaml (for example rpk.tune_aio_events), set via
rpk redpanda config set; rpk redpanda mode production enables the
production tuner set in one step. Details, IRQ modes (sq/sq_split/mq),
the redpanda-tuner systemd service, and iotune reuse across identical
hardware are in
node-lifecycle-and-tuning.md.
Reference Directory
- node-lifecycle-and-tuning.md:
rpk redpanda start (flags, --mode dev-container, tuning-at-start,
well-known-io), stop (signal escalation), mode
(production/development/recovery semantics), check, the autotuner
(tune, tune list, tune help, IRQ modes, systemd unit), and
rpk iotune (flags, output file, reuse workflow).
- admin-and-decommission.md: the
rpk redpanda admin subtree — brokers list/decommission/ decommission-status/recommission with the full safe-decommission
workflow, capacity pre-checks, stall troubleshooting, and
maintenance-mode interaction; partitions list; config print; and
config log-level set.
- config-bootstrap.md: node configuration —
rpk redpanda config bootstrap (forming a cluster, --self, --ips,
advertised addresses), config set (dot paths, YAML/JSON values, arrays),
config print, the deprecated config init, and node-vs-cluster config
rules.
- SOURCES.md: source map — where each claim comes
from and what is deferred to live introspection.
1---2name: rpk-redpanda3description: >-4 Operate a self-managed Redpanda broker process and node from the CLI using the5 `rpk redpanda` command family and `rpk iotune`: node lifecycle (start/stop),6 production vs. development mode, kernel autotuning, node configuration7 (redpanda.yaml), and per-node Admin API operations including broker8 decommission/recommission. Self-managed only — these commands operate the9 broker process on the node itself and don't apply to Redpanda Cloud clusters.10 Use when starting or stopping a broker, bootstrapping redpanda.yaml, switching11 node mode, running the autotuner, benchmarking disk I/O with iotune, or12 decommissioning a broker via the admin listener. For cluster-wide operations13 (cluster config, partition movement, maintenance mode, cluster health), see14 /redpanda:rpk-cluster.15metadata:16 source: https://skillmd.com/skills/redpanda-data/rpk-redpanda17---1819# rpk redpanda: Node Lifecycle, Tuning & Broker Decommission2021The `rpk redpanda` family operates a **single Redpanda broker process and its22host node**: starting/stopping the process, editing the node's local23`redpanda.yaml`, tuning the Linux kernel for production, and talking to a24broker's Admin API listener (including broker decommission/recommission).25`rpk iotune` (a separate top-level command) benchmarks the node's disk26hardware for the same node-provisioning story.2728**Self-managed only.** These commands manage the broker process on the node29itself. They are not applicable to Redpanda Cloud (Serverless, BYOC,30Dedicated), where Redpanda operates the brokers. Most of the family is also31**Linux-only**: `start`, `stop`, `mode`, `check`, `tune`, `config`, and32`iotune` are hidden on macOS/Windows builds of rpk — only the `admin`33subtree (which talks to a possibly-remote Admin API) is available34everywhere.3536## Command Tree3738| Command | Purpose |39|---|---|40| `rpk redpanda start` | Start the local broker process (optionally tuning first) |41| `rpk redpanda stop` | Stop the local broker: SIGINT → SIGTERM → SIGKILL escalation |42| `rpk redpanda mode <mode>` | Switch node presets: `production`/`prod`, `development`/`dev`, `recovery` |43| `rpk redpanda check` | Verify the system meets Redpanda's requirements |44| `rpk redpanda tune <tuner>...` \| `all` | The autotuner — optimize Linux kernel settings (root required) |45| `rpk redpanda tune list` | List tuners with enabled/supported status |46| `rpk redpanda tune help [TUNER]` | Describe a tuner in detail |47| `rpk redpanda config bootstrap` | Generate `redpanda.yaml` to form/join a cluster |48| `rpk redpanda config set <key> <value>` | Set node config values in `redpanda.yaml` |49| `rpk redpanda config print` | Display the node configuration (alias: `dump`) |50| `rpk redpanda config init` | (Deprecated) Set the node UUID after install |51| `rpk redpanda admin brokers list` | (Deprecated → `rpk cluster info -b --detailed`) List brokers via the admin listener |52| `rpk redpanda admin brokers decommission <ID>` | (Deprecated → `rpk cluster brokers decommission`) Remove a broker from the cluster |53| `rpk redpanda admin brokers decommission-status <ID>` | (Deprecated → `rpk cluster brokers decommission-status`) Monitor decommission progress |54| `rpk redpanda admin brokers recommission <ID>` | (Deprecated → `rpk cluster brokers recommission`) Abort an in-progress decommission |55| `rpk redpanda admin partitions list [ID]` | List the partitions hosted on one broker |56| `rpk redpanda admin config print` | (Deprecated → `rpk cluster config list --node-id <ID>`) Display a broker's effective configuration |57| `rpk redpanda admin config log-level set` | (Deprecated → `rpk cluster loggers set`) Temporarily change a broker's logger levels |58| `rpk iotune` | Benchmark disk I/O and write `io-config.yaml` for the broker to read at startup |5960> **v26.2 relocation.** The `rpk redpanda admin brokers` and `rpk redpanda61> admin config` commands are now **hidden and deprecated**. Broker62> decommission/recommission moved to `rpk cluster brokers`, log-level control63> to `rpk cluster loggers`, and per-node config printing to `rpk cluster config64> list --node-id <ID>` (all in the **rpk-cluster** skill). The old spellings65> still run — they forward to the new commands — but new automation should use66> the `rpk cluster ...` forms. `rpk redpanda admin partitions list` is67> unaffected.6869## Quickstart7071```bash72# --- Provision a production node (run on the node, as root where noted) ---7374# 1. Generate redpanda.yaml with this node's IP and the seed servers75rpk redpanda config bootstrap --self <private-ip> --ips <ip1>,<ip2>,<ip3>7677# 2. Switch the node to production mode (enables the production tuner set)78rpk redpanda mode production7980# 3. Run the autotuner (requires root; Linux kernel settings)81sudo rpk redpanda tune all8283# 4. Benchmark disk I/O once per hardware type (defaults: 10m run,84# writes /etc/redpanda/io-config.yaml which redpanda reads at startup)85sudo rpk iotune8687# 5. Verify the system meets requirements, then start88rpk redpanda check89rpk redpanda start9091# --- Development: one-shot local broker with dev presets ---92rpk redpanda start --mode dev-container9394# --- Stop the local broker (SIGINT, then SIGTERM, then SIGKILL) ---95rpk redpanda stop --timeout 10s9697# --- Node configuration (redpanda.yaml on local disk) ---98rpk redpanda config set redpanda.empty_seed_starts_cluster false99rpk redpanda config set rpk.tune_aio_events true100rpk redpanda config print101102# --- Broker decommission (canonical since v26.2; rpk-cluster skill) ---103rpk cluster info -b --detailed # list brokers104rpk cluster brokers decommission 4105rpk cluster brokers decommission-status 4 -d -H # monitor106rpk cluster brokers recommission 4 # abort (only while in progress)107108# --- Per-broker diagnostics via the admin listener ---109rpk redpanda admin partitions list 1 --leader-only110rpk cluster config list --node-id 0 # a broker's effective config111rpk cluster loggers set storage --node-id 0 -l debug -e 300112```113114## Decision Rules115116- **`rpk redpanda` vs `rpk cluster`:** `rpk redpanda` is node-level (the117 local process, the local `redpanda.yaml`, per-broker admin operations).118 `rpk cluster` is cluster-wide (cluster config, health, partition119 balancing/movement, maintenance mode, self-test) — see the **rpk-cluster**120 skill.121- **Broker decommission moved in v26.2.** The canonical commands are now122 `rpk cluster brokers decommission/decommission-status/recommission`123 (rpk-cluster skill). The `rpk redpanda admin brokers ...` spellings still124 work but are hidden, deprecated aliases that forward there.125- **Maintenance mode is NOT here.** Draining leadership for a rolling126 restart is `rpk cluster maintenance enable/disable/status` (rpk-cluster127 skill). Entering maintenance mode before decommissioning is **optional** —128 decommission drains leadership gracefully on its own.129- **Node config vs cluster config:** properties in the local130 `redpanda.yaml` (listeners, seeds, data dir, `rpk.tune_*` tuner flags)131 are set with `rpk redpanda config set` and generally need a broker132 restart. Cluster-wide properties (retention, tiered storage, etc.) are133 `rpk cluster config set` and propagate to all nodes.134- **`tune` vs `iotune`:** `rpk redpanda tune` (the autotuner) modifies135 Linux **kernel** settings; `rpk iotune` **benchmarks the disks** and136 writes an I/O properties file that redpanda reads at startup. A137 production node wants both. `iotune` output is reusable across nodes with138 identical hardware.139- **Which node does a command touch?** `start`, `stop`, `mode`, `check`,140 `tune`, `config`, and `iotune` act on the **local machine**. The `admin`141 subtree targets whatever `rpk.admin_api.addresses` (or142 `-X admin.hosts=...`) points at, so it can be run from anywhere.143- **Not for local dev containers:** to spin up throwaway local clusters in144 Docker, use `rpk container` (see the rpk skill) instead of145 `rpk redpanda start`.146147## Broker Decommission (Top-Tier Ops Task)148149Decommissioning permanently removes a broker: the controller leader moves150all of its partition replicas to the remaining brokers, then removes it151from the cluster. **A decommissioned broker cannot rejoin**, and its node ID152must never be reused.153154Since v26.2 the canonical commands are `rpk cluster brokers ...` (rpk-cluster155skill); the `rpk redpanda admin brokers ...` aliases still work but are hidden156and deprecated.157158```bash159# 1. Pre-check: cluster healthy, and remaining brokers can absorb the data160rpk cluster health161rpk cluster info -b --detailed162163# 2. Start the decommission164rpk cluster brokers decommission 4165166# 3. Monitor until every partition reaches 100% (add -d for bytes moved/remaining)167rpk cluster brokers decommission-status 4 -d -H168169# 4. Changed your mind while it is still moving data? Abort:170rpk cluster brokers recommission 4171172# 5. When complete, verify removal, then shut the node's process down173rpk cluster info -b --include-decommissioned174```175176Before decommissioning, confirm the remaining broker count still satisfies177the highest topic replication factor, rack-awareness spread, disk capacity,178and partition-per-core limits. If progress stalls, check for leaderless179partitions and consider raising `raft_learner_recovery_rate`. Full180pre-checks, failure modes, `--skip-liveness-check` semantics, and the181maintenance-mode interaction are in182[admin-and-decommission.md](references/admin-and-decommission.md).183184## The Autotuner and iotune185186`rpk redpanda tune` identifies the node's hardware and optimizes the Linux187kernel for Redpanda (disk IRQs, scheduler, AIO limits, swappiness, CPU188governor, and more). Run it as root, as part of production deployment, on189every broker node. Do not run it in Azure self-managed environments.190191```bash192sudo rpk redpanda tune all # run every enabled tuner193rpk redpanda tune list # tuners + enabled/supported status (live source of truth)194rpk redpanda tune help <tuner> # what one tuner does195sudo rpk iotune # disk benchmark -> /etc/redpanda/io-config.yaml196```197198The available tuners and their support status vary by kernel, hardware, and199cloud — always introspect with `rpk redpanda tune list` rather than relying200on a static list. Each tuner is toggled by an `rpk.tune_*` key in201`redpanda.yaml` (for example `rpk.tune_aio_events`), set via202`rpk redpanda config set`; `rpk redpanda mode production` enables the203production tuner set in one step. Details, IRQ modes (`sq`/`sq_split`/`mq`),204the `redpanda-tuner` systemd service, and iotune reuse across identical205hardware are in206[node-lifecycle-and-tuning.md](references/node-lifecycle-and-tuning.md).207208## Reference Directory209210- [node-lifecycle-and-tuning.md](references/node-lifecycle-and-tuning.md):211 `rpk redpanda start` (flags, `--mode dev-container`, tuning-at-start,212 well-known-io), `stop` (signal escalation), `mode`213 (production/development/recovery semantics), `check`, the autotuner214 (`tune`, `tune list`, `tune help`, IRQ modes, systemd unit), and215 `rpk iotune` (flags, output file, reuse workflow).216- [admin-and-decommission.md](references/admin-and-decommission.md): the217 `rpk redpanda admin` subtree — `brokers list/decommission/218 decommission-status/recommission` with the full safe-decommission219 workflow, capacity pre-checks, stall troubleshooting, and220 maintenance-mode interaction; `partitions list`; `config print`; and221 `config log-level set`.222- [config-bootstrap.md](references/config-bootstrap.md): node configuration —223 `rpk redpanda config bootstrap` (forming a cluster, `--self`, `--ips`,224 advertised addresses), `config set` (dot paths, YAML/JSON values, arrays),225 `config print`, the deprecated `config init`, and node-vs-cluster config226 rules.227- [SOURCES.md](references/SOURCES.md): source map — where each claim comes228 from and what is deferred to live introspection.