From 9c001bdcfdffc0ca1bc7967f8e44b7c7819666df Mon Sep 17 00:00:00 2001 From: James Wilson Date: Fri, 6 Aug 2021 17:50:50 +0100 Subject: [PATCH] Add a comment on core worker threads --- backend/telemetry_core/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/telemetry_core/src/main.rs b/backend/telemetry_core/src/main.rs index 8f35da2..a3beec0 100644 --- a/backend/telemetry_core/src/main.rs +++ b/backend/telemetry_core/src/main.rs @@ -78,6 +78,8 @@ fn main() { let worker_threads = match opts.worker_threads { Some(0) => num_cpus::get(), Some(n) => n, + // By default, use a max of 8 worker threads, as perf + // testing has found that to be a good sweet spot. None => usize::min(num_cpus::get(), 8), };