# Index size on node VS heap size

**URL:** <https://discuss.elastic.co/t/index-size-on-node-vs-heap-size/19218>\
**Category:** Elasticsearch\
**Created:** [August 12, 2014, 6:18am UTC](https://discuss.elastic.co/t/index-size-on-node-vs-heap-size/19218 "2014-08-12T06:18:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam\_porat](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@adam\_porat](https://discuss.elastic.co/u/adam_porat)\
**Post date:** [August 12, 2014, 6:18am UTC](https://discuss.elastic.co/t/index-size-on-node-vs-heap-size/19218/1 "2014-08-12T06:18:56Z")

</div>

Hi,

```
Let's say my machine has 40G of RAM, and so I set HEAP_SIZE to 20G, as 

```

recommended.

```
And let's say I have a single index on the machine.

Rougly, how large can the index be to maintain good performance? Must 

```

it be somewhat less than 20G?

Thank you.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 12, 2014, 6:20am UTC](https://discuss.elastic.co/t/index-size-on-node-vs-heap-size/19218/2 "2014-08-12T06:20:11Z")

</div>

No it can be more, it depends on what sort of queries you are doing and  
what data structures/types you are indexing.

Best bet is to keep throwing data at the index until the server can't take  
it, then you know the limit.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 12 August 2014 16:18, Adam Porat [adam.porat@gmail.com](mailto:adam.porat@gmail.com) wrote:

> Hi,
> 
> ```
> Let's say my machine has 40G of RAM, and so I set HEAP_SIZE to 20G, as
> 
> ```
> 
> recommended.
> 
> ```
> And let's say I have a single index on the machine.
> 
> Rougly, how large can the index be to maintain good performance? Must
> 
> ```
> 
> it be somewhat less than 20G?
> 
> Thank you.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624ZsP4K%3D%3DoKGy3JCwXcgWowcKaW0Ki%2BLS7rsJh%2BGRgWYZQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZsP4K%3D%3DoKGy3JCwXcgWowcKaW0Ki%2BLS7rsJh%2BGRgWYZQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![adam\_porat](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@adam\_porat](https://discuss.elastic.co/u/adam_porat)\
**Post date:** [August 14, 2014, 7:41am UTC](https://discuss.elastic.co/t/index-size-on-node-vs-heap-size/19218/3 "2014-08-14T07:41:29Z")

</div>

Thanks Mark.

בתאריך יום שלישי, 12 באוגוסט 2014 09:20:43 UTC+3, מאת Mark Walkom:

> No it can be more, it depends on what sort of queries you are doing and  
> what data structures/types you are indexing.
> 
> Best bet is to keep throwing data at the index until the server can't take  
> it, then you know the limit.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 12 August 2014 16:18, Adam Porat \<[adam....@gmail.com](mailto:adam....@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > Hi,
> > 
> > ```
> > Let's say my machine has 40G of RAM, and so I set HEAP_SIZE to 20G, 
> > 
> > ```
> > 
> > as recommended.
> > 
> > ```
> > And let's say I have a single index on the machine.
> > 
> > Rougly, how large can the index be to maintain good performance? Must 
> > 
> > ```
> > 
> > it be somewhat less than 20G?
> > 
> > Thank you.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e794ceab-d16e-4405-9775-cab138b35f26%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dbfab38e-fd9f-4a84-a498-9c8d44ff5ea1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dbfab38e-fd9f-4a84-a498-9c8d44ff5ea1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:08am UTC](https://discuss.elastic.co/t/index-size-on-node-vs-heap-size/19218/4 "2017-07-06T01:08:41Z")

</div>


