# Elastic Cloud - Too many shards - Help to fix it

**URL:** <https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [April 3, 2022, 8:57am UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419 "2022-04-03T08:57:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgfeal](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgfeal](https://discuss.elastic.co/u/mgfeal)\
**Post date:** [April 3, 2022, 8:57am UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419/1 "2022-04-03T08:57:47Z")

</div>

Hello,

We have definitely contracted Elastic Cloud. And we've started building integrations for IIS, which collect access and error logs, and IIS metrics as well.

When we had added about 5 such integrations, Elastic started crashing. JVM memory pressure was high and servers were constantly restarting. On the recommendation of the commercial part of Elastic, for the little use that we give to the platform, we start with the most basic servers, with 1GB of RAM. We were always told to look at the GB of space we would use. And we contracted Elastic Cloud precisely so as not to need people specialized in performance, since we don't have the people or the time for this learning.

After upgrading the machines to 2GB yesterday, Elastic support tells us that we have to improve performance as it is. Right now we have more than 400 shards and about 120 indexes. The deployment has been running for a week. We have read something about how to correct this, although it is not clear to us what we should do.

One of the recommendations is the ILM policy. But there are integrations that have been working for 2-3 days. What policy can we apply to something like that?

Thanks!

 ![elastic_discuss_02](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5a0a31be4669cf7d876e3c3b28b65a464be30ba6.jpeg)

 ![elastic_discuss_01](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe0b7cac22a3751c6cc92a9fa073b5af57064872.jpeg)

---

<div class="post-metadata">

**Author:** ![mgfeal](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgfeal](https://discuss.elastic.co/u/mgfeal)\
**Post date:** [April 3, 2022, 8:59am UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419/2 "2022-04-03T08:59:30Z")

</div>

> **[elastic\_discuss\_index.txt and 1 more file](https://wetransfer.com/downloads/8a3086ef532188ef26a573511f8f4ddc20220403085911/55e13e)**
>
> 2 files sent via WeTransfer, the simplest way to send your files around the world

Here are our list of shards and indexes.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 3, 2022, 2:46pm UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419/3 "2022-04-03T14:46:48Z")

</div>

What is the nature of the performance problem you are trying to address?

---

<div class="post-metadata">

**Author:** ![mgfeal](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgfeal](https://discuss.elastic.co/u/mgfeal)\
**Post date:** [April 4, 2022, 11:14am UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419/4 "2022-04-04T11:14:21Z")

</div>

We have a lot of shards (now 462). And our machines have a JVM memory pressure too high. I don't know if it's possible to reduce the shards (as I say, we deployed Elastic Cloud a week ago). Thanks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 4, 2022, 11:20am UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419/5 "2022-04-04T11:20:09Z")

</div>

The screenshot you shared above shows all memory usage as "Normal" so that seems fine? If it's sometimes high it's probably because the cluster is working hard and not really to do with the shard count - you're on 8.1.2 which is recent enough to be able to cope with more shards than older versions.

If you need help understanding high heap usage and cannot pin down the reason for it, best to open a support ticket and ask the support engineer to look at a heap dump.

---

<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:** [May 2, 2022, 11:20am UTC](https://discuss.elastic.co/t/elastic-cloud-too-many-shards-help-to-fix-it/301419/6 "2022-05-02T11:20:20Z")

</div>

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