Created
May 24, 2012 15:56
-
-
Save mathieue/2782373 to your computer and use it in GitHub Desktop.
Monit configuration for elasticsearch service
This file contains hidden or 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
| set daemon 120 | |
| set logfile syslog facility log_daemon | |
| check process es with pidfile /home/es/elasticsearch-0.17.10/var/run.pid | |
| start program = "/home/es/elasticsearch-0.17.10/bin/elasticsearch -p /home/es/elasticsearch-0.17.10/var/run.pid" | |
| stop program = "kill $(cat /home/es/elasticsearch-0.17.10/var/run.pid)" | |
| # humm.. need to improve this... | |
| if cpu > 80% for 20 cycles then restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment