Skip to content

Commit

Permalink
tweak rlimits (BloopAI#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall authored Dec 18, 2023
1 parent f84aab6 commit 2b197a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/src/qdrant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn run_command(command: &Path, qdrant_dir: &Path, stdout: &Path, stderr: &Path)
let stderr_logs_file = File::create(stderr).unwrap();

match getrlimit(Resource::RLIMIT_NOFILE) {
Ok((current_soft, current_hard)) if current_hard < 2048 => {
Ok((current_soft, current_hard)) if current_hard < 10000 => {
if let Err(err) = setrlimit(Resource::RLIMIT_NOFILE, 10000, 10000) {
error!(
?err,
Expand Down

0 comments on commit 2b197a8

Please sign in to comment.