Skip to content

Instantly share code, notes, and snippets.

@vindia
Created June 25, 2015 12:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vindia/7f356499e646898dbeab to your computer and use it in GitHub Desktop.
Save vindia/7f356499e646898dbeab to your computer and use it in GitHub Desktop.
Initializer to use Sidekiq on Heroku
# 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
@vindia
Copy link
Author

vindia commented Jun 25, 2015

For the right number for size, see this handy calculator http://manuel.manuelles.nl/blog/2012/11/13/sidekiq-on-heroku-with-redistogo-nano/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment