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
+18.2k Golang : Find IP address from string
+14.3k Golang : Missing Bazaar command
+23.2k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+20.9k Golang : Create and resolve(read) symbolic links
+6.6k Mac/Linux/Windows : Get CPU information from command line
+11.7k Golang : Determine if time variables have same calendar day
+7.1k Golang : Word limiter example
+22.8k Golang : Randomly pick an item from a slice/array example
+9.9k Golang : Get login name from environment and prompt for password
+14k Golang : How to convert a number to words
+22.2k Golang : Convert Unix timestamp to UTC timestamp
+31.2k Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions