rocksdb/options
Andrew Kryczka 75d3b6fdf0 Redesign block cache pinning API (#7520)
Summary:
The old flag-based APIs (`BlockBasedTableOptions::pin_l0_filter_and_index_blocks_in_cache` and `BlockBasedTableOptions::pin_top_level_index_and_filter`) were insufficient for our needs. For example, it was impossible to pin only unpartitioned meta-blocks, which could prevent block cache contention when turning on dictionary compression or during a migration to partitioned indexes/filters. It was also impossible to pin all meta-blocks in memory while having predictable memory usage via block cache. If we had continued adding flags to address these scenarios, they would have had significant overlap causing confusion. Instead, this PR deprecates the flags and starts a new API with non-overlapping options.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7520

Test Plan:
- new unit test
- added new options to stress/crash test and ran for a while: `$ python tools/db_crashtest.py blackbox --simple --max_key=1000000 -write_buffer_size=1048576 -target_file_size_base=1048576 -max_bytes_for_level_base=4194304 --interval=10 -value_size_mult=33 -column_families=1 -reopen=0`

Reviewed By: pdillinger

Differential Revision: D24200034

Pulled By: ajkr

fbshipit-source-id: 3fa7cfc71e7960f7a867511dd6ae5834dd73b13e
2020-10-11 14:58:24 -07:00
..
cf_options.cc Introduce options.check_flush_compaction_key_order (#7467) 2020-10-01 10:10:26 -07:00
cf_options.h Introduce options.check_flush_compaction_key_order (#7467) 2020-10-01 10:10:26 -07:00
configurable.cc Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
configurable_helper.h Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
configurable_test.cc Fix valgrind issues with configurable_test (#7424) 2020-09-23 09:34:01 -07:00
configurable_test.h Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
db_options.cc Track WAL in MANIFEST: add option track_and_verify_wals_in_manifest (#7275) 2020-10-09 16:42:19 -07:00
db_options.h Track WAL in MANIFEST: add option track_and_verify_wals_in_manifest (#7275) 2020-10-09 16:42:19 -07:00
options.cc Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
options_helper.cc Track WAL in MANIFEST: add option track_and_verify_wals_in_manifest (#7275) 2020-10-09 16:42:19 -07:00
options_helper.h Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
options_parser.cc Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
options_parser.h Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
options_settable_test.cc Redesign block cache pinning API (#7520) 2020-10-11 14:58:24 -07:00
options_test.cc Track WAL in MANIFEST: add option track_and_verify_wals_in_manifest (#7275) 2020-10-09 16:42:19 -07:00