Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add 2 options to limit thread count (#2011)
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.
- Loading branch information