# Cluster Configuration

**URL:** <https://discuss.elastic.co/t/cluster-configuration/20169>\
**Category:** Elasticsearch\
**Created:** [October 9, 2014, 7:25pm UTC](https://discuss.elastic.co/t/cluster-configuration/20169 "2014-10-09T19:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav1906](https://avatars.discourse-cdn.com/v4/letter/g/ea5d25/32.png) [@gaurav1906](https://discuss.elastic.co/u/gaurav1906)\
**Post date:** [October 9, 2014, 7:25pm UTC](https://discuss.elastic.co/t/cluster-configuration/20169/1 "2014-10-09T19:25:27Z")

</div>

Hi,

How can i achieve following.

I have 5 nodes with 30GB RAM in it.

I want to create Index with 5 shards and 1 replica.

I want all primary shards to be in memory and replica on disk.

Also, i want to disable search against replica. So, when user search query goes against shards in memory. Only in disaster situation queries goes to replica.

Thanks in Advance!!

---

<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:** [October 11, 2014, 9:05am UTC](https://discuss.elastic.co/t/cluster-configuration/20169/2 "2014-10-11T09:05:37Z")

</div>

You don't store data in memory in ES, it is only pulled into memory when  
querying.  
For your queries, check out

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Not sure what you are thinking about DR here, but if the primary shard  
disappears (ie the node it runs on dies), then the replica is promoted to  
primary, which makes your point moot.

Regards,  
Mark Walkom

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

On 10 October 2014 06:25, gaurav1906 [gaurav1906@gmail.com](mailto:gaurav1906@gmail.com) wrote:

> Hi,
> 
> How can i achieve following.
> 
> I have 5 nodes with 30GB RAM in it.
> 
> I want to create Index with 5 shards and 1 replica.
> 
> I want all primary shards to be in memory and replica on disk.
> 
> Also, i want to disable search against replica. So, when user search query  
> goes against shards in memory. Only in disaster situation queries goes to  
> replica.
> 
> Thanks in Advance!!
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Cluster-Configuration-tp4064689.html](http://elasticsearch-users.115913.n3.nabble.com/Cluster-Configuration-tp4064689.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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/1412882727747-4064689.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1412882727747-4064689.post%40n3.nabble.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/CAEM624bEupKL0n0eUt\_SiO-qSSajdeZ67n%2B%3DG0VwRA\_EXjg%3D4A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624bEupKL0n0eUt_SiO-qSSajdeZ67n%2B%3DG0VwRA_EXjg%3D4A%40mail.gmail.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:56am UTC](https://discuss.elastic.co/t/cluster-configuration/20169/3 "2017-07-06T00:56:51Z")

</div>


