# Using CoOrdinated nodes in ES cluster

**URL:** <https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608>\
**Category:** Elasticsearch\
**Created:** [January 27, 2022, 4:33pm UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608 "2022-01-27T16:33:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [January 27, 2022, 4:33pm UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608/1 "2022-01-27T16:33:00Z")

</div>

I have 6 nodes cluster where all nodes marked with "mdi". Now I added 3 more Co-Ordinated nodes and configured with master=false, data=false, ingest=false.  
Now those nodes shows role as "-". As per doc this indicates that they are coordinated nodes.  
Now I tried my runs and I hardly see these co-ordinated nodes usage.  
I was expecting all requests will route via coordinated nodes. Atleast search requests.  
Do I need to do any special changes to rest client to use these coordinated nodes.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 27, 2022, 5:39pm UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608/2 "2022-01-27T17:39:07Z")

</div>

How are you testing?

You already changed all your clients endpoints to talk only with the coordinate nodes?

---

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [January 28, 2022, 7:12am UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608/3 "2022-01-28T07:12:11Z")

</div>

I am using org.Elasticsearch.client and create a RestClient. Some thing like below.  
For now Iam using node selector to skip dedicated masters to hit.  
What should I change to hit coordinated nodes only.

```auto
			RestClientBuilder builder = RestClient.builder(hostArray)
					.setRequestConfigCallback(...)
					.setHttpClientConfigCallback(....)
					.setNodeSelector(NodeSelector.SKIP_DEDICATED_MASTERS);

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 28, 2022, 11:27am UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608/4 "2022-01-28T11:27:19Z")

</div>

I do not use that client, so I cannot help with the exact configuration, but if you want to use coordinating nodes you need to configure your client to connect only to the coordinate nodes.

---

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [January 28, 2022, 11:42am UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608/5 "2022-01-28T11:42:12Z")

</div>

ok thanks. Let me try finding any document for the same. Currently, NodeSelector supports only ALL or SKIP\_DEDICATED\_MASTERS. No other option to select co-ordinated nodes only.

---

<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:** [February 25, 2022, 11:42am UTC](https://discuss.elastic.co/t/using-coordinated-nodes-in-es-cluster/295608/6 "2022-02-25T11:42:22Z")

</div>

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