There are 2 options stats_dump_period_sec and stats_persist_period_sec in
RocksDB to adjust the period to dump/persist stat, each RocksDB instance
creates 2 dependent threads for this aim.
A replica server is possible to serve thousands of replicas, it means
thousands of RocksDB instances are possible to be running in one process,
then thousands of threads will be created will may consume much resouce.
This patch introduces 2 options, then it's possible to disable the threads
by setting them to 0.
There are 2 options stats_dump_period_sec and stats_persist_period_sec in RocksDB to adjust the period to dump/persist stat, each RocksDB instance creates 2 dependent threads for this aim.
A replica server is possible to serve thousands of replicas, it means thousands of RocksDB instances are possible to be running in one process, then thousands of threads will be created will may consume much resouce.
This patch introduces 2 options, then it's possible to disable the threads by setting them to 0.