Skip to content

Latest commit

 

History

History
157 lines (109 loc) · 3.64 KB

File metadata and controls

157 lines (109 loc) · 3.64 KB

rpk redpanda start

reference:partial$unsupported-os-rpk.adoc

Start Redpanda.

Set up a mode

You can set up a mode for Redpanda to use on start.

To set up the dev-container mode, run:

rpk redpanda start --mode dev-container

The mode uses well-known configuration properties for development and test environments:

Bundled flags:

  • --overprovisioned

  • --reserve-memory 0M

  • --check=false

  • --unsafe-bypass-fsync

Bundled cluster properties:

  • write_caching_default: true

  • auto_create_topics_enabled: true

  • group_topic_partitions: 3

  • storage_min_free_bytes: 10485760 (10MiB)

  • topic_partitions_per_shard: 1000

  • fetch_reads_debounce_timeout: 10

After Redpanda starts, you can modify the cluster properties by running:

rpk config set <key> <value>

Usage

rpk redpanda start [flags]

Flags

Value Type Description

--advertise-kafka-addr

strings

A comma-separated list of Kafka addresses to advertise.

<scheme>:<host>:<port>|<name>

--advertise-pandaproxy-addr

strings

A comma-separated list of Pandaproxy addresses to advertise.

<scheme>:<host>:<port>|<name>

--advertise-rpc-addr

string

The advertised RPC address

<host>:<port>

--check

-

When set to false, disables system checking before starting redpanda (default true).

-h, --help

-

Help for start.

--install-dir

string

Directory where redpanda has been installed.

--kafka-addr

strings

A comma-separated list of Kafka listener addresses to bind to.

<scheme>:<host>:<port>|<name>

--mode

string

Sets well-known configuration properties for development or test environments; use --mode help for more info.

--node-tuner-state-path

string

Alternative path to read the node tuner state file from (if exists).

--overprovisioned

-

Disables thread affinity (CPU pinning) to allow fairer CPU distribution among all processes. Do not use in production environments. Set automatically by --mode dev-container.

--pandaproxy-addr

strings

A comma-separated list of Pandaproxy listener addresses to bind to.

<scheme>:<host>:<port>|<name>

--rpc-addr

string

The RPC address to bind to.

<host>:<port>

--schema-registry-addr

strings

A comma-separated list of Schema Registry listener addresses to bind to.

<scheme>:<host>:<port>|<name>

-s, --seeds

strings

A comma-separated list of seed nodes to connect to.

<scheme>:<host>:<port>|<name>

--timeout

duration

The maximum time to wait for the checks and tune processes to complete. The value passed is a sequence of decimal numbers, each with an optional fraction and a unit suffix, such as 300ms, 1.5s or 2h45m. Valid time units are ns, us (or µs), ms, s, m, h (default 10s).

--tune

-

Enables tuning before starting redpanda.

--well-known-io

string

The cloud vendor and VM type, in the format

<vendor>:<vm-type>:<storage-type>

--config

string

Path to the Redpanda or rpk configuration file. If not specified, rpk searches /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terse detail.

--profile

string

Profile to use. See rpk profile for more details.

-v, --verbose

-

Enable verbose logging.