From 3c5275638fba3265976eea32901e2e17b6f18186 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 7 Mar 2022 22:28:50 +0000 Subject: [PATCH] Increase default worker count (#2120) --- config/defaults.hjson | 6 ++++-- crates/utils/src/settings/structs.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/defaults.hjson b/config/defaults.hjson index ac732b20d..3458467d2 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -59,8 +59,10 @@ # use allowlist only for remote communities, and posts/comments in local communities # (meaning remote communities will show content from arbitrary instances). strict_allowlist: true - # Number of workers for sending outgoing activities. - worker_count: 16 + # Number of workers for sending outgoing activities. Search logs for Activity queue stats to + # see information. If running number is consistently close to the worker_count, you should + # increase it. + worker_count: 64 } captcha: { # Whether captcha is required for signup diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index 30f120544..ccda734d4 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -130,8 +130,10 @@ pub struct FederationConfig { /// (meaning remote communities will show content from arbitrary instances). #[default(true)] pub strict_allowlist: bool, - /// Number of workers for sending outgoing activities. - #[default(16)] + /// Number of workers for sending outgoing activities. Search logs for "Activity queue stats" to + /// see information. If "running" number is consistently close to the worker_count, you should + /// increase it. + #[default(64)] pub worker_count: u64, }