mastodon: bump sidekey max open files, bump threads

This commit is contained in:
Sandro - 2024-01-24 02:51:35 +01:00
parent f058365c5b
commit 15a30d7a30
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 7 additions and 2 deletions

View File

@ -117,15 +117,16 @@
enableBirdUITheme = true;
configureNginx = true;
elasticsearch.host = "127.0.0.1";
ldap.enable = true;
streamingProcesses = config.microvm.vcpu - 1;
extraConfig = {
ALTERNATE_DOMAINS = lib.concatStringsSep "," config.services.nginx.virtualHosts.${config.services.mastodon.localDomain}.serverAliases;
DEFAULT_LOCALE = "de";
};
ldap.enable = true;
streamingProcesses = config.microvm.vcpu - 1;
localDomain = "c3d2.social";
otpSecretFile = config.sops.secrets."mastodon/otp-secret".path;
secretKeyBaseFile = config.sops.secrets."mastodon/secret-key".path;
sidekiqThreads = 40; # default 25 are just not doing it anymore, especially after issues
smtp = {
host = "mail.c3d2.de";
port = 587;
@ -201,6 +202,10 @@
mastodon-init-dirs.script = lib.mkAfter ''
cat ${config.sops.secrets."mastodon/env".path} >> /var/lib/mastodon/.secrets_env
'';
# sidekiq failed with:
# failed to connect: Too many open files @ rb_sysopen
mastodon-sidekiq-all.serviceConfig.LimitNOFILE = "1048576";
};
timers.fedifetcher = {