# How to connect to Coordinating nodes from High level rest client

**URL:** <https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634>\
**Category:** Elasticsearch\
**Created:** [February 15, 2019, 6:47pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634 "2019-02-15T18:47:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sashi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sashi/32/54966_2.png) [@Sashi](https://discuss.elastic.co/u/Sashi)\
**Post date:** [February 15, 2019, 6:47pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634/1 "2019-02-15T18:47:07Z")

</div>

Hello,

I have a cluster with 9 nodes (3 master, 3 data and 3 client) ES version 6.4  
I want my application to send all writes to data nodes and search to client nodes in a round robin fashion. We are using High level rest client. How do i achieve this.

Some documentation or suggestions are appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 15, 2019, 7:08pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634/2 "2019-02-15T19:08:13Z")

</div>

You will most likely need 2 client instances.

But why not sending all the traffic to the client nodes?

---

<div class="post-metadata">

**Author:** ![Sashi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sashi/32/54966_2.png) [@Sashi](https://discuss.elastic.co/u/Sashi)\
**Post date:** [February 20, 2019, 7:12pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634/3 "2019-02-20T19:12:34Z")

</div>

Thank you for responding.

Is it a good idea to send all read/write to client nodes? Will it not overburden client nodes?  
all i want is to make my search fast.

Our current load is indexing rate 5000/s and search is 500/s

Client node is configured at Ram: 64gb with 32gb of heap with 20core CPU

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 20, 2019, 8:14pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634/4 "2019-02-20T20:14:07Z")

</div>

If it becomes a pain you can always send the search requests to dedicated client nodes. In which case you'll need 2 Java Client instances, one for search, another for indexing.

Before over engineering anything, I'd make sure it's actually a problem today.

---

<div class="post-metadata">

**Author:** ![Sashi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sashi/32/54966_2.png) [@Sashi](https://discuss.elastic.co/u/Sashi)\
**Post date:** [February 21, 2019, 8:06pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634/5 "2019-02-21T20:06:34Z")

</div>

Thanks

Going to try with one java client on 2 coordinating nodes for both read and writes.

---

<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:** [March 21, 2019, 8:06pm UTC](https://discuss.elastic.co/t/how-to-connect-to-coordinating-nodes-from-high-level-rest-client/168634/6 "2019-03-21T20:06:34Z")

</div>

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