-
Notifications
You must be signed in to change notification settings - Fork 206
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
Add DB activity based routing #864
Conversation
I have gotten around to testing the PR. It works as described. I have a few notes
|
Another related note but not strictly necessary as part of this PR, is about propagation of this information to other PgCat instances in a HA deployment. I don't think it is necessary but I was curious if you had thoughts on this. |
baf6ffb
to
e9c763c
Compare
Thanks for the detailed review! Changes:
HA Note: Would love to get this merged - let me know if there's anything else I should do here. |
That makes sense. I ran the tests and clippy is complaining about
|
e9c763c
to
26cff3e
Compare
Not sure why clippy didn't show me this issue 🤔 |
Hi all,
This is an attempt to add support for primary-replica routing based on recent writes on the table level.
We've implemented this as a separate process alongside PgPool-II before.
This will perform much better as it's incorporated into PgCat itself.
You can read all about the approach here: https://medium.com/tailor-tech/using-database-read-replicas-in-distributed-systems-d80eaf6bbf8a