Hi Alex,
Thank you, that is exactly what I'm looking for.
I have a follow up question regarding Galera's behaviour. Will Galera
ever establish re-establish a cluster with the same UUID if all members
leave uncleanly (sequence number -1)?
I would like to start MySQL on boot and have a wsrep_url line like this:
wsrep_urls=gcomm://node1:4567,gcomm://node2:4567,gcomm://node3:4567
So if one or two members reboots, they can rejoin the remaining node(s)
and regain Sync. However, I want to protect against a disasters like
power outages where all nodes might reboot uncleanly. I don't want the
bootstrap url "gcomm://" in there as I want to be in complete control of
which cluster node becomes the new primary or seed server with
--wsrep-recover.
From my rudimentary testing by SEGFAULTing all nodes at the same time
with the above wsrep_urls line, none of the nodes will rejoin:
120928 09:51:35 mysqld_safe ERROR: none of the URLs in
'gcomm://node1:4567,gcomm://node2:4567,gcomm://node3:4567' is reachable.
Is this absolutely the case in all scenarios? Is there any situation
where an out of date cluster may be re-formed with these URLs and thus
MySQL could serve stale data or at worst data loss?
Thanks,
-Luke
On 27/09/12 20:05, Alex Yurchenko wrote:
>
> You may try starting mysqld with --wsrep-recover option. Then it will
> print UUID:seqno of the last committed transaction to the error log
> and exit. DOes not work with 5.1.x series.
>
> Regards,
> Alex
>
--
Luke Bigum
Senior Systems Engineer
Information Systems
Ph:
+44 (0) 20 3192 2520
luke....@lmax.com |
http://www.lmax.com
LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN
FX and CFDs are leveraged products that can result in losses exceeding
your deposit. They are not suitable for everyone so please ensure you
fully understand the risks involved. The information in this email is not
directed at residents of the United States of America or any other
jurisdiction where trading in CFDs and/or FX is restricted or prohibited
by local laws or regulations.
The information in this email and any attachment is confidential and is
intended only for the named recipient(s). The email may not be disclosed
or used by any person other than the addressee, nor may it be copied in
any way. If you are not the intended recipient please notify the sender
immediately and delete any copies of this message. Any unauthorised
copying, disclosure or distribution of the material in this e-mail is
strictly forbidden.
LMAX operates a multilateral trading facility. Authorised and regulated
by the Financial Services Authority (firm registration number 509778) and
is registered in England and Wales (number 06505809).
Our registered address is Yellow Building, 1A Nicholas Road, London, W11
4AN.