Shutdown api not working

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

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?

Shutdown API: allow to shutdown node(s) or the whole cluster · Issue #64 · elastic/elasticsearch · GitHub

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

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?

Shutdown API: allow to shutdown node(s) or the whole cluster · Issue #64 · elastic/elasticsearch · GitHub

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

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

clint

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

Elasticsearch Platform — Find real-time answers at scale | Elastic

clint

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

Elasticsearch Platform — Find real-time answers at scale | Elastic

clint