# Fallback connection

**URL:** <https://discuss.elastic.co/t/fallback-connection/12853>\
**Category:** Elasticsearch\
**Created:** [July 18, 2013, 11:32pm UTC](https://discuss.elastic.co/t/fallback-connection/12853 "2013-07-18T23:32:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [July 18, 2013, 11:32pm UTC](https://discuss.elastic.co/t/fallback-connection/12853/1 "2013-07-18T23:32:45Z")

</div>

Hello,  
I have 2 ES servers one is replica of another. They are in different DC. I need to configure my applications to connect to ES which is in the same DC, and connect to another only if the local fails.  
is it possible? I couldn't find any info about this.

thank you,  
Eugene

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:25am UTC](https://discuss.elastic.co/t/fallback-connection/12853/2 "2017-07-06T02:25:35Z")

</div>

Closed on July 6, 2017, 2:25am UTC


