Skip to content

Commit

Permalink
increase nofile limit on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSoliman committed May 31, 2024
1 parent 100a872 commit 792a699
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ prost-build = "0.12.1"
prost-types = "0.12.1"
rand = "0.8.5"
rayon = { version = "1.10" }
rlimit = { version = "0.10.1" }
rocksdb = { version = "0.22.0", features = ["multi-threaded-cf"], git = "/~https://github.com/restatedev/rust-rocksdb", rev="64a3c698910380e4fcbd8e56ce459779932cf1ff" }
rustls = "0.21.6"
schemars = { version = "0.8", features = ["bytes", "enumset"] }
Expand Down
1 change: 1 addition & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ humantime = { workspace = true }
notify = { version = "6.0.1" }
notify-debouncer-mini = { version = "0.4.1" }
pin-project = { workspace = true }
rlimit = { workspace = true }
schemars = { workspace = true, optional = true }
serde = { workspace = true }
serde_with = { workspace = true }
Expand Down
4 changes: 3 additions & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ fn main() {

// Setting initial configuration as global current
restate_types::config::set_current_config(config);

if rlimit::increase_nofile_limit(u64::MAX).is_err() {
warn!("Failed to increase the number of open file descriptors limit.");
}
let tc = TaskCenterBuilder::default()
.options(Configuration::pinned().common.clone())
.build()
Expand Down

0 comments on commit 792a699

Please sign in to comment.