原因1
hostnameでお互いに通信できていない。
/etc/hostsに登録する。
原因2
原因1を解決して、START GROUP_REPLICATIONを実行してもだめでした。
/var/log/mysqld.logをみると
2017-03-30T05:19:11.108563Z 0 [ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: 78394537-1501-11e7-8d4e-00155d041427:1-2 > Group transactions: 6e1ebdff-4b6b-44eb-ba75-fdcb479ba0af:1-5,
78707fef-1501-11e7-8eaa-00155d041426:1-2'
2017-03-30T05:19:11.108601Z 0 [ERROR] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'
2017-03-30T05:19:11.108606Z 0 [Note] Plugin group_replication reported: 'To force this member into the group you can use the group_replication_allow_local_disjoint_gtids_join option'
The member contains transactions not present in the group
グループには無いトランザクションを、参加メンバーが持っている事が問題らしい。
このノードは、まっさらな状態なので、本来は、起きないとおもいますが、原因1の時に、一度START GROUP_REPLICATION
を実行して失敗しているのでこの不整合が起きたと思われます。
追加するノードで、group_replication_allow_local_disjoint_gtids_join option
オプションをつけることでも解決できるようですが、
RESET MASTER;
START GROUP_REPLICATION;
を実行することでOKでした