# Index Size and Replica Impact

**URL:** <https://discuss.elastic.co/t/index-size-and-replica-impact/23333>\
**Category:** Elasticsearch\
**Created:** [April 20, 2015, 9:54pm UTC](https://discuss.elastic.co/t/index-size-and-replica-impact/23333 "2015-04-20T21:54:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TB1](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TB1](https://discuss.elastic.co/u/TB1)\
**Post date:** [April 20, 2015, 9:54pm UTC](https://discuss.elastic.co/t/index-size-and-replica-impact/23333/1 "2015-04-20T21:54:26Z")

</div>

I have my indexes size @ 6 GB currently with replica set @ 1.  
I have 3 node cluster, in order to utilize the cluster , my understanding  
that i would have set the replica to 3.  
If i do that, would my index size grow more than 6 GB in each node?

--  
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/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 21, 2015, 5:33am UTC](https://discuss.elastic.co/t/index-size-and-replica-impact/23333/2 "2015-04-21T05:33:32Z")

</div>

You don't have to set replicas to 3. It depends on the number of shards you have for your index.  
If you are using default (5), then you probably have today something like:

Node 1 : 4 shards  
Node 2 : 3 shards  
Node 3 : 3 shards

Each shard should be around 600mb size (If using all defaults).

What are your exact index settings today?

David

> Le 20 avr. 2015 à 23:54, TB [txindfun@gmail.com](mailto:txindfun@gmail.com) a écrit :
> 
> I have my indexes size @ 6 GB currently with replica set @ 1.  
> I have 3 node cluster, in order to utilize the cluster , my understanding that i would have set the replica to 3.  
> If i do that, would my index size grow more than 6 GB in each node?
> 
> --  
> 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/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com).  
> 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/517407CD-0008-4C68-89A9-29FC3B0E18DD%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/517407CD-0008-4C68-89A9-29FC3B0E18DD%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Norberto\_Meijome](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@Norberto\_Meijome](https://discuss.elastic.co/u/Norberto_Meijome)\
**Post date:** [April 21, 2015, 5:55am UTC](https://discuss.elastic.co/t/index-size-and-replica-impact/23333/3 "2015-04-21T05:55:46Z")

</div>

Replica = 3 means 4 copies of your data ( for each shard, 1 master and 3  
replicas)  
On 21/04/2015 7:54 am, "TB" [txindfun@gmail.com](mailto:txindfun@gmail.com) wrote:

> I have my indexes size @ 6 GB currently with replica set @ 1.  
> I have 3 node cluster, in order to utilize the cluster , my understanding  
> that i would have set the replica to 3.  
> If i do that, would my index size grow more than 6 GB in each node?
> 
> --  
> 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/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%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/CACj2-4KPdHs%3DpUUWxdSNHn4HmH20mqofesO%3DcJpBEMSqpFtE9A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACj2-4KPdHs%3DpUUWxdSNHn4HmH20mqofesO%3DcJpBEMSqpFtE9A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![TB1](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TB1](https://discuss.elastic.co/u/TB1)\
**Post date:** [April 21, 2015, 4:57pm UTC](https://discuss.elastic.co/t/index-size-and-replica-impact/23333/4 "2015-04-21T16:57:47Z")

</div>

Hi, I did not change the default, it was set to default : 5  
And the shards were allocated as you mentioned.  
My index is search intensive than index intensive, so all nodes are  
configured as Master and Data nodes.  
David, could you point me to a resource on how you derived the shard size  
across all nodes.  
As Norberto mentioned below, i have an understanding on replica shards now.

I also did an optimize with max\_num\_segments=1, how should i choose this? i  
read through where experts advice not to tinker with optimize and number of  
segments.  
If i have a search intensive app, would it make sense to have 2 shards and  
have 1 replica for HA?  
What would be an optimum way to measure this?

On Tuesday, April 21, 2015 at 12:33:56 AM UTC-5, David Pilato wrote:

> You don't have to set replicas to 3. It depends on the number of shards  
> you have for your index.  
> If you are using default (5), then you probably have today something like:
> 
> Node 1 : 4 shards  
> Node 2 : 3 shards  
> Node 3 : 3 shards
> 
> Each shard should be around 600mb size (If using all defaults).
> 
> What are your exact index settings today?
> 
> David
> 
> Le 20 avr. 2015 à 23:54, TB \<[txin...@gmail.com](mailto:txin...@gmail.com) \<javascript:\>\> a écrit :
> 
> I have my indexes size @ 6 GB currently with replica set @ 1.  
> I have 3 node cluster, in order to utilize the cluster , my understanding  
> that i would have set the replica to 3.  
> If i do that, would my index size grow more than 6 GB in each node?
> 
> --  
> 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/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b3a6247f-a2a1-446f-8ed5-e93be4672cc3%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/bcc161df-388b-4e1e-973c-9242b5ce6f00%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bcc161df-388b-4e1e-973c-9242b5ce6f00%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, 12:18am UTC](https://discuss.elastic.co/t/index-size-and-replica-impact/23333/5 "2017-07-06T00:18:31Z")

</div>


