diaspora/config/sidekiq.yml
Jonne Haß 58a355ed01
Expose Sidekiq dead job queue configuration options
Set the default limit of dead jobs to 5k, which should equal to about 50M memory
usage in the worst case. Sidekiq's default is 10k. Set the expiration
timeout to 6 weeks, matching our minor release schedule. Sidekiq's
default is 6 months.

Given the new federation code stores the XML payload in the job
parameters, fine-tuning here can give more significant memory savings.
2016-07-20 15:21:17 +02:00

23 lines
570 B
YAML

<% require_relative 'config/load_config' %>
---
:verbose: false
<% unless AppConfig.heroku? %>
:logfile: "<%= AppConfig.sidekiq_log %>"
<% end %>
:concurrency: <%= AppConfig.environment.sidekiq.concurrency.to_i %>
:dead_max_jobs: <%= AppConfig.environment.sidekiq.dead_jobs_limit.to_i %>
:dead_timeout_in_seconds: <%= AppConfig.environment.sidekiq.dead_jobs_timeout.to_i %>
:queues:
- socket_webfinger
- photos
- http_service
- dispatch
- mail
- delete_account
- receive_local
- receive
- receive_salmon
- http
- export
- maintenance
- default