# Primary shards for search

**URL:** https://discuss.elastic.co/t/primary-shards-for-search/384310
**Category:** Elasticsearch
**Created:** [December 30, 2025, 7:21am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310 "2025-12-30T07:21:19Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Elastic04](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@Elastic04](https://discuss.elastic.co/u/Elastic04)
#### Post date: [December 30, 2025, 7:21am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/1 "2025-12-30T07:21:19Z")

</div>

I a currently using 3 primary shards and 2 replica shards. How reducing number of primary shards affects search and what’s the impact on cluster?

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [December 30, 2025, 8:29am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/2 "2025-12-30T08:29:20Z")

</div>

Check [the link](https://stackoverflow.com/questions/77406257/how-does-replica-shards-help-improve-search-performance)

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 30, 2025, 11:42am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/3 "2025-12-30T11:42:08Z")

</div>

What is driving the desire to change? What is the problem you are looking to solve? What is the size of the shards in the index?

---

<div class="post-metadata">

### Author: ![Elastic04](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@Elastic04](https://discuss.elastic.co/u/Elastic04)
#### Post date: [December 30, 2025, 4:37pm UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/4 "2025-12-30T16:37:00Z")

</div>

We currently have 3 primary shards and 2 replica shards. The shards for the live product search index are all less than 2.5GB. The staging indices have shards that are considerably smaller: less than 150MB. The live suggestion search indices are all around 1GB, and their staging counterparts are less than 120MB.

We are having frequent circuit breaker exceptions and bulk request failures during indexing. So, we are doing this to free some resources in the cluster.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 30, 2025, 6:12pm UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/5 "2025-12-30T18:12:10Z")

</div>

Which version of Elasticsearch are you using?

What is causing the circuit breaker issues?

What is the size and specification of the cluster?

What type and mix of load is the cluster under?

How many indices do in total have in the cluster? What is the total data volume?

---

<div class="post-metadata">

### Author: ![Itamar\_Syn-Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn-hershko/32/118620_2.png) [@Itamar\_Syn-Hershko](https://discuss.elastic.co/u/Itamar_Syn-Hershko)
#### Post date: [December 31, 2025, 6:44am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/6 "2025-12-31T06:44:42Z")

</div>

The questions Christian is asking are all valid. In all likelihood, shards that are less than 5-10gb for real workloads on real production clusters are most likely resource wastage.

Live suggestion indices are memory heavy and are sometimes an anomaly to this rule - but then it really matters how often you update them and what are the resources you have available to maintain them.

If you want a quick definitive answer you may want to connect your cluster to Pulse ([https://pulse.support/](https://pulse.support/)), it should be able to automatically give you a good idea of what’s going on.

---

<div class="post-metadata">

### Author: ![RainTown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raintown/32/140206_2.png) [@RainTown](https://discuss.elastic.co/u/RainTown)
#### Post date: [December 31, 2025, 9:38am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/7 "2025-12-31T09:38:48Z")

</div>

![Screenshot 2025-12-31 at 09.43.18](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6da8f5b229d7de55a80e38bbdf6a8879dbca3e7e.jpeg)

I don't know the forum policy on ads. And I have no opinion on your product, never heard of or used it, and it can be helpful to suggest tools that might be useful to @Elastic04 and others. But, if you are going to suggest **your own company's products/tools** , then at least be open and state very clearly your direct involvement / interest when making the suggestion please. You made 3 posts today, 2 are promoting your own company's products!

---

<div class="post-metadata">

### Author: ![Elastic04](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@Elastic04](https://discuss.elastic.co/u/Elastic04)
#### Post date: [January 1, 2026, 6:48am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/8 "2026-01-01T06:48:35Z")

</div>

We are currently on 8.9 but upgrading to 9.x in next month.

We have no idea what is causing circuit breaker at the moment but this is the error log:

```auto
{"error":{"root_cause":[{"type":"circuit_breaking_exception","reason":"[parent] Data too large, data for [indices:admin/aliases/get] would be [7561944652/7gb], which is larger than the limit of [7558764953/7gb], real usage: [7561925776/7gb], new bytes reserved: [18876/18.4kb], usages [model_inference=0/0b, inflight_requests=89216/87.1kb, request=846238/826.4kb, fielddata=381693/372.7kb, eql_sequence=0/0b]","bytes_wanted":7561944652,"bytes_limit":7558764953,"durability":"TRANSIENT"}],"type":"circuit_breaking_exception","reason":"[parent] Data too large, data for [indices:admin/aliases/get] would be [7561944652/7gb], which is larger than the limit of [7558764953/7gb], real usage: [7561925776/7gb], new bytes reserved: [18876/18.4kb], usages [model_inference=0/0b, inflight_requests=89216/87.1kb, request=846238/826.4kb, fielddata=381693/372.7kb, eql_sequence=0/0b]","bytes_wanted":7561944652,"bytes_limit":7558764953,"durability":"TRANSIENT"},"status":429}

```

Hot nodes: 3.8 vCPU / 15GB RAM / 120GB storage. Three nodes are deployed over 3 availability zones.

171 indices and number of shards per node: ~211. Data volume currently - 137.4 GB

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [January 1, 2026, 8:48am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/9 "2026-01-01T08:48:50Z")

</div>

Check [the topic](https://discuss.elastic.co/t/data-too-large/32141)

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 1, 2026, 9:45am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/10 "2026-01-01T09:45:33Z")

</div>

> [@Elastic04](#):
>
> 171 indices and number of shards per node: ~211. Data volume currently - 137.4 GB

That does sound like a lot of small indices and shards. I Would recommend merging indices that are related and have these have 1 primary shard only. Aim for an average shard size of between 5GB and 20GB. This will likely reduce the overhead, but I am not sure by how much or whether it will be sufficient, as it will depend on the load the cluster is under and the type and quantity of features used.

What does the load profile look like? Are you primarily running queries or are you also performing inserts and updates? What is the ratio?

As you are in a virtualised environment it would also make sense to ensure that your storage is not a bottleneck, e.g. by running `iostat -x` on the nodes while they are under load.

---

<div class="post-metadata">

### Author: ![Elastic04](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@Elastic04](https://discuss.elastic.co/u/Elastic04)
#### Post date: [January 20, 2026, 5:56am UTC](https://discuss.elastic.co/t/primary-shards-for-search/384310/11 "2026-01-20T05:56:30Z")

</div>

We are mainly using the indices for our search application. Indexing is done through a nightly job and new index is created everyday. We don’t do inserts and updates as of now but we plan on moving to real time indexing in the near future. We are using Elastic cloud hosted.
