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='<NULL>', 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='<NULL>', 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'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章