rpk redpanda start
Start redpanda.
Cluster properties can be seeded for a new cluster with
--set redpanda.<property>=<value>. They are written to redpanda.yaml and
imported into the cluster configuration when the cluster is first
bootstrapped and no .bootstrap.yaml is present; on later starts they are
ignored, and the properties are managed with rpk cluster config instead.
Environment variables are read when the matching flag is not given. The
seed and address variables below also override a --set value for the same
field:
REDPANDA_SEEDS: comma-separated seed servers (--seeds).
Listener addresses (--kafka-addr, --pandaproxy-addr,
--schema-registry-addr, --rpc-addr): REDPANDA_KAFKA_ADDRESS,
REDPANDA_PANDAPROXY_ADDRESS, REDPANDA_SCHEMA_REGISTRY_ADDRESS and
REDPANDA_RPC_ADDRESS.
Advertised addresses (--advertise-kafka-addr, --advertise-pandaproxy-addr,
--advertise-rpc-addr): REDPANDA_ADVERTISE_KAFKA_ADDRESS,
REDPANDA_ADVERTISE_PANDAPROXY_ADDRESS and REDPANDA_ADVERTISE_RPC_ADDRESS.
Redpanda itself reads REDPANDA_PROTECTED_MODE, true or false, as the
protected_mode value on a broker’s first start, before the broker has any
cluster configuration. A protected_mode set in .bootstrap.yaml takes
precedence, as does one in the redpanda section of redpanda.yaml when there
is no .bootstrap.yaml, which is where --set redpanda.protected_mode writes
it. Left unset, the property follows the broker’s developer mode, which
rpk redpanda mode sets.
| This command is only available on Linux. |
Set up a mode
Redpanda supports a dev-container mode with preset configuration for development and test environments.
Run the following command to start Redpanda in dev-container mode:
rpk redpanda start --mode dev-container
This mode bundles the following flags and cluster properties:
Bundled flags:
-
--overprovisioned(disables thread affinity and other production guards; seerpk redpanda modefor details) -
--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
Because dev-container mode sets developer_mode: true, it also turns on protected mode while the protected_mode cluster property is unset. The official Redpanda Docker image sets REDPANDA_PROTECTED_MODE=false, so containers started from it keep protected mode off.
After Redpanda starts, you can modify cluster properties by running:
rpk config set <key> <value>
Environment variables
The rpk redpanda start command reads the following environment variables as defaults for broker configuration, which is useful in containerized deployments. Equivalent command-line flags take precedence. Although these variables use the REDPANDA_ prefix, they are read by rpk when it starts the broker, not by the broker process itself.
| Variable | Description | Accepted values |
|---|---|---|
|
Seed servers for cluster discovery. Equivalent to the |
Comma-separated list of |
|
Kafka API listener address. Equivalent to the |
|
|
HTTP Proxy listener address. Equivalent to the |
|
|
Schema Registry listener address. Equivalent to the |
|
|
RPC server listener address. Equivalent to the |
|
|
Advertised Kafka API address. Equivalent to the |
|
|
Advertised HTTP Proxy address. Equivalent to the |
|
|
Advertised RPC address. Equivalent to the |
|
For all environment variables that the Redpanda broker and rpk read, see Environment Variables.
Flags
| Value | Type | Description |
|---|---|---|
|
stringSlice |
A comma-separated list of Kafka addresses to advertise (scheme://host:port|name). |
|
stringSlice |
A comma-separated list of Pandaproxy addresses to advertise (scheme://host:port|name). |
|
string |
The advertised RPC address (host:port). |
|
bool |
When set to false will disable system checking before starting redpanda. Default: |
|
string |
Directory where Redpanda has been installed. |
|
stringSlice |
A comma-separated list of Kafka listener addresses to bind to (scheme://host:port|name). |
|
string |
Mode sets well-known configuration properties for development or test environments; use |
|
string |
Alternative path to read the node tuner state file from (if exists). |
|
stringSlice |
A comma-separated list of Pandaproxy listener addresses to bind to (scheme://host:port|name). |
|
string |
The RPC address to bind to (host:port). |
|
stringSlice |
A comma-separated list of Schema Registry listener addresses to bind to (scheme://host:port|name). |
|
stringSlice |
A comma-separated list of seed nodes to connect to (scheme://host:port|name). |
|
duration |
The maximum time to wait for the checks and tune processes to complete (for example, 300ms, 1.5s, 2h45m). Default: |
|
bool |
When present will enable tuning before starting redpanda. |
|
string |
The cloud provider and VM type, in the format <provider>:<vm type>:<storage type>. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |