Shutdown api not working


(T Vinod Gupta) #1

i was trying to follow the instructions here to gracefully shutdown ES. but
its not working.. are there any gotchas?

im using 0.18.7 version.

thanks


(Clinton Gormley) #2

On Wed, 2012-07-04 at 17:42 -0700, T Vinod Gupta wrote:

i was trying to follow the instructions here to gracefully shutdown
ES. but its not working.. are there any gotchas?

https://github.com/elasticsearch/elasticsearch/issues/64

Should just work. What command did you issue and what problem did you
see?


(T Vinod Gupta) #3

curl -XGET 'http://localhost:9200/_cluster/nodes/_shutdown?pretty=true'

running this was like a nop..
i got the below output -

{
"cluster_name" : "elasticsearch",
"nodes" : {
}
}

thanks

On Thu, Jul 5, 2012 at 12:24 AM, Clinton Gormley clint@traveljury.comwrote:

On Wed, 2012-07-04 at 17:42 -0700, T Vinod Gupta wrote:

i was trying to follow the instructions here to gracefully shutdown
ES. but its not working.. are there any gotchas?

https://github.com/elasticsearch/elasticsearch/issues/64

Should just work. What command did you issue and what problem did you
see?


(Clinton Gormley) #4

On Thu, 2012-07-05 at 00:27 -0700, T Vinod Gupta wrote:

curl -XGET
'http://localhost:9200/_cluster/nodes/_shutdown?pretty=true'

That should be a POST

http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html

clint


(T Vinod Gupta) #5

thanks, my bad - i didnt see this page.. somehow google search gave me the
other link and i just followed it!

On Thu, Jul 5, 2012 at 12:30 AM, Clinton Gormley clint@traveljury.comwrote:

On Thu, 2012-07-05 at 00:27 -0700, T Vinod Gupta wrote:

curl -XGET
'http://localhost:9200/_cluster/nodes/_shutdown?pretty=true'

That should be a POST

http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html

clint


(T Vinod Gupta) #6

i see that " curl -XPOST '
http://localhost:9200/_cluster/nodes/_shutdown?pretty=true' " does the job
of virtually shutting down ES by not making it accept any further requests
etc. but it doesn't kill the process.. so one has to run kill -9
too.. is that normal?

thanks

On Thu, Jul 5, 2012 at 12:33 AM, T Vinod Gupta tvinod@readypulse.comwrote:

thanks, my bad - i didnt see this page.. somehow google search gave me the
other link and i just followed it!

On Thu, Jul 5, 2012 at 12:30 AM, Clinton Gormley clint@traveljury.comwrote:

On Thu, 2012-07-05 at 00:27 -0700, T Vinod Gupta wrote:

curl -XGET
'http://localhost:9200/_cluster/nodes/_shutdown?pretty=true'

That should be a POST

http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html

clint


(system) #7