Increase default worker count

This commit is contained in:
Felix Ableitner 2022-03-07 19:09:45 +01:00 committed by Dessalines
parent ffd2ba5d90
commit 60fba6f43b
2 changed files with 8 additions and 4 deletions

View file

@ -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

View 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,
}