We perform rolling upgrades on Elasticsearch cluster in our production
environment. Current version of Elasticsearch is 1.3.4 and we're running it
on Windows Server 2012 machines. Rolling upgrade needs each node to be
stopped one at a time. We use "service.bat stop" to do so. Sometimes this
operation successfully stops Elasticsearch service quickly but some other
times, it does not stop for a very long time and we resort to killing the
process from Task Manager. Obviously this is not the most elegant way to do
things but we've been getting away with it till now. In Elasticsearch
documents regarding rolling upgrade, it is mentioned to use Nodes Shutdown
API http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html
to stop Elasticsearch. Apparently both do the same thing but I'm not sure
about it and hence asking in this forum. Below are some of my queries
hoping somebody will be able to answer in this group:
Do "service.bat stop" and Nodes Shutdown API behave exactly in the
same way?
When "service.bat stop" is stuck for a very long time (more than 30
minutes), what is the recommended way to do a graceful shutdown or at least
know the consequences of killing the process from Task Manager?
That doesn't sound right, I'd suggest upgrading to 1.5.X and see if
the problem still exists and then we can go from there. It may mean raising
an issue on Github to track down a problem.
Though the methods you have listed are the best to stop the process.
We perform rolling upgrades on Elasticsearch cluster in our production
environment. Current version of Elasticsearch is 1.3.4 and we're running it
on Windows Server 2012 machines. Rolling upgrade needs each node to be
stopped one at a time. We use "service.bat stop" to do so. Sometimes this
operation successfully stops Elasticsearch service quickly but some other
times, it does not stop for a very long time and we resort to killing the
process from Task Manager. Obviously this is not the most elegant way to do
things but we've been getting away with it till now. In Elasticsearch
documents regarding rolling upgrade, it is mentioned to use Nodes
Shutdown API http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html
to stop Elasticsearch. Apparently both do the same thing but I'm not sure
about it and hence asking in this forum. Below are some of my queries
hoping somebody will be able to answer in this group:
Do "service.bat stop" and Nodes Shutdown API behave exactly in the
same way?
When "service.bat stop" is stuck for a very long time (more than 30
minutes), what is the recommended way to do a graceful shutdown or at least
know the consequences of killing the process from Task Manager?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.