Skip to content

Instantly share code, notes, and snippets.

@alx
Forked from jsmestad/cold.monitrc
Created January 15, 2009 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alx/47691 to your computer and use it in GitHub Desktop.
Save alx/47691 to your computer and use it in GitHub Desktop.
check process merb_app_master
with pidfile /home/deploy/legodata/slice/shared/pids/production-merb.main.pid
start program = "/home/deploy/bin/monit_merb_mpc slice start_master /home/deploy/legodata -c2 -n4000"
stop program = "/home/deploy/bin/monit_merb_mpc slice stop_master /home/deploy/legodata"
#if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory?
group master.slice.legodata.com
# Worker configuration (one for each worker port required)
check process merb_app_4000
with pidfile /home/deploy/legodata/slice/shared/pids/production-merb.4000.pid
start program = "/home/deploy/bin/monit_merb_mpc slice register_worker /home/deploy/legodata 4000"
stop program = "/home/deploy/bin/monit_merb_mpc slice restart_worker /home/deploy/legodata 4000"
if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory?
group workers.slice.legodata.com
check process merb_app_4001
with pidfile /home/deploy/legodata/slice/shared/pids/production-merb.4001.pid
start program = "/home/deploy/bin/monit_merb_mpc slice register_worker /home/deploy/legodata 4001"
stop program = "/home/deploy/bin/monit_merb_mpc slice restart_worker /home/deploy/legodata 4001"
if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory?
group workers.slice.legodata.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment