rocksdb/include/rocksdb
Andrew Kryczka bb01c1880c Introduce max_background_jobs mutable option
Summary:
- `max_background_flushes` and `max_background_compactions` are still supported for backwards compatibility
- `base_background_compactions` is completely deprecated. Now we just throttle to one background compaction when there's no pressure.
- `max_background_jobs` is added to automatically partition the concurrent background jobs into flushes vs compactions. Currently it's very simple as we just allocate one-fourth of the jobs to flushes, and the remaining can be used for compactions.
- The test cases that set `base_background_compactions > 1` needed to be updated. I just grab the pressure token such that the desired number of compactions can be scheduled.
Closes https://github.com/facebook/rocksdb/pull/2205

Differential Revision: D4937461

Pulled By: ajkr

fbshipit-source-id: df52cbbd497e13bbc9a60560a5ac2a2526b3f1f9
2017-05-24 11:29:08 -07:00
..
utilities fixed typo 2017-05-17 16:41:49 -07:00
advanced_options.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
c.h Add ROCKSDB_LIBRARY_API macro to a few C APIs, to fix windows build 2017-05-17 10:22:41 -07:00
cache.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
cleanable.h Pinnableslice (2nd attempt) 2017-03-13 11:54:10 -07:00
compaction_filter.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
compaction_job_stats.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
comparator.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
convenience.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
db.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
db_bench_tool.h Separeate main from bench functionality to allow cusomizations 2016-02-16 06:17:31 -08:00
db_dump_tool.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
env.h Allow SstFileWriter to use the rate limiter 2017-05-23 11:42:09 -07:00
experimental.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
filter_policy.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
flush_block_policy.h Configure index partition size 2017-03-28 12:09:12 -07:00
iostats_context.h remove #include port/port.h in public header file 2017-05-20 16:42:21 -07:00
iterator.h Pinnableslice (2nd attempt) 2017-03-13 11:54:10 -07:00
ldb_tool.h Allow Users to change customized ldb tools' header in help printing 2017-03-21 17:39:12 -07:00
listener.h Allow IntraL0 compaction in FIFO Compaction 2017-05-04 18:16:13 -07:00
memtablerep.h Unified InlineSkipList::Insert algorithm with hinting 2016-11-22 14:09:13 -08:00
merge_operator.h [rocksdb][PR] Remove option min_partial_merge_operands and verify_checksums_in_comp… 2017-02-23 15:09:12 -08:00
metadata.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
options.h Introduce max_background_jobs mutable option 2017-05-24 11:29:08 -07:00
perf_context.h remove #include port/port.h in public header file 2017-05-20 16:42:21 -07:00
perf_level.h Move away from enum char value -1 2016-06-14 17:07:34 -07:00
persistent_cache.h Dump persistent cache options 2016-12-19 14:09:12 -08:00
rate_limiter.h options.delayed_write_rate use the rate of rate_limiter by default. 2017-05-24 09:58:24 -07:00
slice.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
slice_transform.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
snapshot.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00
sst_dump_tool.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
sst_file_manager.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
sst_file_writer.h Allow SstFileWriter to use the rate limiter 2017-05-23 11:42:09 -07:00
statistics.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
status.h Limit maximum memory used in the WriteBatch representation 2017-04-10 15:42:26 -07:00
table.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
table_properties.h Support SST files with Global sequence numbers [reland] 2016-10-18 16:59:37 -07:00
thread_status.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
threadpool.h New API for background work in single thread pool 2017-05-23 11:12:27 -07:00
transaction_log.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
types.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
universal_compaction.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
version.h Release RocksDB 5.5.0 2017-05-17 12:42:20 -07:00
wal_filter.h Avoid overloaded virtual function 2016-03-22 17:10:31 -07:00
write_batch.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
write_batch_base.h Fixed some spelling mistakes 2017-05-17 23:12:36 -07:00
write_buffer_manager.h Add GPLv2 as an alternative license. 2017-04-27 18:06:12 -07:00