# Curator can't shrink on single node due to cluster health yellow

**URL:** <https://discuss.elastic.co/t/curator-cant-shrink-on-single-node-due-to-cluster-health-yellow/147358>\
**Category:** Elasticsearch\
**Created:** [September 5, 2018, 9:48am UTC](https://discuss.elastic.co/t/curator-cant-shrink-on-single-node-due-to-cluster-health-yellow/147358 "2018-09-05T09:48:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmarziou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gmarziou/32/12219_2.png) [@gmarziou](https://discuss.elastic.co/u/gmarziou)\
**Post date:** [September 5, 2018, 9:48am UTC](https://discuss.elastic.co/t/curator-cant-shrink-on-single-node-due-to-cluster-health-yellow/147358/1 "2018-09-05T09:48:59Z")

</div>

Hello,

I try to shrink an index with Curator on a single node cluster but it fails due to cluster health being yellow which is expected when you have only one node.

> Exception: Unable to proceed with shrink action. Cluster health is not "green"

Should I configure `continue_if_exception: True` or is there a better way ?

Below is my action.

```
---
actions:
  1:
    action: shrink
    description: >-
      Shrink elastalert_status
    options:
      ignore_empty_list: True
      shrink_node: DETERMINISTIC
      node_filters:
        permit_masters: True
      post_allocation:
        allocation_type: include
        key: node_tag
        value: cold
    filters:
    - filtertype: pattern
      kind: prefix
      value: elastalert_status

```

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [September 5, 2018, 10:40am UTC](https://discuss.elastic.co/t/curator-cant-shrink-on-single-node-due-to-cluster-health-yellow/147358/2 "2018-09-05T10:40:36Z")

</div>

Curator will not ever attempt a shrink on a cluster that has a yellow state. In the future, it may check to see if only the _index_ is green, and proceed with a shrink, but for now, it will not.

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gmarziou/32/12219_2.png) [@gmarziou](https://discuss.elastic.co/u/gmarziou)\
**Post date:** [September 5, 2018, 11:50am UTC](https://discuss.elastic.co/t/curator-cant-shrink-on-single-node-due-to-cluster-health-yellow/147358/3 "2018-09-05T11:50:39Z")

</div>

Thanks.  
It's OK because I have an alternative here by deleting the index and let elastalert re-create it.

---

<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:** [October 3, 2018, 11:50am UTC](https://discuss.elastic.co/t/curator-cant-shrink-on-single-node-due-to-cluster-health-yellow/147358/4 "2018-10-03T11:50:49Z")

</div>

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