If a system's ulimit max_open_files
is set to 1024 and there are 10 RocksDB instances running with max_open_files = 256
, is it possible that RocksDB will exceed the system's ulimit?
Should I configure each RocksDB instance with no more than 1/10th of the system's ulimit?
Asked
Active
Viewed 208 times
0

krithikaGopalakrishnan
- 1,217
- 10
- 28

wrkyle
- 529
- 1
- 13
- 36
1 Answers
2
The system's ulimit
is a per process parameter. Assuming you are running 10 RocksDB instances in separate process, each with max_open_files = 256
. This will not exceed the system's ulimit. The current setting should just work fine.

krithikaGopalakrishnan
- 1,217
- 10
- 28
-
This answer is corroborated here: https://unix.stackexchange.com/questions/75996/modify-ulimit-open-files-of-a-specific-process – wrkyle May 06 '20 at 01:44