-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce wal benchmarker (#3446)
* feat: introduce wal benchmarker * chore: add log store metrics * chore: add some comments to wal benchmarker * fix: ci * chore: add more metrics for kafka logstore * chore: add more timers for kafka logstore * chore: add more configs * chore: move humantime to common dependencies * refactor: refactor wal benchmarker * fix: apply suggestions from code review * doc: add a simple README for wal benchmarker * fix: Cargo.toml * fix: clippy * chore: rename wal.rs to wal_bench.rs * fix: compile
- Loading branch information
Showing
25 changed files
with
1,035 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Benchmarkers for GreptimeDB | ||
-------------------------------- | ||
|
||
## Wal Benchmarker | ||
The wal benchmarker serves to evaluate the performance of GreptimeDB's Write-Ahead Log (WAL) component. It meticulously assesses the read/write performance of the WAL under diverse workloads generated by the benchmarker. | ||
|
||
|
||
### How to use | ||
To compile the benchmarker, navigate to the `greptimedb/benchmarks` directory and execute `cargo build --release`. Subsequently, you'll find the compiled target located at `greptimedb/target/release/wal_bench`. | ||
|
||
The `./wal_bench -h` command reveals numerous arguments that the target accepts. Among these, a notable one is the `cfg-file` argument. By utilizing a configuration file in the TOML format, you can bypass the need to repeatedly specify cumbersome arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Refers to the documents of `Args` in benchmarks/src/wal.rs`. | ||
wal_provider = "kafka" | ||
bootstrap_brokers = ["localhost:9092"] | ||
num_workers = 10 | ||
num_topics = 32 | ||
num_regions = 1000 | ||
num_scrapes = 1000 | ||
num_rows = 5 | ||
col_types = "ifs" | ||
max_batch_size = "512KB" | ||
linger = "1ms" | ||
backoff_init = "10ms" | ||
backoff_max = "1ms" | ||
backoff_base = 2 | ||
backoff_deadline = "3s" | ||
compression = "zstd" | ||
rng_seed = 42 | ||
skip_read = false | ||
skip_write = false | ||
random_topics = true | ||
report_metrics = false |
Oops, something went wrong.