<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 18, 2014 at 3:02 AM, roger peppe <span dir="ltr"><<a href="mailto:rogpeppe@gmail.com" target="_blank">rogpeppe@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I've just landed some changes on juju tip that enable "highly available"<br>
juju environments. In a HA environment, there are several state servers -<br>
if one dies, one of the others should take over.</p>
<p dir="ltr">To make a HA environment, run the "ensure-availability" command. For<br>
example to make a HA environment with three state servers, run:</p>
<p dir="ltr">$ juju ensure-availability -n 3</p>
<p dir="ltr">This will add new servers as necessary. It will also maintain the<br>
current state server set if some servers have gone down.</p>
<p dir="ltr">A new field in the status output, state-server-member-status, present<br>
only for state server machines, indicates the current status of each<br>
state server.</p>
<p dir="ltr">When the status of a majority of state server machines is "has-vote",<br>
the environment should be resilient to any one of them going down.</p>
<p dir="ltr">If a state server machine goes down and you run ensure-availability again,<br>
it should detect that the machine has gone down and create a new machine<br>
to replace it. When the new machine is available, the original (down)<br>
machine's status will become "no-vote".</p>
<p dir="ltr">If you run ensure-availability again, it will see that the machine has<br>
no vote and is down, and will remove its state server status. At that<br>
point the machine can actually be removed (you'll need the --force flag).<br></p>
<p dir="ltr">Anyone that's interested, please try it out. It would be great if people<br>
could see whether it works for them - there are bound to be some teething<br>
problems!</p>
<p dir="ltr">There is one major caveat: upgrading an existing environment<br>
to HA is not supported currently (Andrew Wilkins has a branch in review that<br>
should fix this).</p></blockquote><div>Upgrade support landed on the weekend. If would be great it some intrepid users would test this out. (I have tested it, of course.)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Please note that the transition times when mongo is failing over can be<br>
quite long (on the order of minutes), so you'll need to be patient.</p>
<p dir="ltr">Many thanks to everyone that's pitched in to help get this done.</p>
<p dir="ltr">cheers,<br>
rog.</p>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br></div></div>