MGR新加入节点的启动过程

整理了下加入新节点的启动日志,了解启动过程,方便后续报错时对比排错。

准备动作

###############################
##1.读取本机网络配置:是否启用ssl、本机ip加入白名单
[Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_recovery' executed'. Previous state master_host='', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''.
[Note] Plugin group_replication reported: 'Group communication SSL configuration: group_replication_ssl_mode: "DISABLED"'
[Note] Plugin group_replication reported: '[GCS] Added automatically IP ranges 10.91.57.189/26,127.0.0.1/8 to the whitelist'
[Note] Plugin group_replication reported: '[GCS] Translated 's3' to 127.0.0.1'
[Warning] Plugin group_replication reported: '[GCS] Automatically adding IPv4 localhost address to the whitelist. It is mandatory that it is added.'
[Note] Plugin group_replication reported: '[GCS] SSL was not enabled'
##2.初始化组通信模块:group_name、local address、seeds
[Note] Plugin group_replication reported: 'Initialized group communication with configuration: group_replication_group_name: "ba279ebc-9ac8-11ea-a379-a08cfdcc0735"; group_replication_local_address: "s3:33061"; group_replication_group_seeds: "s1:33061,s2:33061,s3:33061"; group_replication_bootstrap_group: false; group_replication_poll_spin_loops: 0; group_replication_compression_threshold: 1000000; group_replication_ip_whitelist: "AUTOMATIC"'
[Note] Plugin group_replication reported: '[GCS] Configured number of attempts to join: 0'
[Note] Plugin group_replication reported: '[GCS] Configured time between attempts to join: 5 seconds'
[Note] Plugin group_replication reported: 'Member configuration: member_id: 3; member_uuid: "14a7ed7d-7e42-11ea-add1-dc4a3e82bdf9"; single-primary mode: "true"; group_replication_auto_increment_increment: 7; '
[Note] Plugin group_replication reported: 'Detected previous RESET MASTER invocation or an issue exists in the group replication applier relay log. Purging existing applier logs.'
[Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_applier' executed'. Previous state master_host='', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''.
##3.初始化group_replication_applier的sql thread
[Note] Slave SQL thread for channel 'group_replication_applier' initialized, starting replication in log 'FIRST' at position 0, relay log './s3-relay-bin-group_replication_applier.000001' position: 4
[Note] Plugin group_replication reported: 'Group Replication applier module successfully initialized!'
[Note] Plugin group_replication reported: 'auto_increment_increment is set to 7'
[Note] Plugin group_replication reported: 'auto_increment_offset is set to 3'
##4.XCom通讯模块初始化完毕,监听group通讯端口
[Note] Plugin group_replication reported: 'XCom protocol version: 3'
[Note] Plugin group_replication reported: 'XCom initialized and ready to accept incoming connections on port 33061'

recovering状态

###############################
##1.成功加入复制组,成为备用节点
[Note] Plugin group_replication reported: 'This server is working as secondary member with primary member address s1:3306.'
##2.建立组恢复连接
[Note] Plugin group_replication reported: 'Establishing group recovery connection with a possible donor. Attempt 1/10'
##3.更新viewid
[Note] Plugin group_replication reported: 'Group membership changed to s3:3306, s2:3306, s1:3306 on view 15901818388998341:7.'
[Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_recovery' executed'. Previous state master_host='', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='s1', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''.
##4.连接某个doner
[Note] Plugin group_replication reported: 'Establishing connection to a group replication recovery donor 9a44a006-7b43-11ea-a3eb-a08cfdc63e31 at s1 port: 3306.'
[Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
##5.slave IO线程开始复制binlog
[Note] Slave I/O thread for channel 'group_replication_recovery': connected to master 'repl@s1:3306',replication started in log 'FIRST' at position 4
##6.slave SQL线程启动
[Note] Slave SQL thread for channel 'group_replication_recovery' initialized, starting replication in log 'FIRST' at position 0, relay log './s3-relay-bin-group_replication_recovery.000001' position: 4
[Note] Plugin group_replication reported: 'Terminating existing group replication donor connection and purging the corresponding logs.'
##7.slave SQL线程执行完毕relaylog后退出
[Note] Slave SQL thread for channel 'group_replication_recovery' exiting, replication stopped in log 'mysql-bin.000001' at position 1730
##8.slave 恢复完毕后,IO线程退出
[Note] Slave I/O thread killed while reading event for channel 'group_replication_recovery'
[Note] Slave I/O thread exiting for channel 'group_replication_recovery', read up to log 'mysql-bin.000001', position 1730
[Note] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_recovery' executed'. Previous state master_host='s1', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''.
#9.宣告节点online
[Note] Plugin group_replication reported: 'This server was declared online within the replication group'

你可能感兴趣的:(SQL,数据存储方案)