]> Untitled Git - lemmy.git/commitdiff
Increase default worker count (#2120)
authorNutomic <me@nutomic.com>
Mon, 7 Mar 2022 22:28:50 +0000 (22:28 +0000)
committerGitHub <noreply@github.com>
Mon, 7 Mar 2022 22:28:50 +0000 (22:28 +0000)
config/defaults.hjson
crates/utils/src/settings/structs.rs

index ac732b20d1f73257ca4916195d209633f71c1636..3458467d2eeca175aeb3e8ee3f3c81acdc9fa33e 100644 (file)
     # 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
index 30f12054418c7af2528ece4f85aba1e5c3972451..ccda734d4800941bd4e6b9c1c87c40252780706b 100644 (file)
@@ -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,
 }