rocksdb/options
Zhongyi Xie 671d15cbdd Persistent Stats: persist stats history to disk (#5046)
Summary:
This PR continues the work in https://github.com/facebook/rocksdb/pull/4748 and https://github.com/facebook/rocksdb/pull/4535 by adding a new DBOption `persist_stats_to_disk` which instructs RocksDB to persist stats history to RocksDB itself. When statistics is enabled, and  both options `stats_persist_period_sec` and `persist_stats_to_disk` are set, RocksDB will periodically write stats to a built-in column family in the following form: key -> (timestamp in microseconds)#(stats name), value -> stats value. The existing API `GetStatsHistory` will detect the current value of `persist_stats_to_disk` and either read from in-memory data structure or from the hidden column family on disk.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5046

Differential Revision: D15863138

Pulled By: miasantreble

fbshipit-source-id: bb82abdb3f2ca581aa42531734ac799f113e931b
2019-06-17 15:21:50 -07:00
..
cf_options.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
cf_options.h Refresh snapshot list during long compactions (2nd attempt) (#5278) 2019-05-03 17:30:22 -07:00
db_options.cc Persistent Stats: persist stats history to disk (#5046) 2019-06-17 15:21:50 -07:00
db_options.h Persistent Stats: persist stats history to disk (#5046) 2019-06-17 15:21:50 -07:00
options_helper.cc Persistent Stats: persist stats history to disk (#5046) 2019-06-17 15:21:50 -07:00
options_helper.h Option string/map/file can set env from object registry (#5237) 2019-04-25 11:35:09 -07:00
options_parser.cc Move some memory related files from util/ to memory/ (#5382) 2019-05-30 17:44:09 -07:00
options_parser.h Organizing rocksdb/table directory by format 2019-05-30 14:51:11 -07:00
options_sanity_check.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
options_sanity_check.h Change RocksDB License 2017-07-15 16:11:23 -07:00
options_settable_test.cc Persistent Stats: persist stats history to disk (#5046) 2019-06-17 15:21:50 -07:00
options_test.cc Persistent Stats: persist stats history to disk (#5046) 2019-06-17 15:21:50 -07:00
options.cc Persistent Stats: persist stats history to disk (#5046) 2019-06-17 15:21:50 -07:00