Skip to content

Instantly share code, notes, and snippets.

@alain75007
Created May 4, 2013 16:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alain75007/5518001 to your computer and use it in GitHub Desktop.
Save alain75007/5518001 to your computer and use it in GitHub Desktop.
Monit configuration for sidekiq on debian which complete the init shell you'll find in my gists
check process sidekiq_production with pidfile /var/run/sidekiq_production.pid
depends on redis-server
start program = "/etc/init.d/sidekiq_production start" with timeout 90 seconds
stop program = "/etc/init.d/sidekiq_production stop" with timeout 90 seconds
if totalmem is greater than 200 MB for 2 cycles then restart # eating up memory?
if 2 restarts within 3 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment