On Wed, Oct 10, 2012 at 11:30 PM, Ilias Bertsimas <
awar...@gmail.com> wrote:
> Hello,
>
> I am trying to figure out when a galera node is able to serve requests so
> the load balancer can direct traffic to it.
> Right now I am using a check to get the galera status number and if it is 4
> (SYNCED) I consider it able to serve requests.
This is an ok way to do it.
Percona XtraDB Cluster FAQ provides a different approach, both are good:
http://www.percona.com/doc/percona-xtradb-cluster/faq.html#q-how-can-i-check-the-galera-node-health
In theory the approach recommended by Percona is arguably better,
because then you'd be checking the thing you actually care about:
whether you can access tables in InnoDB. In theory you could have a
situation where the node claims to be synced to the cluster but is
malfunctioning in other ways, like due to an InnoDB bug or such. In
practice if that where the case, this would also affect Galera (if it
couldn't write to InnoDB tables anymore) and the cluster would quickly
become not-synced anyway.
I hope the above makes sense and I didn't confuse anyone :-)
> The issue I am having is when I run the daily backup using xtrabackup. In
> the last 5 mins of the backup when everything gets locked and the
> transaction log is streamed it seems the other nodes do not serve requests
> either although there is nothing logged about it and if they are affected by
> locked node.
This sounds like something is not quite right. Xtrabackup should not
lock for that long.
Could you provide a bit more detail around this? Like a sequence of
steps you do and what symptoms do you see. (If this might be an
xtrabackup issue, of course percona-discuss mailing list could be a
better place to ask.)
henrik
--
henri...@avoinelama.fi
+358-40-8211286 skype: henrik.ingo irc: hingo
www.openlife.cc
My LinkedIn profile:
http://www.linkedin.com/profile/view?id=9522559