# EmptyAllocatorSet when using allocator\_filter

**URL:** <https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [October 26, 2017, 7:01am UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347 "2017-10-26T07:01:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![boebu](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@boebu](https://discuss.elastic.co/u/boebu)\
**Post date:** [October 26, 2017, 7:01am UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347/1 "2017-10-26T07:01:46Z")

</div>

Hi

I'm trying to the influence the AZ placement of some elasticsearch clusters via the allocator\_filter using the following config:

```
  "cluster_name": "mycluster_z2",
  "plan": {
    "zone_count": 1,
    "cluster_topology": [{
      "memory_per_node": 1024,
      "node_count_per_zone": 1,
      "allocator_filter": {
        "bool": {
          "must": [{
           "term": {
            "allocator_zone": "z2"
           }
          }],
          "must_not": []
        }
      }
    }],
    "elasticsearch": {
        "version": "5.6.3"
    }
  }
}

```

Which results into an EmptyAllocatorSet Error during provisoning.  
If I use the filter above and directly query the admin-console it seems to return the correct results.

How is allocator\_filter supposed to work? can someone provide a working example?

Thx for your help  
Best

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [October 26, 2017, 7:21pm UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347/2 "2017-10-26T19:21:53Z")

</div>

Hi @boebu

We ended up abandoning support for allocator filters in the 1.0 ECE releases because we were not happy with its usability or is internal implementation

Early in 2018 we'll be releasing its replacement with fully documented UI and API support

(Quickly looking at the code, it looks like currently you can search on an internal field, the only 2 things that might work would be `id` and `zone`, but as I say, I recommend leaving it until (likely) 1.2)

Alex

---

<div class="post-metadata">

**Author:** ![boebu](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@boebu](https://discuss.elastic.co/u/boebu)\
**Post date:** [October 26, 2017, 9:14pm UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347/3 "2017-10-26T21:14:03Z")

</div>

HI @Alex_Piggott

Thanks for your answer. With "zone" it seems to work. Maybe it would be good to mark this setting as deprecated in the docs?

I do have another use case where I'd like to define where the tiebraker node is running (i.e. different HW Stack) which seems not to work with a simple allocator filter / multiple node configurations with the current version.  
Is this also something you'll enable with 1.2 as well?

Looking forward to the 1.2 release!

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [October 26, 2017, 9:19pm UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347/4 "2017-10-26T21:19:48Z")

</div>

@boebu

Agreed, it should be deprecrated! We're looking into that since your post...

Your other use case is definitely one that is addressed by 1.2 - we are also hoping to sneak in better support for deployments with 2 physical zones into 1.1 since it's a common ask (we've implemented ugly workarounds for a few customers who couldn't wait)

Alex

---

<div class="post-metadata">

**Author:** ![boebu](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@boebu](https://discuss.elastic.co/u/boebu)\
**Post date:** [October 27, 2017, 7:01am UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347/5 "2017-10-27T07:01:03Z")

</div>

That sounds promising!  
Hope 1.1 will be a pre christmas present? 🙂

Thx @Alex_Piggott for your help

---

<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 10, 2017, 7:01am UTC](https://discuss.elastic.co/t/emptyallocatorset-when-using-allocator-filter/105347/6 "2017-11-10T07:01:36Z")

</div>

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