diff options
author | Andrew Kryczka <andrewkr@fb.com> | 2017-05-24 11:25:38 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2017-05-24 11:29:08 -0700 |
commit | bb01c1880c0c89a6cf338e22fd54e7e25b7d12ba (patch) | |
tree | 37e718ef0196e24444533e7b1729f37addd37c74 /build_tools | |
parent | 5a253046278041c5515342400821042849e6112d (diff) |
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
Diffstat (limited to 'build_tools')
0 files changed, 0 insertions, 0 deletions