Skip to content

Commit

Permalink
print warn message
Browse files Browse the repository at this point in the history
  • Loading branch information
TszKitLo40 committed Oct 26, 2022
1 parent 39fa62c commit 0849c6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion src/binaries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ openraft = { workspace = true }
sentry = "0.27.0"
serde = { workspace = true }
serde_json = { workspace = true }
sysinfo = "0.26.5"
tokio-stream = "0.1.10"
tonic = "0.8.1"
tracing = "0.1.36"
Expand Down
10 changes: 1 addition & 9 deletions src/binaries/query/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,7 @@ fn try_set_max_open_files() {
let max_open_files_limit = limits.max_open_files.soft;
if let Some(max_open_files) = max_open_files_limit {
if max_open_files < 65535 {
let set = sysinfo::set_open_files_limit(max_open_files.try_into().unwrap());
match set {
true => {
warn!("Open files limit has been set to {}", max_open_files);
}
false => {
warn!("Open files limit set to {} failed", max_open_files);
}
}
warn!("The open file limit is too low for the databend-query. Please consider increase it by running `ulimit -n 65535`");
}
}
}

0 comments on commit 0849c6c

Please sign in to comment.