elasticsearch-watchdog
Version:
A watchdog of elasticsearch - cluster nodes' statuses monitor, auto restart, keep PRIMARY node unique.
22 lines • 702 B
YAML
watchdog.name: percolator-server
nodes.elasticsearch: ["192.168.100.192", "192.168.100.193", "192.168.100.194","192.168.100.195"]
nodes:
ssh:
-
host: 192.168.100.192
port: 22
username: root
password: Beyondlink@192
es_stop: kill -9 `cat /var/www/elasticsearch-1.3.2/pid`
es_start: /var/www/elasticsearch-1.3.2/bin/elasticsearch -d -p /var/www/elasticsearch-1.3.2/pid -Xmx8G -Xms8G
- <<:
host: 192.168.100.193
password: Beyondlink@193
- <<:
host: 192.168.100.194
password: Beyondlink@194
- <<:
host: 192.168.100.195
password: Beyondlink@195
http.wait: 5m
http.retry: 3