Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created May 24, 2012 15:56
Show Gist options
  • Select an option

  • Save mathieue/2782373 to your computer and use it in GitHub Desktop.

Select an option

Save mathieue/2782373 to your computer and use it in GitHub Desktop.
Monit configuration for elasticsearch service
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