# Curator for a 3 nodes cluster

**URL:** <https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168>\
**Category:** Elasticsearch\
**Created:** [September 9, 2016, 1:40pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168 "2016-09-09T13:40:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![trenzalore](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@trenzalore](https://discuss.elastic.co/u/trenzalore)\
**Post date:** [September 9, 2016, 1:40pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/1 "2016-09-09T13:40:10Z")

</div>

Hi !

I would like to use curator to deleta some indices in my cluster.  
My cluster is composed of 3 data nodes and 1 client node.

My question is: in the config file, which hosts should I write ? only one is enough or all 3 nodes ?

Thanks !

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [September 9, 2016, 1:58pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/2 "2016-09-09T13:58:34Z")

</div>

Any of the nodes should work, any requests that curator makes will be distributed and redirected within the cluster to get to the right place.

---

<div class="post-metadata">

**Author:** ![trenzalore](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@trenzalore](https://discuss.elastic.co/u/trenzalore)\
**Post date:** [September 9, 2016, 2:01pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/3 "2016-09-09T14:01:40Z")

</div>

Thank you !

---

<div class="post-metadata">

**Author:** ![kirti](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kirti](https://discuss.elastic.co/u/kirti)\
**Post date:** [September 9, 2016, 7:59pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/4 "2016-09-09T19:59:03Z")

</div>

on a similar note..i am using config mgmt. to install elasticsearch. I am using curator 4.x which doesn't have --master-only option. How can I make curator run only on one node and not others?

---

<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 9, 2016, 8:11pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/5 "2016-09-09T20:11:09Z")

</div>

It does, but it goes into the configuration file: [https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html#master\_only](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html#master_only)

---

<div class="post-metadata">

**Author:** ![kirti](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kirti](https://discuss.elastic.co/u/kirti)\
**Post date:** [September 9, 2016, 9:26pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/6 "2016-09-09T21:26:37Z")

</div>

Thank you! Thank you! Thank you! I was about to write a wrapper over curator that will query elastic search and get current master ip to compare current server host ip to make determination.

---

<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 5, 2017, 10:21pm UTC](https://discuss.elastic.co/t/curator-for-a-3-nodes-cluster/60168/7 "2017-07-05T22:21:24Z")

</div>


