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.7k Golang : Rename part of filename
+19.6k Golang : Underscore or snake_case to camel case example
+6.2k Golang : A simple forex opportunities scanner
+23.5k Golang : GORM read from database example
+8.8k Javascript : Read/parse JSON data from HTTP response
+9.2k Golang : Use regular expression to get all upper case or lower case characters example
+6.8k Golang : Command line ticker to show work in progress
+25.5k Golang : Encrypt and decrypt data with AES crypto
+6.5k Golang : alternative to os.Exit() function
+8.6k Golang : Extract or copy items from map based on value
+6k Default cipher that OpenSSL used to encrypt a PEM file
+7.3k Golang : HttpRouter multiplexer routing example