# How to Disable allocation awareness attributes in indices level

**URL:** <https://discuss.elastic.co/t/how-to-disable-allocation-awareness-attributes-in-indices-level/204415>\
**Category:** Elasticsearch\
**Created:** [October 21, 2019, 8:35am UTC](https://discuss.elastic.co/t/how-to-disable-allocation-awareness-attributes-in-indices-level/204415 "2019-10-21T08:35:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luyuncheng](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@luyuncheng](https://discuss.elastic.co/u/luyuncheng)\
**Post date:** [October 21, 2019, 8:35am UTC](https://discuss.elastic.co/t/how-to-disable-allocation-awareness-attributes-in-indices-level/204415/1 "2019-10-21T08:35:28Z")

</div>

When [allocation-awareness](https://www.elastic.co/guide/en/elasticsearch/reference/master/allocation-awareness.html) set to zone. It make primary and replicas shard must split into different zone.  
When we need make cluster how-warm or shrink , we need move all shards which is warm indices into one zone. but we get error. As explain:

> "reason": NO(there are too many copies of the shard allocated to nodes with attribute [zone], there are [2] total configured shard copies for this shard id and [2] total attribute values, expected the allocated shard count per attribute [2] to be less than or equal to the upper bound of the required number of shards per attribute [1])

Question:  
`How to Disable allocation.awareness.attributes in indices level?`

I check the code , i can only make allocation-awareness to `EMPTY`, but it is not a good idea.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 21, 2019, 9:02am UTC](https://discuss.elastic.co/t/how-to-disable-allocation-awareness-attributes-in-indices-level/204415/2 "2019-10-21T09:02:40Z")

</div>

Use shard allocation filtering for hot an warm zone assignment, not shard allocation awareness.

---

<div class="post-metadata">

**Author:** ![luyuncheng](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@luyuncheng](https://discuss.elastic.co/u/luyuncheng)\
**Post date:** [October 21, 2019, 9:17am UTC](https://discuss.elastic.co/t/how-to-disable-allocation-awareness-attributes-in-indices-level/204415/4 "2019-10-21T09:17:20Z")

</div>

Thanks for replying.  
Shard allocation filtering can be a indices level, but shard allocation awareness is cluster level.  
But how to make some indices use allocation awareness

---

<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:** [November 18, 2019, 9:30am UTC](https://discuss.elastic.co/t/how-to-disable-allocation-awareness-attributes-in-indices-level/204415/5 "2019-11-18T09:30:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
