Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🌱 관련 이슈
📌 작업 내용 및 특이사항
MySQL 이중화
를 위한 어플리케이션 설정 변경을 수행하였습니다.Master, Slave 대신
Primary, Secondary
라는 명칭을 사용하였습니다.Primary
노드는INSERT, UPDATE, DELETE
를 수행합니다.Secondary
노드는 오로지 쿼리GET
만을 수행합니다.Primary에 새로운 레코드나 수정 사항이 생기면
Primary 노드
의바이너리 로그
에 쓰여집니다.바이너리 로그에 쓰여지면 Primary 노드의 덤프 쓰레드가 변경 사항을
Secondary 노드의 I/O 쓰레드
에 이를 전달합니다.Secondary I/O 노드는 변경 사항을 받아 이를
릴레이 로그
에 씁니다.릴레이 로그에 쓰여진 이후
Secondary 노드
에SQL 쓰레드
가 변경 사항에 대해 이를기록
합니다.📝 참고사항