| name | rpk-redpanda |
| description | Operate a self-managed Redpanda broker process and node from the CLI using the `rpk redpanda` command family and `rpk iotune`: node lifecycle (start/stop), production vs. development mode, kernel autotuning, node configuration (redpanda.yaml), and per-node Admin API operations including broker decommission/recommission. Self-managed only — these commands operate the broker process on the node itself and don't apply to Redpanda Cloud clusters. Use when starting or stopping a broker, bootstrapping redpanda.yaml, switching node mode, running the autotuner, benchmarking disk I/O with iotune, or decommissioning a broker via the admin listener. For cluster-wide operations (cluster config, partition movement, maintenance mode, cluster health), see /redpanda:rpk-cluster. |
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] |
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
rpk redpanda config bootstrap --self <private-ip> --ips <ip1>,<ip2>,<ip3>
rpk redpanda mode production
sudo rpk redpanda tune all
sudo rpk iotune
rpk redpanda check
rpk redpanda start
rpk redpanda start --mode dev-container
rpk redpanda stop --timeout 10s
rpk redpanda config set redpanda.empty_seed_starts_cluster false
rpk redpanda config set rpk.tune_aio_events true
rpk redpanda config print
rpk cluster info -b --detailed
rpk cluster brokers decommission 4
rpk cluster brokers decommission-status 4 -d -H
rpk cluster brokers recommission 4
rpk redpanda admin partitions list 1 --leader-only
rpk cluster config list --node-id 0
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.
rpk cluster health
rpk cluster info -b --detailed
rpk cluster brokers decommission 4
rpk cluster brokers decommission-status 4 -d -H
rpk cluster brokers recommission 4
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
rpk redpanda tune list
rpk redpanda tune help <tuner>
sudo rpk iotune
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.