Skip to main content
Version: 23.1

rpk cluster self-test start

Starts one or more benchmark tests on one or more nodes of the cluster.

Available tests to run:

  • Disk tests

    • Throughput test: 512 KB messages, sequential read/write
      • Uses a larger request message sizes and deeper I/O queue depth to write/read more bytes in a shorter amount of time, at the cost of IOPS/latency.
    • Latency test: 4 KB messages, sequential read/write
      • Uses smaller request message sizes and lower levels of parallelism to achieve higher IOPS and lower latency.
  • Network tests

    • Throughput test: 8192-bit messages
      • Unique pairs of Redpanda nodes each act as a client and a server.
      • The test pushes as much data over the wire, within the test parameters.

This command immediately returns on success, and the tests run asynchronously. The user polls for results with the rpk cluster self-test status command.

Usage

rpk cluster self-test start [flags]

Flags

Value Type Description
-h, --help- Help for start.
--disk-duration-msuintThe duration, in milliseconds, of one run of a disk benchmark test (default: 5000).
--network-duration-msuintThe duration, in milliseconds, of one run of a network benchmark test (default: 5000).
--no-confirm-Acknowledge warning prompt skipping read from stdin.
--only-disk-test-Run only disk benchmark tests.
--only-network-test-Run only network benchmark tests.
--participant-node-idsintsIDs of nodes that the benchmark tests will run on. If not set, tests will be run on all nodes.
--admin-api-tls-certstringThe certificate to be used for TLS authentication with the Admin API.
--admin-api-tls-enabled-Enable TLS for the Admin API. Not necessary if specifying custom certs.
--admin-api-tls-keystringThe certificate key to be used for TLS authentication with the Admin API.
--admin-api-tls-truststorestringThe truststore to be used for TLS communication with the Admin API.
--api-urlsstringsComma-separated list of admin API addresses (<IP>:<port>).
--brokersstringsComma-separated list of broker ip:port pairs. For example:

--brokers '192.168.78.34:9092,192.168.78.35:9092,192.179.23.54:9092'.

Alternatively, you may set the REDPANDA_BROKERS environment variable with the comma-separated list of broker addresses.
--configstringRedpanda config file. If not set, the file will be searched for in the default locations.
--passwordstringSASL password to be used for authentication
--sasl-mechanismstringThe authentication mechanism to use.

Supported values: SCRAM-SHA-256, SCRAM-SHA-512
--tls-certstringThe certificate to be used for TLS authentication with the broker.
--tls-enabled -Enable TLS for the Kafka API (not necessary if specifying custom certs).
--tls-keystringThe certificate key to be used for TLS authentication with the broker.
--tls-truststorestringThe truststore to be used for TLS communication with the broker.
--userstringSASL user for authentication.
-v, --verbose-Enable verbose logging (default: false).

Example output

$ rpk cluster self-test start
? Redpanda self-test will run benchmarks of disk and network hardware that will consume significant system resources. Do not start self-test if large workloads are already running on the system. (Y/n)
Redpanda self-test has started, test identifier: "031be460-246b-46af-98f2-5fc16f03aed3", To check the status run:
rpk cluster self-test status

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: