<p>Currently I have two Linux servers running MySQL, one sitting on a rack right next to me under a 10 Mbit/s upload pipe (main server) and another some couple of miles away on a 3 Mbit/s upload pipe (mirror).</p>

<p>I want to be able to replicate data on both servers continuously, but have run into several roadblocks. One of them being, under MySQL master/slave configurations, every now and then, some statements drop (!), meaning; some people logging on to the mirror URL don't see data that I know is on the main server and vice versa. Let's say this happens on a meaningful block of data once every month, so I can live with it and assume it's a "lost packet" issue (i.e., god knows, but we'll compensate).</p>

<p>The other most important (and annoying) recurring issue is that, when for some reason we do a major upload or update (or reboot) on one end and have to <a href="http://en.wiktionary.org/wiki/sever" rel="noreferrer">sever</a> the link, then LOAD DATA FROM MASTER doesn't work and I have to manually dump on one end and upload on the other, quite a task nowadays moving some .5 TB worth of data.</p>

<p>Is there software for this? I know MySQL (the "corporation") offers this as a VERY expensive service (full database replication). What do people out there do? The way it's structured, we run an automatic failover where if one server is not up, then the main URL just resolves to the other server. </p>

[{'answer_id': 3804, 'author': 'Mark Harrison', 'author_id': 116, 'author_profile': 'https://Stackoverflow.com/users/116', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.goldengate.com/" rel="nofollow noreferrer">GoldenGate</a> is a very good solution, but probably as expensive as the MySQL replicator.</p>\n\n<p>It basically tails the journal, and applies changes based on what\'s committed.  They support bi-directional replication (a hard task), and replication between heterogenous systems.</p>\n\n<p>Since they work by processing the journal file, they can do large-scale distributed replication without affecting performance on the source machine(s).</p>\n'}, {'answer_id': 2303995, 'author': 'serbaut', 'author_id': 84760, 'author_profile': 'https://Stackoverflow.com/users/84760', 'pm_score': 0, 'selected': False, 'text': '<p>I have never seen dropped statements but there is a bug where network problems could cause relay log corruption. Make sure you dont run mysql without this fix.</p>\n\n<blockquote>\n  <p>Documented in the 5.0.56, 5.1.24, and 6.0.5 changelogs as follows:</p>\n\n<pre><code>   Network timeouts between the master and the slave could result\n   in corruption of the relay log.\n</code></pre>\n</blockquote>\n\n<p><a href="http://bugs.mysql.com/bug.php?id=26489" rel="nofollow noreferrer">http://bugs.mysql.com/bug.php?id=26489</a></p>\n'}, {'answer_id': 7493234, 'author': 'Bill Karwin', 'author_id': 20860, 'author_profile': 'https://Stackoverflow.com/users/20860', 'pm_score': 2, 'selected': False, 'text': '<p>We at Percona offer free tools to detect discrepancies between master and server, and to get them back in sync by re-applying minimal changes.</p>\n\n<ul>\n<li><a href="http://www.percona.com/doc/percona-toolkit/pt-table-checksum.html" rel="nofollow">pt-table-checksum</a></li>\n<li><a href="http://www.percona.com/doc/percona-toolkit/pt-table-sync.html" rel="nofollow">pt-table-sync</a></li>\n</ul>\n'}]
['https://Stackoverflow.com/questions/3798', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/547/']