Loading...
MySQL 9.5 Reference Manual 9.5의 10.14.5 Replication I/O (Receiver) Thread States의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
다음 목록은 replica 서버에서 replication I/O (receiver) thread에 대해
State 열에서 볼 수 있는 가장 일반적인 state를 보여줍니다.
이 state는 SHOW REPLICA STATUS가 표시하는
Replica_IO_State 열에도 나타나므로, 해당 statement를 사용하여
무슨 일이 일어나고 있는지 잘 파악할 수 있습니다.
terminology_use_previous 시스템
변수를 세션 스코프로 설정하면 개별 기능을 지원할 수 있고,
글로벌 스코프로 설정하면 모든 새 세션에 대한 기본값이 됩니다.
글로벌 스코프를 사용할 경우, slow query 로그에는 기존 이름 버전이
포함됩니다.
Checking master versionChecking source version
source에 대한 연결이 설정된 후 매우 짧은 시간 동안 발생하는 state입니다.
Connecting to masterConnecting to source
thread가 source에 연결을 시도하고 있습니다.
Queueing master event to the relay logQueueing source event to the relay log
thread가 이벤트를 읽었고, SQL thread가 처리할 수 있도록 relay log에 복사하고 있습니다.
Reconnecting after a failed binlog dump requestthread가 source에 다시 연결을 시도하고 있습니다.
Reconnecting after a failed master event readReconnecting after a failed source event read
thread가 source에 다시 연결을 시도하고 있습니다.
연결이 다시 설정되면 state는
Waiting for master to send event가 됩니다.
Registering slave on masterRegistering replica on source
source에 대한 연결이 설정된 직후 매우 짧은 시간 동안 발생하는 state입니다.
Requesting binlog dumpsource에 대한 연결이 설정된 후 매우 짧은 시간 동안 발생하는 state입니다. thread는 요청된 binary log 파일 이름과 위치에서 시작하여, 해당 binary log의 내용을 요청하는 요청을 source로 보냅니다.
Waiting for its turn to commit이 state는
replica_preserve_commit_order
가 활성화된 경우, replica thread가 더 오래된 worker thread가
커밋하기를 기다리고 있을 때 발생합니다.
Waiting for master to send eventWaiting for source to send event
thread가 source에 연결되어 있으며 binary log 이벤트가 도착하기를
기다리고 있습니다. source가 idle 상태라면 이 상태는 오랫동안
지속될 수 있습니다.
대기가
[replica_net_timeout](https://dev.mysql.com/doc/refman/9.5/en/replication-options-replica.html#sysvar_repl ica_net_timeout)
초 동안 계속되면 timeout이 발생합니다.
그 시점에 thread는 연결이
끊어진 것으로 간주하고 다시 연결을 시도합니다.
Waiting for master updateWaiting for source update
Connecting to master 또는 Connecting to source 이전의 초기
state입니다.
Waiting for slave mutex on exitWaiting for replica mutex on exit
thread가 중지되는 동안 잠시 발생하는 state입니다.
Waiting for the slave SQL thread to free enough relay log spaceWaiting for the replica SQL thread to free enough relay log space
0이 아닌
relay_log_space_limit
값을 사용 중이며, relay log의 크기가 커져서 이 값보다 combined size가
커졌습니다. I/O (receiver) thread는 SQL (applier) thread가 relay log
내용을 처리하여 일부 relay log 파일을 삭제할 수 있을 정도로
충분한 공간을 확보할 때까지 기다리고 있습니다.
Waiting to reconnect after a failed binlog dump requestbinary log dump 요청이 실패(연결 끊김 때문에)한 경우, thread는
sleep 상태로 이 state에 들어가며, 그 후 주기적으로 다시 연결을
시도합니다. 재시도 간 interval은
CHANGE REPLICATION SOURCE TO
를 사용하여 지정할 수 있습니다.
Waiting to reconnect after a failed master event readWaiting to reconnect after a failed source event read
읽기 중(연결 끊김 때문에) 오류가 발생했습니다. thread는 다시
연결을 시도하기 전에
CHANGE REPLICATION SOURCE TO
statement로 설정된 초 수만큼 sleep 상태에 있습니다.
10.14.4 Replication Source Thread States
10.14.6 Replication SQL Thread States