# Assigning Shards in ElasticSearch Cluster

**URL:** <https://discuss.elastic.co/t/assigning-shards-in-elasticsearch-cluster/298021>\
**Category:** Elasticsearch\
**Created:** [February 23, 2022, 11:38am UTC](https://discuss.elastic.co/t/assigning-shards-in-elasticsearch-cluster/298021 "2022-02-23T11:38:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![subham](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@subham](https://discuss.elastic.co/u/subham)\
**Post date:** [February 23, 2022, 11:38am UTC](https://discuss.elastic.co/t/assigning-shards-in-elasticsearch-cluster/298021/1 "2022-02-23T11:38:01Z")

</div>

Hi All,

I have 8 nodes in my ES cluster. I want to de-provision 2 of the servers. When i stop the Elasticsearch process in 2 of my nodes, the 430 shards which are assigned to these 2 nodes gets unassigned. Is there any way to get these shards assigned in the rest 6 nodes automatically. I have enough disk space on these nodes.

Please let me know if you need more info. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 23, 2022, 11:59am UTC](https://discuss.elastic.co/t/assigning-shards-in-elasticsearch-cluster/298021/2 "2022-02-23T11:59:49Z")

</div>

If there is a copy of the shard available somewhere else in the cluster, then shutting a node will result in those copies being duplicates to keep the number of replicas high enough.

However, if you have only a single replica of a shard and shut down the two nodes containing that replica it cannot be recovered.

Hope that makes sense.

You may want to take a look at the [Put shutdown API | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/put-shutdown.html)

---

<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:** [March 23, 2022, 12:00pm UTC](https://discuss.elastic.co/t/assigning-shards-in-elasticsearch-cluster/298021/3 "2022-03-23T12:00:37Z")

</div>

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