Load testing
You can use the workload command to run different types of workload against your DB.
General format of the command:
ydb [global options...] workload [subcommands...]
global options: Global options.subcommands: The subcommands.
See the description of the command to run the data load:
ydb workload --help
Available subcommands
The following types of load tests are supported at the moment:
- Stock: An online store warehouse simulator.
- Key-value: Key-Value load test.
- ClickBench: ClickBench analytical benchmark.
- TPC-C: TPC-C benchmark.
- TPC-H: TPC-H benchmark.
- TPC-DS: TPC-DS benchmark.
- Topic: Topic load test.
- Transfer: Transfer load test.
- Query: Query load test.
- Fulltext: Fulltext load test.
- Vector: Vector search load test.
Global parameters for all workloads
| Parameter name | Short name | Parameter description |
|---|---|---|
--seconds <value> |
-s <value> |
Duration of the test, in seconds. Default: 10. |
--threads <value> |
-t <value> |
The number of parallel threads creating the load. Default: 10. |
--rate <value> |
- | Total rate for all threads, in transactions per second. Default: 0 (no rate limit). |
--quiet |
- | Outputs only the total result. |
--print-timestamp |
- | Prints the time together with the statistics of each time window. |
--client-timeout |
- | Transport timeout in milliseconds. |
--operation-timeout |
- | Operation timeout in milliseconds. |
--cancel-after |
- | Timeout for canceling an operation in milliseconds. |
--window |
- | Statistics collection window, in seconds. Default: 1. |
Was the article helpful?
Previous
Next