Sync FD limit and max maps to 500k

This commit is contained in:
Trent Nelson
2020-08-17 22:40:54 -06:00
committed by mergify[bot]
parent e2d66cf796
commit 11951eb009
4 changed files with 4 additions and 4 deletions

View File

@@ -3257,7 +3257,7 @@ fn adjust_ulimit_nofile() -> Result<()> {
fn adjust_ulimit_nofile() -> Result<()> {
// Rocks DB likes to have many open files. The default open file descriptor limit is
// usually not enough
let desired_nofile = 65000;
let desired_nofile = 500000;
fn get_nofile() -> libc::rlimit {
let mut nofile = libc::rlimit {