rocksdb/include/rocksdb
Igor Canadi a2bb7c3c33 Push- instead of pull-model for managing Write stalls
Summary:
Introducing WriteController, which is a source of truth about per-DB write delays. Let's define an DB epoch as a period where there are no flushes and compactions (i.e. new epoch is started when flush or compaction finishes). Each epoch can either:
* proceed with all writes without delay
* delay all writes by fixed time
* stop all writes

The three modes are recomputed at each epoch change (flush, compaction), rather than on every write (which is currently the case).

When we have a lot of column families, our current pull behavior adds a big overhead, since we need to loop over every column family for every write. With new push model, overhead on Write code-path is minimal.

This is just the start. Next step is to also take care of stalls introduced by slow memtable flushes. The final goal is to eliminate function MakeRoomForWrite(), which currently needs to be called for every column family by every write.

Test Plan: make check for now. I'll add some unit tests later. Also, perf test.

Reviewers: dhruba, yhchiang, MarkCallaghan, sdong, ljin

Reviewed By: ljin

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D22791
2014-09-08 11:20:25 -07:00
..
utilities fix more compile warnings 2014-09-05 14:14:37 +08:00
c.h
cache.h Remove unused member(s) 2014-09-05 20:50:29 -07:00
compaction_filter.h
comparator.h
db.h
env.h
filter_policy.h Implement full filter for block based table. 2014-09-08 10:37:05 -07:00
flush_block_policy.h
immutable_options.h introduce ImmutableOptions 2014-09-04 16:18:36 -07:00
iostats_context.h
iterator.h
ldb_tool.h
memtablerep.h
merge_operator.h
options.h Push- instead of pull-model for managing Write stalls 2014-09-08 11:20:25 -07:00
perf_context.h
rate_limiter.h
slice.h
slice_transform.h
statistics.h Push- instead of pull-model for managing Write stalls 2014-09-08 11:20:25 -07:00
status.h
table.h introduce ImmutableOptions 2014-09-04 16:18:36 -07:00
table_properties.h
transaction_log.h
types.h
universal_compaction.h
version.h
write_batch.h