???????
????MySQL HA??????????????????????????г????Щ???о??????????Щ???????????go-mysql??????
????????
?????????????????????о???????????????????????????MySQL HA????????????????????????????????????????HA????????facebook??????????????????????facebook????????????????????????????????о??????????????
?????μ?HA???????????GTID?????????????????????????replication???????????????????????GTID???汾MySQL???????????????????????MySQL?????????5.6????????GTID???
?????????fb????????mysqlbinlog???????semi-sync replicationЭ?飬?????go-mysql??replication?????semi-sync replicationЭ?飬???????????MySQL??binlog??????????????檔??????????fb?????????????
????????binlog????????????slave?????????????binlog????event????????????????????slaves?????????????????????????????semi-sync replication????????????MHA????????????????й??????????
??????????????MHA????????????????????????????????????????perl????????????????á?MHA???????????????????????????????飬??????????д????????????????????????zookeeper?????????дagent???