rocksdb/tools
Dhruba Borthakur 47c4191fe8 Reduce write amplification by merging files in L0 back into L0
Summary:
There is a new option called hybrid_mode which, when switched on,
causes HBase style compactions.  Files from L0 are
compacted back into L0. This meat of this compaction algorithm
is in PickCompactionHybrid().

All files reside in L0. That means all files have overlapping
keys. Each file has a time-bound, i.e. each file contains a
range of keys that were inserted around the same time. The
start-seqno and the end-seqno refers to the timeframe when
these keys were inserted.  Files that have contiguous seqno
are compacted together into a larger file. All files are
ordered from most recent to the oldest.

The current compaction algorithm starts to look for
candidate files starting from the most recent file. It continues to
add more files to the same compaction run as long as the
sum of the files chosen till now is smaller than the next
candidate file size. This logic needs to be debated
and validated.

The above logic should reduce write amplification to a
large extent... will publish numbers shortly.

Test Plan: dbstress runs for 6 hours with no data corruption (tested so far).

Differential Revision: https://reviews.facebook.net/D11289
2013-06-30 20:07:04 -07:00
..
shell Titile: a command line shell to read/write data from a leveldb thrift server 2012-08-23 09:41:05 -07:00
db_crashtest2.py [RocksDB] add back --mmap_read options to crashtest 2013-06-19 16:15:59 -07:00
db_crashtest.py [RocksDB] add back --mmap_read options to crashtest 2013-06-19 16:15:59 -07:00
db_repl_stress.cc Do not allow Transaction Log Iterator to fall ahead when writer is writing the same file 2013-03-06 14:05:53 -08:00
db_stress.cc Reduce write amplification by merging files in L0 back into L0 2013-06-30 20:07:04 -07:00
ldb_test.py Enhance the ldb tool to support ttl databases 2013-05-15 12:10:00 -07:00
ldb.cc [RocksDB] Expose LDB functioanality as a library call - clients can build their own LDB binary with additional options 2013-04-11 20:21:49 -07:00
reduce_levels_test.cc [Rocksdb] codemod NULL to nullptr in tools/*.cc 2013-03-21 10:45:57 -07:00
sst_dump.cc [RocksDB] cleanup EnvOptions 2013-06-12 11:17:19 -07:00