Update sidekiq settings

This commit is contained in:
Kira 2019-10-18 19:14:34 -07:00
parent 1be7ee1db2
commit 0102e4239b
2 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,9 @@
require 'sidekiq'
Sidekiq.configure_server do |config|
config.redis = { url: Danbooru.config.redis_url }
end
Sidekiq.configure_client do |config|
config.redis = { url: Danbooru.config.redis_url }
end

View File

@ -16,6 +16,6 @@
# you can override concurrency based on environment
production:
:concurrency: 25
:concurrency: 15
staging:
:concurrency: 5
:concurrency: 5