# How to happen when connect one node in ES Cluster (3 nodes)

**URL:** <https://discuss.elastic.co/t/how-to-happen-when-connect-one-node-in-es-cluster-3-nodes/164581>\
**Category:** Elasticsearch\
**Created:** [January 17, 2019, 7:26am UTC](https://discuss.elastic.co/t/how-to-happen-when-connect-one-node-in-es-cluster-3-nodes/164581 "2019-01-17T07:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TraiTran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/traitran/32/39869_2.png) [@TraiTran](https://discuss.elastic.co/u/TraiTran)\
**Post date:** [January 17, 2019, 7:26am UTC](https://discuss.elastic.co/t/how-to-happen-when-connect-one-node-in-es-cluster-3-nodes/164581/1 "2019-01-17T07:26:28Z")

</div>

Hi all, My ES cluster has 3 nodes include 10.40.12.51, 10.40.12.52, 10.40.12.53 by TCP transport.  
if I only connect to node 10.40.12.51 (no connect 10.40.12.52, 10.40.12.53 ) the sample code

> ```
> Settings settings = Settings.builder()
> .put("cluster.name","ES_cluster")
> .put("client.transport.ignore_cluster_name",true)
> .put("client.transport.sniff", true)
> .build();
> TransportClient client = new PreBuiltTransportClient(settings);
> client.addTransportAddr
> ess(new InetSocketTransportAddress(InetAddress.getByName(10.40.12.51),"9300"));
> }
> 
> ```

When nodes 10.40.12.51 shutdown, Do TransportClient client auto move connects to node 10.40.12.52 or 10.40.12.53 ?  
Thanks all

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 17, 2019, 9:22am UTC](https://discuss.elastic.co/t/how-to-happen-when-connect-one-node-in-es-cluster-3-nodes/164581/2 "2019-01-17T09:22:12Z")

</div>

Please could you try and format your post a bit better, using the `</>` button for code. It's quite hard to read when it looks like the post above, and this makes it much less likely to receive an answer.

I do not completely understand the question, but I think you are asking how to tell the client to connect to multiple transport addresses. If so, I think the answer is to call `addTransportAddress` multiple times.

(Also, sorry to nitpick, but the greeting "Hi guys" doesn't greet those of us that aren't guys; I suggest saying something like "Hi all" if you want, although no such greeting is really necessary here).

---

<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 14, 2019, 9:22am UTC](https://discuss.elastic.co/t/how-to-happen-when-connect-one-node-in-es-cluster-3-nodes/164581/3 "2019-02-14T09:22:13Z")

</div>

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