mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
PERF: reduce sidekiq worker count to 5
This commit is contained in:
parent
1aa200788c
commit
dc06401479
2 changed files with 4 additions and 1 deletions
|
@ -90,3 +90,6 @@ cors_origin = '*'
|
||||||
|
|
||||||
# enable if you really need to serve assets in prd
|
# enable if you really need to serve assets in prd
|
||||||
serve_static_assets = false
|
serve_static_assets = false
|
||||||
|
|
||||||
|
# number of sidekiq workers (launched via unicorn master)
|
||||||
|
sidekiq_workers = 5
|
||||||
|
|
|
@ -20,7 +20,7 @@ class Demon::Sidekiq < Demon::Base
|
||||||
STDERR.puts "Loading Sidekiq in process id #{Process.pid}"
|
STDERR.puts "Loading Sidekiq in process id #{Process.pid}"
|
||||||
require 'sidekiq/cli'
|
require 'sidekiq/cli'
|
||||||
cli = Sidekiq::CLI.instance
|
cli = Sidekiq::CLI.instance
|
||||||
cli.parse([])
|
cli.parse(["-c", GlobalSetting.sidekiq_workers.to_s])
|
||||||
|
|
||||||
load Rails.root + "config/initializers/sidekiq.rb"
|
load Rails.root + "config/initializers/sidekiq.rb"
|
||||||
cli.run
|
cli.run
|
||||||
|
|
Loading…
Reference in a new issue