Skip to content

Instantly share code, notes, and snippets.

@alx
Created January 12, 2009 17:08
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/46060 to your computer and use it in GitHub Desktop.
Save alx/46060 to your computer and use it in GitHub Desktop.
check process merb_app_master
with pidfile /var/log/merb/app-production-merb.main.pid
start program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice start_master -c2 -n4000"
stop program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice stop_master"
#if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory?
group merb_app
# Worker configuration (one for each worker port required)
check process merb_app_4000
with pidfile /var/log/merb/app-production-merb.4000.pid
start program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice register_worker 4000"
stop program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice restart_worker 4000"
if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory?
group merb_app
check process merb_app_4001
with pidfile /var/log/merb/app-production-merb.4001.pid
start program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice register_worker 4001"
stop program = "/usr/local/bin/monit_merb_mpc /home/deploy/legodata/slice restart_worker 4001"
if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory?
group merb_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment