From 0849c6c539499258c99026905df0a1300195f4ae Mon Sep 17 00:00:00 2001 From: Zijie Lu Date: Wed, 26 Oct 2022 10:45:37 +0800 Subject: [PATCH] print warn message --- src/binaries/Cargo.toml | 1 - src/binaries/query/main.rs | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/binaries/Cargo.toml b/src/binaries/Cargo.toml index f9e1422d9c85f..faff0af986dad 100644 --- a/src/binaries/Cargo.toml +++ b/src/binaries/Cargo.toml @@ -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" diff --git a/src/binaries/query/main.rs b/src/binaries/query/main.rs index 74d88e0361a62..8a71fdf3761ba 100644 --- a/src/binaries/query/main.rs +++ b/src/binaries/query/main.rs @@ -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`"); } } }