添加 sidekiq 命名空间, 防止与其他应用冲突

This commit is contained in:
yafeilee 2014-05-25 00:56:11 +08:00
parent 023a135480
commit 9112b200ab
2 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,7 @@
Sidekiq.configure_server do |config|
config.redis = { :namespace => 'wblog' }
end
Sidekiq.configure_client do |config|
config.redis = { :namespace => 'wblog' }
end

View File

@ -3,8 +3,8 @@
:pidfile: tmp/pids/sidekiq.pid
:logfile: log/sidekiq.log
staging:
:concurrency: 10
:concurrency: 2
production:
:concurrency: 20
:concurrency: 2
:queues:
- [default, 2]