Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic Search should terminate & restart gracefully #91

Open
omgitsads opened this issue May 18, 2013 · 1 comment
Open

Elastic Search should terminate & restart gracefully #91

omgitsads opened this issue May 18, 2013 · 1 comment

Comments

@omgitsads
Copy link

From one of our customers John Paul:

check process elasticsearch_9080 
  with pidfile /var/run/elasticsearch.pid
  start program = "/usr/lib/elasticsearch/bin/elasticsearch -p /var/run/elasticsearch.pid" with timeout 90 seconds 
  stop program = "/bin/bash -c '/bin/kill `cat /var/run/elasticsearch.pid`'" with timeout 90 seconds 
  group elasticsearch

kill is just program sends a TERM signal to a process by default. it does not guarantee the shutdown process, so after a Kill, Monit thinks that ES is off. but > in reality it is not so!

Next, monit starts a new process elasticsearch. Together with the old process, they form a cluster. New shard begins to process and download the data from the old shard, but do not have time, as the old process shutdowned by kill.

This can cause vanishing indexes

This situation can be avoided by using standard upstart or systemd as supervisor of demons.

@dvalfre
Copy link
Contributor

dvalfre commented Oct 23, 2016

@radamanthus in the light of all the changes done to the ElasticSearch recipe, is the issue still relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants