fluss
fluss copied to clipboard
[Feature] Control the background job thread nums of rocksdb
Search before asking
- [X] I searched in the issues and found nothing similar.
Motivation
Currently, we will create two background threads per bucket to do fluss/compaction which may cause controllable threads.
Solution
We can control the background threads in server level. Thanksfully, Rocksdb allows us share a threads pool across rocksdbs. See more in https://github.com/facebook/rocksdb/blob/3ef909248736eb80e7c6b3c7a19753c4dbe9d0c5/include/rocksdb/env.h#L465
Anything else?
No response
Willingness to contribute
- [ ] I'm willing to submit a PR!
Hi @wuchong Can you assign this to me ?