# Any API to ask specific nodes to leave cluster without shutdown?

**URL:** <https://discuss.elastic.co/t/any-api-to-ask-specific-nodes-to-leave-cluster-without-shutdown/86204>\
**Category:** Elasticsearch\
**Created:** [May 18, 2017, 6:50am UTC](https://discuss.elastic.co/t/any-api-to-ask-specific-nodes-to-leave-cluster-without-shutdown/86204 "2017-05-18T06:50:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itplayer](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Post date:** [May 18, 2017, 6:50am UTC](https://discuss.elastic.co/t/any-api-to-ask-specific-nodes-to-leave-cluster-without-shutdown/86204/1 "2017-05-18T06:50:53Z")

</div>

Do we have any way to call API to ask some nodes leave the cluster without shutdown the node?

Also, are there any API to know what is current "replica number" & "shard number" & "min master node number"? Because I hit a problem is when we rolling upgrade Elasticsearch nodes, some nodes set its shard=2 and join to the cluster, but current master set its shard=6, when those nodes with shard=2 become the master, they create indices with shard=2.(Supposedly it should be 6).

I need to make sure at any moment when I ask cluster, they can give me correct info.  
PS: Is this normal that in a cluster, some nodes will not respect master settings( for example: shard number)? Supposedly any joined node should receive master node config and every node in the cluster should have consist configuration?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 20, 2017, 11:40pm UTC](https://discuss.elastic.co/t/any-api-to-ask-specific-nodes-to-leave-cluster-without-shutdown/86204/2 "2017-05-20T23:40:14Z")

</div>

> [@itplayer](#):
>
> Do we have any way to call API to ask some nodes leave the cluster without shutdown the node?

There is not.

> [@itplayer](#):
>
> Because I hit a problem is when we rolling upgrade Elasticsearch nodes, some nodes set its shard=2 and join to the cluster, but current master set its shard=6, when those nodes with shard=2 become the master, they create indices with shard=2.(Supposedly it should be 6).

How are you defining the number of shards to be set, in the config file?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 17, 2017, 11:40pm UTC](https://discuss.elastic.co/t/any-api-to-ask-specific-nodes-to-leave-cluster-without-shutdown/86204/3 "2017-06-17T23:40:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
