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
+16.1k Golang :Trim white spaces from a string
+5.5k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+51.6k Golang : How to get time in milliseconds?
+9.1k Golang : Terminate-stay-resident or daemonize your program?
+7.9k Android Studio : Rating bar example
+9.8k Golang : Test a slice of integers for odd and even numbers
+7.8k How to show different content from website server when AdBlock is detected?
+21.4k Golang : Setting up/configure AWS credentials with official aws-sdk-go
+7.5k Golang : Scan files for certain pattern and rename part of the files
+12.4k Swift : Convert (cast) Int or int32 value to CGFloat
+17.3k Golang : [json: cannot unmarshal object into Go value of type]
+28.4k Golang : Detect (OS) Operating System