mirror of
https://github.com/discourse/discourse.git
synced 2025-08-20 18:52:44 +08:00
PERF: run sidekiq with nice 5
This ensures that unicorn master forks of sidekiq run with a lower priority than the webs. It means that a busy sidekiq is less likely to impact web performance
This commit is contained in:
parent
7e4a43afc6
commit
df460b4abd
1 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,10 @@ class Demon::Sidekiq < Demon::Base
|
|||
end
|
||||
end
|
||||
|
||||
# Sidekiq not as high priority as web, in this environment it is forked so a web is very
|
||||
# likely running
|
||||
Discourse::Utils.execute_command('renice', '-n', '5', '-p', Process.pid.to_s)
|
||||
|
||||
cli.parse(options)
|
||||
load Rails.root + "config/initializers/100-sidekiq.rb"
|
||||
cli.run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue