# Problems caused by creating replica shards too quickly

**URL:** <https://discuss.elastic.co/t/problems-caused-by-creating-replica-shards-too-quickly/299513>\
**Category:** Elasticsearch\
**Created:** [March 12, 2022, 7:07am UTC](https://discuss.elastic.co/t/problems-caused-by-creating-replica-shards-too-quickly/299513 "2022-03-12T07:07:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slowup](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slowup/32/99097_2.png) [@slowup](https://discuss.elastic.co/u/slowup)\
**Post date:** [March 12, 2022, 7:07am UTC](https://discuss.elastic.co/t/problems-caused-by-creating-replica-shards-too-quickly/299513/1 "2022-03-12T07:07:29Z")

</div>

When we execute batch execution, if the primary shard is indexed, we are increasing the replica shard at that time, But at that time, the search engine creates replica shards, and as you can see from the metrix, a large amount of data is indexed, so the segment count rises rapidly.  
So merge, flush, refresh spike...

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/0/a0b4359b084176f85623aaef5a2dfb1d0a2a3670.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a3efd991a038fb6ed020dd1a3ba0ed38b9245e6.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/1/d15eab28ff48d1506a5fe7a19ee03aff74cdbbed.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/1/519cef3fcc48b714293fa922e8d9f7ed2d49fcbe.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d607005ce31add1cf4282e76124be6007af6ef54.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3c12d61c1cb2b041d90e23aa21229926827439b2.png)

Any good solutions?

---

<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:** [April 9, 2022, 7:08am UTC](https://discuss.elastic.co/t/problems-caused-by-creating-replica-shards-too-quickly/299513/2 "2022-04-09T07:08:11Z")

</div>

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