{"id":918,"date":"2020-12-17T14:55:29","date_gmt":"2020-12-17T06:55:29","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=918"},"modified":"2020-12-17T15:00:43","modified_gmt":"2020-12-17T07:00:43","slug":"keepalived-mysql-mgr-group-replication-mode-automatic","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2020\/12\/keepalived-mysql-mgr-group-replication-mode-automatic\/","title":{"rendered":"Keepalived + Mysql MGR \u7ec4\u590d\u5236\u6a21\u5f0f\u6545\u969c\u81ea\u52a8\u5207\u6362\uff08\u4e8c\uff09"},"content":{"rendered":"

MGR\u4e3b\u8282\u70b9\u6545\u969c\u81ea\u52a8\u5207\u6362<\/strong><\/p>\n

MGR\u5355\u4e3b\u6a21\u5f0f\u4e0b\uff0c\u5f53\u4e3b\u8282\u70b9\u6545\u969c\uff0cMGR\u5185\u90e8\u5c06\u4f1a\u53d1\u8d77\u4e00\u8f6e\u65b0\u7684\u9009\u4e3e\uff0c\u9009\u51fa\u65b0\u7684\u4e3b\uff0c\u8fd9\u662f\u7531MGR\u5185\u90e8\u51b3\u5b9a\u5e76\u6267\u884c\u7684\u3002\u4f46\u662f\u5f53\u5e94\u7528\u7684\u8fde\u63a5\u9047\u5230\u4e3b\u8282\u70b9\u6302\u6389\u7684\u60c5\u51b5\u4e0b\uff0cIP\u662f\u4e0d\u4f1a\u81ea\u52a8\u53d1\u751f\u5207\u6362\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0cMGR\u5185\u90e8\u6ca1\u6709\u63d0\u4f9b\u4e00\u79cd\u673a\u5236\uff0c\u6765\u5b9e\u73b0\u4e3b\u8282\u70b9\u6545\u969c\u5207\u6362\u5bf9\u5e94\u7528\u65e0\u611f\u77e5\u3002<\/p>\n

\u89e3\u51b3\u529e\u6cd5\uff0c\u7528Keepalived \u5b9e\u73b0MGR\u8282\u70b9\u6545\u969c\u81ea\u52a8\u5207\u6362\u3002\u5e94\u7528\u7a0b\u5e8f\u8fde\u63a5\u6570\u636e\u5e93\u4f7f\u7528VIP\u5373\u53ef\uff0c\u540e\u9762master\u662f\u54ea\u4e00\u53f0\u6570\u636e\u5e93\u662f\u901a\u8fc7keepalived\u670d\u52a1\u7aef\u5b9e\u73b0\u7684\uff1bkeepalived\u901a\u8fc7\u68c0\u6d4b\u811a\u672c\u786e\u5b9a\u54ea\u4e00\u53f0\u662fmaster\u5c31\u628aVIP\u98d8\u5728\u54ea\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n

\"\u5fae\u4fe1\u56fe\u7247_20201216155425\"<\/p>\n

1\u3001\u5b89\u88c5Keepalived<\/h3>\n
yum install -y keepalived \n<\/code><\/pre>\n