Skip to content

Instantly share code, notes, and snippets.

@marciok
Created May 23, 2013 22:05
Show Gist options
  • Save marciok/5639834 to your computer and use it in GitHub Desktop.
Save marciok/5639834 to your computer and use it in GitHub Desktop.
# my unicorn file
worker_processes 4 # amount of unicorn workers to spin up
timeout 30 # restarts workers that hang for 30 seconds
preload_app true # needed for newrelic_rpm to start its agent
after_fork do |server, worker|
Sidekiq.configure_client do |config|
config.redis = { size: 1 }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment