On Mon, Mar 18, 2013 at 6:38 PM, Jay Pipes <
jayp...@gmail.com> wrote:
> Solution B:
>
> Spin up more Galera cluster nodes in datacenter B. Can I use rsync_wlan send
> method if I use rsync send method for all other cluster nodes in datacenter
> A? I worry that the latency of writing from datacenter A's cluster nodes to
> datacenter B's cluster nodes will be too high for acceptable performance..
>
> I am leaning towards solution A because I think it will be the best
> performing but would like to hear from the group about their suggestions.
>
Hi Jay
I realize this goes against everything you ever learned about
syncrhonous replication. Even for myself this was initially difficult
to accept. But really, many people run Galera Clusters over 2 or 3
continents. Your sub 100 ms latency isn't considered bad in any way.
Yes, try to make a client-server connection over it and then it's bad.
But Galera replication will actually be quite a good option here.
http://www.mysqlperformanceblog.com/2012/01/11/making-the-impossible-3-nodes-intercontinental-replication/
http://www.codership.com/content/synchronous-replication-loves-you-again
Vadim only measured latencies, but Alex' latter post also reports
sysbench tps results. Apologies on his behalf for the messy graphs,
but if you stare at them for 15 minutes or so, you will see that
Galera handles this trans-atlantic latency pretty much without any
degradation at all. Of course, with only a few client threads the
latency is there, but with enough concurrency the throughput is the
same both for LAN and WAN clusters. (And yes, this is very
surprising...)
Of course, there will be applications for which the commit latency is
a show stopper (those doing 15 autocommit queries in a row are a good
candidate...) but for many apps this is not a problem.
Since using only one kind of replication is a much simpler design, and
managing Galera in my opinion is simpler than MySQL replication, I
would in your case seriously consider alternative B.
That said, there's nothing wrong in setting up 2 separate Galera
clusters and then connecting them with MySQL replication. (I've done
that too, and recommend it for really crappy WAN links, but my
definition of really crappy is much crappier than yours.)
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