Skip to main content
Version: 23.1

rpk redpanda mode

Enable a default configuration mode. This command changes the local redpanda.yaml and enable or disable the tuners based on each mode. For example prod enables multiple tuners whereas mode dev disable all tuners.

The available modes:


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.

Enabled features in development mode

Enabling development (dev) mode sets the following features:

redpanda:
...
developer_mode: true
rpk:
tune_network: false
tune_disk_scheduler: false
tune_disk_nomerges: false
tune_disk_write_cache: false
tune_disk_irq: false
tune_cpu: false
tune_aio_events: false
tune_clocksource: false
tune_swappiness: false
tune_ballast_file: false
overprovisioned: true
...

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.

Enabled features in production mode

Enabling production (prod) mode sets the following features:

redpanda:
developer_mode: false
rpk:
tune_network: true
tune_disk_scheduler: true
tune_disk_nomerges: true
tune_disk_write_cache: true
tune_disk_irq: true
tune_cpu: true
tune_aio_events: true
tune_clocksource: true
tune_swappiness: true
tune_ballast_file: true
overprovisioned: false

Usage

rpk redpanda mode <mode> [flags]

Flags

Value Type Description
--configstringRedpanda config file, if not set the file will be searched for in the default locations.
-h, --help- Help for mode.
-v, --verbose-Enable verbose logging (default false).

What do you like about this doc?




Optional: Share your email address if we can contact you about your feedback.

Let us know what we do well: