Created
January 14, 2009 17:47
-
-
Save jsmestad/46981 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process merb_cold_master | |
with pidfile /var/log/engineyard/cold/cold-production-merb.main.pid | |
start program = "/engineyard/bin/monit_merb_mpc cold start_master -c2 -n4000 -e express" | |
stop program = "/engineyard/bin/monit_merb_mpc cold stop_master" | |
#if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory? | |
group merb_cold | |
# Worker configuration (one for each worker port required) | |
check process merb_cold_4000 | |
with pidfile /var/log/engineyard/cold/cold-production-merb.4000.pid | |
start program = "/engineyard/bin/monit_merb_mpc cold register_worker 4000 -e express" | |
stop program = "/engineyard/bin/monit_merb_mpc cold restart_worker 4000" | |
if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory? | |
group merb_cold | |
check process merb_cold_4001 | |
with pidfile /var/log/engineyard/cold/cold-production-merb.4001.pid | |
start program = "/engineyard/bin/monit_merb_mpc cold register_worker 4001 -e express" | |
stop program = "/engineyard/bin/monit_merb_mpc cold restart_worker 4001" | |
if totalmem is greater than 80.0 MB for 2 cycles then restart # eating up memory? | |
group merb_cold |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment