# I want to increase the number of total for each index,is it by vm. max\_map\_count?

**URL:** <https://discuss.elastic.co/t/i-want-to-increase-the-number-of-total-for-each-index-is-it-by-vm-max-map-count/191618>\
**Category:** Elasticsearch\
**Created:** [July 22, 2019, 11:09am UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-total-for-each-index-is-it-by-vm-max-map-count/191618 "2019-07-22T11:09:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![idris](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@idris](https://discuss.elastic.co/u/idris)\
**Post date:** [July 22, 2019, 11:09am UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-total-for-each-index-is-it-by-vm-max-map-count/191618/1 "2019-07-22T11:09:45Z")

</div>

Basically, i 've got two indexes referring to swiss news in french and German, i noticed that i have some documents of each language about 200 ,it is a small size,before i added a new index in German , i had for french index about 4000 documents.

The point is i need to increase the virtual memory ot have at the same time french and german index by using this command line

` sudo sysctl -w vm.max_map_count=262144` and now i move to 800000 to run those indexes

if i make a print on logs for docker-compose,here we go

> elasticsearch\_1 | [2019-07-22T08:55:48,094][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:55:48,094][INFO][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] rerouting shards: [high disk watermark exceeded on one or more nodes]  
> elasticsearch\_1 | [2019-07-22T08:56:18,095][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:56:48,107][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:56:48,107][INFO][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] rerouting shards: [high disk watermark exceeded on one or more nodes]  
> elasticsearch\_1 | [2019-07-22T08:57:18,109][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:57:48,110][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:57:48,110][INFO][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] rerouting shards: [high disk watermark exceeded on one or more nodes]  
> elasticsearch\_1 | [2019-07-22T08:58:18,112][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:58:48,114][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:58:48,114][INFO][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] rerouting shards: [high disk watermark exceeded on one or more nodes]  
> elasticsearch\_1 | [2019-07-22T08:59:18,115][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node  
> elasticsearch\_1 | [2019-07-22T08:59:48,117][WARN][o.e.c.r.a.DiskThresholdMonitor] [GJwUVFz] high disk watermark [90%] exceeded on [GJwUVFzAQYGs9fGNB4\_34w][GJwUVFz][/usr/share/elasticsearch/data/nodes/0] free: 2.9gb[6.2%], shards will be relocated away from this node

the question is how can i build some indexes without have any problem related to virtual memory???and i need to increase the size fro each index(how many documents we have(total))

Thank you for you help Elastic community,let's share this topic!

---

<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:** [August 19, 2019, 11:09am UTC](https://discuss.elastic.co/t/i-want-to-increase-the-number-of-total-for-each-index-is-it-by-vm-max-map-count/191618/2 "2019-08-19T11:09:48Z")

</div>

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