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

aurora mariadb endpoint로 writer/reader 구별은 어떻게? #47

Open
boojongmin opened this issue Dec 11, 2021 · 0 comments
Open

aurora mariadb endpoint로 writer/reader 구별은 어떻게? #47

boojongmin opened this issue Dec 11, 2021 · 0 comments

Comments

@boojongmin
Copy link
Owner

aurora end point에서 writer/reader 조회시 이 부분을 참조하는 듯.

org/mariadb/jdbc/internal/failover/impl/AuroraListener.java
image

select server_id, session_id from information_schema.replica_host_status where last_update_timestamp > now() - INTERVAL 3 MINUTE

image

read, write 구별은 어떻게? 이쪽 소스에서 하는듯?

image
image

org/mariadb/jdbc/internal/failover/impl/MastersReplicasListener.java
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant