# ElasticSearch segment size too small

**URL:** <https://discuss.elastic.co/t/elasticsearch-segment-size-too-small/96268>\
**Category:** Elasticsearch\
**Created:** [August 8, 2017, 12:33pm UTC](https://discuss.elastic.co/t/elasticsearch-segment-size-too-small/96268 "2017-08-08T12:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bforevdr](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bforevdr](https://discuss.elastic.co/u/bforevdr)\
**Post date:** [August 8, 2017, 12:33pm UTC](https://discuss.elastic.co/t/elasticsearch-segment-size-too-small/96268/1 "2017-08-08T12:33:00Z")

</div>

We have a Elasticsearch cluster of four nodes, each allocated more than 32gb memory, but we found that we got too many small size segments which is about 20mb. We had tried some settings like:

indices.memory.index\_buffer\_size: 30%  
index.translog.flush\_threshold\_size: 5g  
index.refresh.interval: 60s

But it didn't work.

What can i do to achieve a bigger size segment like 512mb?

Just the same as described in：

> [@Elasticsearch Segment Size](https://discuss.elastic.co/t/elasticsearch-segment-size/2165):
>
> I am currently building a large Elasticsearch cluster that needs to be able to eventually handle 1,000,000 index requests per second. I am currently scaling to that point (at about 250k/s) but I are being held back by a large amount of segment merges. When I fire up the data stream, the cluster runs well for about 5 minutes then I start to see throttling due to a large amount of merges. I want to try to force Elasticsearch to create large initial segments so that it doesn't waste time merging s…

---

<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:** [August 9, 2017, 5:59am UTC](https://discuss.elastic.co/t/elasticsearch-segment-size-too-small/96268/2 "2017-08-09T05:59:03Z")

</div>

What type of data are you indexing? Is it immutable or are you also updating documents? Are you using your own document id or letting Elasticsearch assign it automatically?

---

<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:** [September 6, 2017, 5:59am UTC](https://discuss.elastic.co/t/elasticsearch-segment-size-too-small/96268/3 "2017-09-06T05:59:26Z")

</div>

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