# Primary shard size higher than replicas

**URL:** <https://discuss.elastic.co/t/primary-shard-size-higher-than-replicas/254852>\
**Category:** Elasticsearch\
**Created:** [November 10, 2020, 6:48am UTC](https://discuss.elastic.co/t/primary-shard-size-higher-than-replicas/254852 "2020-11-10T06:48:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Susheem\_Koul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/susheem_koul/32/78700_2.png) [@Susheem\_Koul](https://discuss.elastic.co/u/Susheem_Koul)\
**Post date:** [November 10, 2020, 6:48am UTC](https://discuss.elastic.co/t/primary-shard-size-higher-than-replicas/254852/1 "2020-11-10T06:48:14Z")

</div>

Hi,

We've been observing some strange behaviour on our ES Cluster for the last few weeks with the primary for a shard having a much higher size than the replica.

Here's the output for shard details API. Notice shard 2 in particular where the primary is 32.5 Gb while the replica is ~19 Gb. Also, I noticed that the Global Checkpoint and the Local Checkpoint seem off for the 2nd shard.

> <https://gist.github.com/SusheemKoul/3cc26f8c3b1d375cad160c9d266753ed>

I also checked the Index stats at shard level and could find the following information for shard 2. I noticed that the translog size is around 22 Gb for both the primary and replica which seems too high when compared to the other shards which are more or less in MBs. Here's the [full data](https://gist.github.com/SusheemKoul/a097c81235312a4253ecae07578d7fd7) for shard level stats.

> <https://gist.github.com/SusheemKoul/75854d944e8390269ed6f05a7d5546c6>

There are a couple of instances of RecoveryFailedException on the node which holds the replica of shard 2. Also there is a spike in JVM Memory pressure just before the problem started.

Here are some of the error logs that I found corresponding to the time at which the problem started.

> <https://gist.github.com/SusheemKoul/de295ce1013443ae958336828f8cef36>

Do let me know if anymore information is needed.  
Any help would be greatly appreciated!

Cheers,  
Susheem

---

<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:** [December 8, 2020, 6:48am UTC](https://discuss.elastic.co/t/primary-shard-size-higher-than-replicas/254852/2 "2020-12-08T06:48:15Z")

</div>

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