Zen vs ec2 discovery

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.

  1. Count the number of zones you have. Subtract 1. That's the number of replicas you want.

  2. 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.

  3. In the config set:

cluster.routing.allocation.awareness.attributes: awszone

  1. 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.