Elasticsearch : Shutdown a local node
Elasticsearch is a fantastic tool for adding search and indexing capability to your website or application. Basically, it functions just like the indexes that you get to see on paper books which enable faster searching. This short tutorial is about how to shutdown a local Elasticsearch node(on your server) ... because the traditional way of thinking should be issuing a command line to the elasticsearch executable.... but in this case, it is more complicated. So....
Problem : How to shutdown a local Elasticsearch node ?
Solution : Use this command
$ curl -XPOST 'http://localhost:9200/cluster/nodes/local/_shutdown'
and if you are looking to shutdown entire cluster of nodes, use one of these commands
$ curl -XPOST 'http://localhost:9200/_shutdown'
$ curl -XPOST 'http://localhost:9200/cluster/nodes/shutdown'
$ curl -XPOST 'http://localhost:9200/cluster/nodes/all/_shutdown'
Reference :
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+6.4k Golang : Individual and total number of words counter example
+6.2k Golang : Check if one string(rune) is permutation of another string(rune)
+8.1k Golang : Play .WAV file from command line
+5.2k Golang : Join lines with certain suffix symbol example
+7.6k Golang : Convert(cast) []byte to io.Reader type
+15.8k Golang : XML to JSON example
+8k Golang : Serving HTTP and Websocket from different ports in a program example
+8.9k Golang : Channels and buffered channels examples
+28.8k Golang : Remove characters from string example
+7.2k Golang : Metaprogramming example of wrapping a function
+14.1k Golang : How do I get the local IP (non-loopback) address ?