# Balancing cluster by segments memory usage

**URL:** <https://discuss.elastic.co/t/balancing-cluster-by-segments-memory-usage/211809>\
**Category:** Elasticsearch\
**Created:** [December 13, 2019, 3:12pm UTC](https://discuss.elastic.co/t/balancing-cluster-by-segments-memory-usage/211809 "2019-12-13T15:12:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crs](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@crs](https://discuss.elastic.co/u/crs)\
**Post date:** [December 13, 2019, 3:12pm UTC](https://discuss.elastic.co/t/balancing-cluster-by-segments-memory-usage/211809/1 "2019-12-13T15:12:51Z")

</div>

Hi,

I have cluster running on 8 nodes with many indices. Each node holds 1300-1400 segments but they differ v.much in terms of segments memory usage. Minimum is 12,9GB - max 17.9GB. Average memory usage is ~15GB per node, so my question is whether there's a way to better spread indices among nodes, to have each node closer to average value. Now I have situation that nodes having high segment memory usage suffer from frequent and long GC operations. Elasticsearch 6.5.

Regards -  
Chris Ksiezyk

---

<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:** [January 10, 2020, 3:19pm UTC](https://discuss.elastic.co/t/balancing-cluster-by-segments-memory-usage/211809/2 "2020-01-10T15:19:29Z")

</div>

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