Make the number of sidekiq threads configurable, bump to 25

This commit is contained in:
Greg Karékinian
2018-08-16 17:37:10 +02:00
parent d20c0cf7f6
commit e6a3460a2c
3 changed files with 9 additions and 7 deletions

View File

@@ -154,7 +154,8 @@ application mastodon_path do
source "mastodon-sidekiq.systemd.service.erb"
variables user: user,
app_dir: mastodon_path,
bundle_path: "/opt/ruby_build/builds/#{ruby_version}/bin/bundle"
bundle_path: "/opt/ruby_build/builds/#{ruby_version}/bin/bundle",
sidekiq_threads: node["kosmos-mastodon"]["sidekiq_threads"]
notifies :run, "execute[systemctl daemon-reload]", :delayed
notifies :restart, "service[mastodon-sidekiq]", :delayed
end