Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: MySQL Replication 수행 #420

Merged
merged 5 commits into from
Sep 20, 2024
Merged

feat: MySQL Replication 수행 #420

merged 5 commits into from
Sep 20, 2024

Conversation

its-sky
Copy link
Member

@its-sky its-sky commented Sep 12, 2024

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • MySQL 이중화를 위한 어플리케이션 설정 변경을 수행하였습니다.

  • Master, Slave 대신 Primary, Secondary라는 명칭을 사용하였습니다.

  • Primary 노드는 INSERT, UPDATE, DELETE를 수행합니다.

  • Secondary 노드는 오로지 쿼리 GET만을 수행합니다.

  • Primary에 새로운 레코드나 수정 사항이 생기면 Primary 노드바이너리 로그에 쓰여집니다.

  • 바이너리 로그에 쓰여지면 Primary 노드의 덤프 쓰레드가 변경 사항을 Secondary 노드의 I/O 쓰레드에 이를 전달합니다.

  • Secondary I/O 노드는 변경 사항을 받아 이를 릴레이 로그에 씁니다.

  • 릴레이 로그에 쓰여진 이후 Secondary 노드SQL 쓰레드가 변경 사항에 대해 이를 기록합니다.

📝 참고사항

image

Copy link

github-actions bot commented Sep 12, 2024

Test Results

64 tests   64 ✅  2s ⏱️
17 suites   0 💤
17 files     0 ❌

Results for commit 63357ef.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@penrose15 penrose15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@its-sky its-sky merged commit 71f741b into develop Sep 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ MySQL 이중화 분리
2 participants