rpk redpanda mode

Development mode

Development (dev) mode includes the following development-only settings:

  • Sets developer_mode to true. This starts Redpanda with dev-mode only settings, including:

    • No minimal memory limits are enforced.

    • No core assignment rules for Redpanda nodes are enforced.

    • Bypasses fsync (from Seastar option unsafe_bypass_fsync), which results in unrealistically fast clusters and may result in data loss.

  • Sets overprovisioned to true. Redpanda expects a dev system to be an overprovisioned environment. Based on a Seastar option, setting overprovisioned disables 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.

Production mode

Production (prod) mode disables dev-mode settings:

  • developer_mode: false

  • overprovisioned: false

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.

Usage

rpk redpanda mode <mode> [flags]

Flags

Value Type Description

-h, --help

-

Help for mode.

--config

string

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

-X, --config-opt

stringArray

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

--profile

string

rpk profile to use.

-v, --verbose

-

Enable verbose logging.