Skip to main content

Parses db_bench.log files outputted from RocksDB

Project description

rocksdb-statistics

PyPI version

A small snippet I wrote to generate plots for my thesis on Auto-tuning RocksDB

Parses db_bench.log files outputted from RocksDB Outputs CSV-files and pgfplot of write, compaction and stall statistics.

Supported statistics:

  • interval_writes
  • cumulative_writes
  • interval_stall
  • cumulative_stall
  • interval_compaction
  • cumulative_compaction

Usage

pip install rocksdb-statistics

rocksdb-statistics db_bench.log

Parsed stats are outputted to output/ in the current directory

Alternatively specify what stats to output rocksdb-statistics db_bench.log --statistics "interval_writes,interval_compaction"

Example

Run db_bench with statistics using stats_interval_seconds to retrieve stats for each second. Make sure to set stats_per_interval to make db_bench output ** DB stats ** for each interval.

./db_bench --benchmarks="fillrandom,stats" -stats_interval_seconds 1 -stats_per_interval 1 &> db_bench.log rocksdb-statistics db_bench.log

The directory output/ contains the parsed statistics in csv. Example files are provided in the example/ directory.

You can also add -statistics to get a summary of a lot of other things. ./db_bench --benchmarks="fillrandom,stats" -statistics -stats_interval_seconds 1 -stats_per_interval 1 &> db_bench.log

Example plots

Below are some plots I generated using this tool for my thesis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rocksdb-statistics-0.0.10.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

rocksdb_statistics-0.0.10-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page