# searchguard index not replicated on every node due to node attribute awareness

**URL:** <https://forum.search-guard.com/t/searchguard-index-not-replicated-on-every-node-due-to-node-attribute-awareness/1281>\
**Category:** Search Guard\
**Created:** [January 14, 2019, 5:06pm UTC](https://forum.search-guard.com/t/searchguard-index-not-replicated-on-every-node-due-to-node-attribute-awareness/1281 "2019-01-14T17:06:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![S11](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@S11](https://forum.search-guard.com/u/S11)\
**Post date:** [January 14, 2019, 5:06pm UTC](https://forum.search-guard.com/t/searchguard-index-not-replicated-on-every-node-due-to-node-attribute-awareness/1281/1 "2019-01-14T17:06:52Z")

</div>

My questions deal with Searchguard and the replication factor.

I’m in a situation where I don’t manage to replicate the _searchguard_ index on every nodes due to node attributes awareness at cluster level (see [https://discuss.elastic.co/t/disable-cluster-routing-allocation-same-shard-host-true-for-a-particular-index/164172](https://discuss.elastic.co/t/disable-cluster-routing-allocation-same-shard-host-true-for-a-particular-index/164172) ).

AFAIK, it’s impossible to disable “_cluster.routing.allocation.awareness.attributes_” parameter for a specific index. (but I may be mistaken…)

So, I have to reduce the replication factor of the _searchguard_ index manually ; otherwise, the _searchguard_ index state, and so the cluster state, will stay YELLOW.

**Questions:**

- **does the non-allocation of the _searchguard_ index on each node represent a serious performance issue?**
- **how do you handle this kind of situation?**  
Any solution or suggestion will be appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![searchguard\_google\_group](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/searchguard_google_group/32/462_2.png) [@searchguard\_google\_group](https://forum.search-guard.com/u/searchguard_google_group)\
**Post date:** [January 14, 2019, 5:50pm UTC](https://forum.search-guard.com/t/searchguard-index-not-replicated-on-every-node-due-to-node-attribute-awareness/1281/2 "2019-01-14T17:50:48Z")

</div>

pls have a look here

[https://github.com/floragunncom/search-guard/issues/565](https://github.com/floragunncom/search-guard/issues/565)

> &nbsp;&nbsp;• does the non-allocation of the searchguard index on each node represent a serious performance issue?

no

> &nbsp;&nbsp;• how do you handle this kind of situation?

To solve this disable the auto-expand replicas feature of the searchguard index and set the number of replicas manually.  
You can also keep the auto-expand replicas feature and set it to "0-n" where n is the number of datanodes-2.

> **···**
>
> > Am 14.01.2019 um 18:03 schrieb Sylvain \<sguyomarch86@gmail.com\>:
> > 
> > My questions deal with Searchguard and the replication factor.
> > 
> > I'm in a situation where I don't manage to replicate the searchguard index on every nodes due to node attributes awareness at cluster level (see [Disable "cluster.routing.allocation.same\_shard.host: true" for a particular index - Elasticsearch - Discuss the Elastic Stack](https://discuss.elastic.co/t/disable-cluster-routing-allocation-same-shard-host-true-for-a-particular-index/164172) ).
> > 
> > AFAIK, it's not possible to disable "cluster.routing.allocation.awareness.attributes" parameter for a specific index. (but I may be mistaken...)
> > 
> > So, I have to reduce the replication factor of the searchguard index manually ; otherwise, the searchguard index state, and so the cluster state, willl stay YELLOW.
> > 
> > Questions:  
> > &nbsp;&nbsp;• does the non-allocation of the searchguard index on each node represent a serious performance issue?  
> > &nbsp;&nbsp;• how do you handle this kind of situation?  
> > Any solution or suggestion will be appreciated.
> > 
> > Thanks!
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.  
> > To post to this group, send email to search-guard@googlegroups.com.  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/search-guard/7a7baecc-df72-42c9-b0d0-2f9d059e9db3%40googlegroups.com\](https://groups.google.com/d/msgid/search-guard/7a7baecc-df72-42c9-b0d0-2f9d059e9db3%40googlegroups.com%5C).  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).
