看node1 容器内有个消息
It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates.
To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1
我进入容器volume文件中找到grastate.dat 设置了safe_to_bootstrap 为1,启动时正常了。
如果集群中node1为第一个的PXC节点或者说主节点
在挂掉后,haproxy可能在node1挂掉后,将新的数据库请求发给node2 node3。
PS:node1这个主节点是不是 不应该加入到负载均衡haproxy的策略中?
只是作为一个列外节点,单独有集群的同步功能去保证它?