Reassign an elected master

Is there a best practice on reassigning an elected master? For example, if I need to take down that master for maintenance.

Thanks,
-Vinh

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

vinh wrote:

Is there a best practice on reassigning an elected master? For
example, if I need to take down that master for maintenance.

You should stop it gracefully using either the API or giving the
java process a TERM.

Easiest way is to run this from the cluster:

curl -XPOST localhost:9200/_cluster/nodes/_master/_shutdown

Make sure that if you have minimum_master_nodes set there are
enough leftover that the cluster can tolerate losing one of them.

Drew

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

Thanks Drew!
-Vinh

On Jul 19, 2013, at 8:45 PM, Drew Raines aaraines@gmail.com wrote:

vinh wrote:

Is there a best practice on reassigning an elected master? For example, if I need to take down that master for maintenance.

You should stop it gracefully using either the API or giving the java process a TERM.

Elasticsearch Platform — Find real-time answers at scale | Elastic

Easiest way is to run this from the cluster:

curl -XPOST localhost:9200/_cluster/nodes/_master/_shutdown

Make sure that if you have minimum_master_nodes set there are enough leftover that the cluster can tolerate losing one of them.

Drew

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