commit:0273a027e01120ef4b3abb6f670d4c43b6035abd
author:Chip Black
committer:Chip Black
date:Wed Jun 14 10:59:01 2023 -0500
parents:7cf88a6151c29ed775efd79382668b1dfaeb60d9
Add DB_POOL env var to sidekiq

Also reduce concurrency to 10 jobs/connections
diff --git a/mastodon/rc.d/mastodon-sidekiq b/mastodon/rc.d/mastodon-sidekiq
line changes: +2/-2
index 0124166..903957a
--- a/mastodon/rc.d/mastodon-sidekiq
+++ b/mastodon/rc.d/mastodon-sidekiq
@@ -11,9 +11,9 @@ rcvar="mastodon_enable"
 
 pidfile="/var/run/mastodon-sidekiq.pid"
 mastodon_sidekiq_chdir="/home/mastodon/live"
-mastodon_sidekiq_env="RAILS_ENV=production"
+mastodon_sidekiq_env="RAILS_ENV=production DB_POOL=10"
 command="/usr/sbin/daemon"
-command_args="-u mastodon -P ${pidfile} -H -o /var/log/mastodon/sidekiq.log /usr/local/bin/bundle exec sidekiq -c 25"
+command_args="-u mastodon -P ${pidfile} -H -o /var/log/mastodon/sidekiq.log /usr/local/bin/bundle exec sidekiq -c 10"
 
 # read configuration and set defaults
 load_rc_config "$name"