Configuring multi node ES setup in aws to withstand AZ going down

hi,
how does ES ensure fail over scenario to work when the entire AZ goes down
in AWS? Or is there something that I need to do to make it work?

lets say i have a 4 node cluster with number of replicas set to 1 and i
have 2 nodes in one AZ and remaining 2 in another AZ. what if 1st AZ goes
down? how do we ensure full availability of all shards in such a case?
because technically it is possible that there might be bunch of shards who
primary and replica copy are both in the 1st AZ. how does ES recover then?

any best practices here?

also, i didn't mention that i have a 5th node which is a no-data ELB in
AZ1, lets say. what is the recommendation here to also maintain a fallback
ELB in AZ2? how can i configure my java and ruby clients with the 2 ELBs?

thanks

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHau4ysZ%2Bh%2B7CXYW5i0V5e0jbHyG1QCGG55P1ueJ352FztFmhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.