Created
June 25, 2015 12:08
-
-
Save vindia/7f356499e646898dbeab to your computer and use it in GitHub Desktop.
Initializer to use Sidekiq on Heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/sidekiq.rb | |
require 'sidekiq' | |
Sidekiq.configure_client do |config| | |
config.redis = { size: 1 } | |
end | |
Sidekiq.configure_server do |config| | |
config.redis = { size: 9 } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the right number for
size
, see this handy calculator http://manuel.manuelles.nl/blog/2012/11/13/sidekiq-on-heroku-with-redistogo-nano/