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
+8.9k Golang : Play .WAV file from command line
+16.2k Golang : File path independent of Operating System
+10.5k Golang : Sieve of Eratosthenes algorithm
+5.7k Golang : Build new URL for named or registered route with Gorilla webtoolkit example
+20.3k Golang : Convert date string to variants of time.Time type examples
+42.5k Golang : Get hardware information such as disk, memory and CPU usage
+11.2k Golang : Handle API query by curl with Gorilla Queries example
+38.6k Golang : How to iterate over a []string(array)
+9.9k Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter
+17.1k Golang : [json: cannot unmarshal object into Go value of type]
+9.2k Golang : Validate IPv6 example
+4.1k Linux/MacOSX : Search and delete files by extension