2020年我们要全面推进MGR在业务系统的使用,目前存在一个很重要的问题,就是在MGR的主节点出现异常的情况下,怎么解决客户端重定向的问题
解决的方案:
1、使用官方的connector
2、使用负载均衡设备,比如F5
3、使用router,比如MySQL的Router 8.0
4、中间件,比如某些厂商的产品,或者proxySQL。
以上方案我们都在测试当中~
It is important to understand that although the database service is available, in the event of a server crash, those clients connected to it must be redirected, or failed over, to a different server. This is not something Group Replication attempts to resolve. A connector, load balancer, router, or some form of middleware are more suitable to deal with this issue. For example see MySQL Router 8.0.