# Rack configuration and our strange ES configuration

**URL:** <https://discuss.elastic.co/t/rack-configuration-and-our-strange-es-configuration/11345>\
**Category:** Elasticsearch\
**Created:** [March 27, 2013, 10:43pm UTC](https://discuss.elastic.co/t/rack-configuration-and-our-strange-es-configuration/11345 "2013-03-27T22:43:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garth](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@Garth](https://discuss.elastic.co/u/Garth)\
**Post date:** [March 27, 2013, 10:43pm UTC](https://discuss.elastic.co/t/rack-configuration-and-our-strange-es-configuration/11345/1 "2013-03-27T22:43:36Z")

</div>

We are attempting to test out rack property in our future architecture  
layout. To verify rack configuration though, I stood up two ES 0.20.4 VM’s  
and they are configured as Master/Data nodes each.

Node 1:  
node.rack\_id: r1  
cluster.routing.allocation.awareness.force.rack\_id.values: r1,r2  
cluster.routing.allocation.awareness.attributes: rack\_id

Node 2:  
node.rack\_id: r2  
cluster.routing.allocation.awareness.force.rack\_id.values: r1,r2  
cluster.routing.allocation.awareness.attributes: rack\_id

Everything worked as expected. The primary shards where allocated on one  
node while the replicas where on the other node. No issues.  
Our configuration that we are investigating is spliting out ES into  
separate servers as follows:

Master Eligiable Only ( MEO-1 )  
Master Eligiable Only ( MEO-2 )  
Client Only ( CO-1 )  
Client Only ( CO-2 )  
Data Only ( DO-1 )  
Data Only ( DO-2 )  
Data Only ( DO-3 )  
Data Only ( DO-4 )

I picked DO-1 & DO-3 to be r1 and DO-2 & DO-4 to be r2. Configured the  
MEO-1&2 to have all the properties defined above. No matter how I configure  
any nodes, ES continues to rebalance the shards across all the DO’s. It  
does not put the primary shards in DO-1/3 and replicas in DO-2/4 or vise  
versa.

Any thoughts?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:44am UTC](https://discuss.elastic.co/t/rack-configuration-and-our-strange-es-configuration/11345/2 "2017-07-06T02:44:05Z")

</div>


