Skip to content

Stress test

rven1 edited this page Oct 29, 2014 · 11 revisions

RocksDB stress test is done by creating a database with a large number of rows (1M) in a number of column families(10). We also creating an array of large vectors to store the values of these rows in memory. The rows are partitioned between multiple threads(32). Each thread is assigned to operate on a fixed contiguous portion of the rows. Each thread does a number of operations on its piece of the database and then verifies it with the in memory copy of the database which is also being updated as changes are made to the database. As configured, there can be different number of operations, threads, rows, column families, operations per batch, iterations, and operations between database reopen. Different database options can also be modified which results in various configurations and features being tested. eg. checksums, time to live, universal/level compaction.

Contents

Clone this wiki locally