# Multiple Cluster Connection

**URL:** <https://discuss.elastic.co/t/multiple-cluster-connection/7665>\
**Category:** Elasticsearch\
**Created:** [May 11, 2012, 7:41pm UTC](https://discuss.elastic.co/t/multiple-cluster-connection/7665 "2012-05-11T19:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henri\_K](https://avatars.discourse-cdn.com/v4/letter/h/a87d85/32.png) [@Henri\_K](https://discuss.elastic.co/u/Henri_K)\
**Post date:** [May 11, 2012, 7:41pm UTC](https://discuss.elastic.co/t/multiple-cluster-connection/7665/1 "2012-05-11T19:41:45Z")

</div>

to get said, what i want to do

i want to write a gateway or something else, which can route a call to ES  
to the configured/called ES-Cluster

- an app should connect itself to this ressource (like the  
Transportclient)
- these ressource should route request to an ES-Cluster

it will be pleased about an answer

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [May 11, 2012, 10:39pm UTC](https://discuss.elastic.co/t/multiple-cluster-connection/7665/2 "2012-05-11T22:39:48Z")

</div>

Henri K. wrote:

> i want to write a gateway or something else, which can route a call to  
> ES to the configured/called ES-Cluster
> 
> - an app should connect itself to this ressource (like the  
> Transportclient)
> 
> - these ressource should route request to an ES-Cluster

Not sure exactly what you're trying to do, but you can start up a  
transport client for each cluster and keep a map of them for dispatch  
to the desired cluster. If the node one of the transport clients is  
talking to dies, however, it won't be able to communicate with the  
cluster.

A better strategy might be to start a node client in each cluster.  
They would need to know about at least a node or two in order to join  
(unless you're able to do multicast), but they would be better at  
handling failures.

-Drew

---

<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 6, 2017, 3:29am UTC](https://discuss.elastic.co/t/multiple-cluster-connection/7665/3 "2017-07-06T03:29:10Z")

</div>


