rpk redpanda tune
Sets the OS parameters to tune system performance.
Available tuners:
-
all.
-
aio_events
-
ballast_file
-
clocksource
-
coredump
-
cpu
-
disk_irq
-
disk_nomerges
-
disk_scheduler
-
disk_write_cache
-
fstrim
-
net
-
swappiness
-
transparent_hugepages
To learn more about a tuner, run rpk redpanda tune help <tuner name>.
| This command is only available on Linux. |
| Do not use this command in Azure self-managed environments. |
|
Subcommands
| Command | Description |
|---|---|
Display detailed information about the tuner. |
|
List available redpanda tuners and check if they are enabled and supported by your system To enable a tuner it must be set in the |
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Set of CPUs for tuners to use in cpuset(7) format; if not specified, tuners will use all available CPUs. |
|
stringSlice |
List of data directories or places to store data (for example, |
|
stringSlice |
Lists of devices to tune f.e. |
|
string |
Operation Mode. Acceptable values: ( |
|
stringSlice |
Network Interface Controllers to tune. |
|
string |
Alternative path to write the tuner state file to (default: |
|
string |
If a filename is provided, it will generate a tuning file that can later be used to tune the system. |
|
bool |
Allow tuners to tune boot parameters and request system reboot. |
|
duration |
The maximum time to wait for the tune processes to complete (for example, 300ms, 1.5s, 2h45m). |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |
Examples
This section provides examples of how to use rpk redpanda tune.
This section provides examples of using the autotuner.
-
To enable a predetermined set of tuners for production, run the
rpk redpanda mode prodcommand. This command modifies settings in theredpanda.yamlconfiguration file. -
To list the available tuners and to see whether they’re enabled or supported (and a reason for if they’re unsupported), run the
rpk redpanda tune listcommand. -
To enable or disable a tuner, run the
rpk redpanda config set, as the tuner flags are configurable node properties.-
Each tuner has a YAML key flag for enabling/disabling itself in
redpanda.yaml. Most are formed by prependingrpk.tune_to the name of the tuner listed byrpk redpanda tune list. See the Tuners reference for the exact key for a tuner. For an example of enabling a tuner, the key for theaio_eventstuner isrpk.tune_aio_events, and it can be enabled with the following command:rpk redpanda config set rpk.tune_aio_events true
-
-
To run all available tuners, use the
rpk redpanda tunecommand forall:rpk redpanda tune all -
To run a specific tuner, use the
rpk redpanda tunecommand for the tuner:rpk redpanda tune <tuner> -
To learn more about a tuner, use the
rpk redpanda tune helpcommand for the tuner:rpk redpanda tune help <tuner>See also the Tuners reference for descriptions about each tuner.