# When to use Coordinating vs Data Node

**URL:** <https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125>\
**Category:** Elasticsearch\
**Created:** [June 1, 2018, 2:53am UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125 "2018-06-01T02:53:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithag](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@keithag](https://discuss.elastic.co/u/keithag)\
**Post date:** [June 1, 2018, 2:53am UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/1 "2018-06-01T02:53:23Z")

</div>

As a matter of best practice, if I have an ideal configuration:

- Should queries be directed to coordinating nodes or data nodes?
- Should index writes/deletes/updates be directed to coordinating nodes or data nodes?

Thanks!

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [June 2, 2018, 2:49am UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/2 "2018-06-02T02:49:02Z")

</div>

> [@keithag](#):
>
> Should queries be directed to coordinating nodes or data nodes?

Coordinating nodes

> [@keithag](#):
>
> Should index writes/deletes/updates be directed to coordinating nodes or data nodes?

Data nodes

---

<div class="post-metadata">

**Author:** ![keithag](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@keithag](https://discuss.elastic.co/u/keithag)\
**Post date:** [June 12, 2018, 1:07pm UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/3 "2018-06-12T13:07:02Z")

</div>

Thank you for the clear and definitive response. That is very helpful. Can you help me further reconcile this advice with that provided by @javanna in this [answer](https://discuss.elastic.co/t/rest-client-initialization/134128/2)?

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [June 12, 2018, 1:21pm UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/4 "2018-06-12T13:21:17Z")

</div>

I wonder if for coordinating node you mean coordinating only node. Every node is by default a data node, master eligible and coordinating node (also ingest node) at the same time. It certainly makes little sense to send indexing requests to coordinating only nodes, while it does make sense to send search requests to them if you have them.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [June 12, 2018, 9:04pm UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/5 "2018-06-12T21:04:33Z")

</div>

To make it clear, I understood the original question as coordinating **only** nodes and my reply was referring to the same as well.

---

<div class="post-metadata">

**Author:** ![keithag](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@keithag](https://discuss.elastic.co/u/keithag)\
**Post date:** [June 13, 2018, 1:43am UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/6 "2018-06-13T01:43:24Z")

</div>

That is exactly what I meant: coordinating-only nodes. Sorry I wasn't more specific.

So, given a non-trivial index, I'd like to confirm:

1. If I should include coordinating-only nodes in my network and if I should route queries exclusively to those coordinating-only nodes? It sounds like the answer is yes.
2. If I should route write requests exclusively to data nodes? Again, it sounds like the answer is yes.

Putting this all together for a non-trivial application, I should optimally use two separate REST clients in my application, one REST client for queries (that uses only the coordinating-only nodes and no data nodes), and one REST client for index writes (that uses only data nodes and no coordinating-only nodes). This would be an ideal setup, right?

Thank you.

---

<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 11, 2018, 1:43am UTC](https://discuss.elastic.co/t/when-to-use-coordinating-vs-data-node/134125/7 "2018-07-11T01:43:27Z")

</div>

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