# Delete index in a cluster overloaded

**URL:** <https://discuss.elastic.co/t/delete-index-in-a-cluster-overloaded/68286>\
**Category:** Elasticsearch\
**Created:** [December 7, 2016, 11:08am UTC](https://discuss.elastic.co/t/delete-index-in-a-cluster-overloaded/68286 "2016-12-07T11:08:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanocog](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@stefanocog](https://discuss.elastic.co/u/stefanocog)\
**Post date:** [December 7, 2016, 11:08am UTC](https://discuss.elastic.co/t/delete-index-in-a-cluster-overloaded/68286/1 "2016-12-07T11:08:46Z")

</div>

Hello,  
i have a cluster with 3 nodes and too many index (about 13400 with 1 shard per index, 26800 shard), the cluster fails to do resharding, because the heap memory becomes full (10g on 16 g total), i tried to delete index but i have an error of timeout (also with timeout\_master option set to 5m), is there any way to force the elimination? I do not know how to restart the cluster...  
Thanks

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 8, 2016, 2:57pm UTC](https://discuss.elastic.co/t/delete-index-in-a-cluster-overloaded/68286/2 "2016-12-08T14:57:24Z")

</div>

> [@stefanocog](#):
>
> 26800 shard

Yeah, that is a lot!

> [@stefanocog](#):
>
> I do not know how to restart the cluster

You can shell into each of the machines and restart them. There is a setting, `gateway.expected_nodes` that you should set so the startup waits before it freaks out about not all the nodes being up.

Frankly as this point I'd bump the heap on all the nodes to 13GB, delete the indexes you can get away with deleting, and then drop the heap again, restarting the cluster both times I changed the heap.

I expect the cluster is fairly unusable with all of the timeouts.

---

<div class="post-metadata">

**Author:** ![stefanocog](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@stefanocog](https://discuss.elastic.co/u/stefanocog)\
**Post date:** [December 12, 2016, 1:30pm UTC](https://discuss.elastic.co/t/delete-index-in-a-cluster-overloaded/68286/3 "2016-12-12T13:30:07Z")

</div>

I resolved disabling sharding allocation, i managed to delete indexes, and then I enabled sharding

---

<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:** [January 9, 2017, 1:30pm UTC](https://discuss.elastic.co/t/delete-index-in-a-cluster-overloaded/68286/4 "2017-01-09T13:30:15Z")

</div>

Closed on January 9, 2017, 1:30pm UTC

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