I am looking to set up a fail safe site. My idea is to setup three
_duplicate_ sites with three different webhosts. The DNS provider
(Zoneedit) provides a distributed failover system; the DNS host tests the
primary website, and if it fails to respond, the DNS record is altered to
point to an alternate site.
The problem that I face is keeping the databases on the three different
hosts in sync. I'm not talking about a master/slave replication; I need
the data to be consistent across all locations at all times without any
conflicts (duplicate keys, etc). Replication doesn't help me because what
could happen is the master system goes down, users are redirected to a
secondary host, the user makes a change on a secondary system, the primary
system comes back up yet it doesn't know about the changes that took place
on the secondary system.
Looking at the MySQL docs, I can setup a simple Master/Master system, but
this quickly breaks down when the structure of the tables are less than
simplistic (primary key conflicts, etc).
How do the big sites do it? How do they maintain data integrity across
multiple servers when any one of the servers at any time could take over
primary responsibilitie s?
Any help is greatly appreciated.
_duplicate_ sites with three different webhosts. The DNS provider
(Zoneedit) provides a distributed failover system; the DNS host tests the
primary website, and if it fails to respond, the DNS record is altered to
point to an alternate site.
The problem that I face is keeping the databases on the three different
hosts in sync. I'm not talking about a master/slave replication; I need
the data to be consistent across all locations at all times without any
conflicts (duplicate keys, etc). Replication doesn't help me because what
could happen is the master system goes down, users are redirected to a
secondary host, the user makes a change on a secondary system, the primary
system comes back up yet it doesn't know about the changes that took place
on the secondary system.
Looking at the MySQL docs, I can setup a simple Master/Master system, but
this quickly breaks down when the structure of the tables are less than
simplistic (primary key conflicts, etc).
How do the big sites do it? How do they maintain data integrity across
multiple servers when any one of the servers at any time could take over
primary responsibilitie s?
Any help is greatly appreciated.
Comment