Floating IP won't work in such a setup.
You'd have to use DNS (MMM2 supports that) or hosts based (OQ has been
working on that, we'll release it back).
However, you may just want to use a tool like HAproxy to deal with this.
OQ has some dual masters in different data centres, and uses HAproxy
for that.
Cheers,
Arjen.
--
Arjen Lentz, Exec.Director @ Open Query (http://openquery.com)
Exceptional Services for MySQL at a fixed budget.
Follow our blog at http://openquery.com/blog/
OurDelta: packages for MySQL and MariaDB @ http://ourdelta.org
Like the others have said, it doesn't seem like something MMM would do
"out of the box". I'm just brainstorming here, but maybe using
something like MySQL proxy locally at both sites, having it do some
host checking and if the master is available, read from it, otherwise,
read from next in line. Another possible solution (and something I've
never really used) is that Continuent product. They have bunch of WAN
bullet points in their marketing material, it might not hurt to look.
One thing, and I'm sure you've probably already thought about this, if
the connection is broken and you have to suddenly begin using two
master servers in different locations, what happens when the
connection returns and you now have two sets of "master" data? I'm
seriously interested in what you might do here.
--
Justin Brehm
Following up to Justin's comment on "two sets of master
data"......yes, that is a very valid point. In my case, the systems
"should" have mutually exclusive data sets during an outage, meaning
that a re-sync "should" just work.....
> Following up to Justin's comment on "two sets of master
> data"......yes, that is a very valid point. In my case, the systems
> "should" have mutually exclusive data sets during an outage, meaning
> that a re-sync "should" just work.....
I can't remember exactly when, but I think I've seen that work OK. I
know I have seen it fail a lot, and I can definitely remember those.
It would be worth testing.
Baron