Ensuring that replicas are spread out across multiple zones seems like
a good idea; can you elaborate a bit how you accomplish this?
It was stupidly easy with zen.
-
Count the number of zones you have. Subtract 1. That's the number of replicas you want.
-
Setup something on the host to put AWS_ZONE in an environment variable. Like something in rc.init. Our Ops guys did this when I asked, looks like its making an ec2 API call and pulling the zone out of the answer.
-
In the config set:
cluster.routing.allocation.awareness.attributes: awszone
- Set awszone as a node attribute.
That was it.
--
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.