rpk redpanda mode
Enable a default configuration mode.
This command allows you to set one of the following modes: Development, Production, or Recovery.
| This command is only available on Linux. |
Mode details
Development mode
Development mode (development or dev) includes the following development-only settings:
-
Sets
developer_modetotrue. This starts Redpanda with dev-mode only settings, including:-
No minimal memory limits are enforced.
-
No core assignment rules for Redpanda brokers are enforced.
-
Enables write caching, which is a relaxed mode of
acks=allthat acknowledges a message as soon as it is received and acknowledged on a majority of brokers, without waiting for it to fsync to disk. This provides lower latency while still ensuring that a majority of brokers acknowledge the write. For more information, or to disable this, see write caching. -
Bypasses
fsync(from Seastar optionunsafe_bypass_fsync), which results in unrealistically fast clusters and may result in data loss.
-
-
Sets
overprovisionedtotrue. Redpanda expects a dev system to be an overprovisioned environment. Based on a Seastar option, settingoverprovisioneddisables thread affinity, zeros idle polling time, and disables busy-poll for disk I/O. -
Sets all autotuner tuners to
false. The tuners are intended to run only for production mode. -
Turns on protected mode while the
protected_modecluster property is unset. Admin API, Kafka, Schema Registry, and HTTP Proxy listeners without authentication or mTLS accept only loopback clients. Clusters created with Redpanda 26.2 or earlier keep protected mode off unlessprotected_modeis set explicitly.
Production mode
Production mode (production or prod) disables dev-mode settings:
-
developer_mode: false -
overprovisioned: false
While the protected_mode cluster property is unset, production mode leaves protected mode off after you restart the broker, so listeners without authentication accept remote clients. Switching to production mode doesn’t add authentication. Before you serve remote clients, configure authentication or mTLS on each listener.
It also enables a set of tuners of the autotuner. For descriptions about the tuners, see Tuners in the rpk redpanda tune list command reference.
Recovery mode
Recovery mode (recovery) sets the broker configuration property recovery_mode_enabled to true. This provides a stable environment for troubleshooting and restoring a failed cluster.
Production
-
Enforces optimal runtime checks.
-
Enables all
rpktuners, for you to runrpk redpanda tune. -
Leaves
protected_modeoff while that cluster property is unset, so listeners without authentication accept remote clients.
Development
-
Disables optimal checks and bypasses fsync, which results in unrealistically fast clusters and may result in data loss.
-
Disables all
rpktuners. The tuners are intended to run only for production mode. -
Turns
protected_modeon while that cluster property is unset: Admin API, Kafka, Schema Registry and HTTP Proxy listeners without authentication or mTLS accept only loopback clients. Clusters created with Redpanda 26.2 or earlier keep it off unless it is set explicitly. To serve remote clients, runrpk cluster config set protected_mode falseon the broker host, or switch to production mode and restart.
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |