Fallback connection

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.
For more options, visit https://groups.google.com/groups/opt_out.