optimize for multi-queue storage topologies with affinity

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-22 15:09:30 +00:00 committed by strawberry
parent e5a1309583
commit b195107053
6 changed files with 297 additions and 77 deletions

View file

@ -19,7 +19,7 @@ use crate::clap::Args;
const WORKER_NAME: &str = "conduwuit:worker";
const WORKER_MIN: usize = 2;
const WORKER_KEEPALIVE: u64 = 36;
const MAX_BLOCKING_THREADS: usize = 1024;
const MAX_BLOCKING_THREADS: usize = 2048;
static WORKER_AFFINITY: OnceLock<bool> = OnceLock::new();