Full complete MySQL database replication? Ideas? What do people do?

前端 未结 3 1800
陌清茗
陌清茗 2020-12-05 19:12

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

相关标签:
3条回答
  • 2020-12-05 19:14

    GoldenGate is a very good solution, but probably as expensive as the MySQL replicator.

    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.

    Since they work by processing the journal file, they can do large-scale distributed replication without affecting performance on the source machine(s).

    0 讨论(0)
  • 2020-12-05 19:27

    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.

    Documented in the 5.0.56, 5.1.24, and 6.0.5 changelogs as follows:

       Network timeouts between the master and the slave could result
       in corruption of the relay log.
    

    http://bugs.mysql.com/bug.php?id=26489

    0 讨论(0)
  • 2020-12-05 19:32

    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.

    • pt-table-checksum
    • pt-table-sync
    0 讨论(0)
提交回复
热议问题