-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Primary/Secondary choosing querybuilder #33542
Primary/Secondary choosing querybuilder #33542
Comments
We could use something like this https://github.com/nalgoo/cluster-connection to determine to which nodes to send the DB query |
https://github.com/doctrine/dbal/blob/45941c67dd0505dab2fb970786d93055b7cbd2b6/src/Connections/PrimaryReadReplicaConnection.php could be useful
|
|
I think this would be very useful to get high availability with the use of proxysql or similar software proxies in between nextcloud and the database cluser. If I can help out in any way, I will. I have many Galera clusters where Nextcloud is running that I can test stuff out on. |
Thanks for the offer @mickenordin A first draft to make use of replica connections is in #41998, though I have not dived into how we could perform the primary enforcement on a per table level yet. Currently doctrine DBAL handles this on a per connection level. |
28 port for pre-production testing: #43261 |
In case of write operations mark table as dirty and if read request comes in and table is in a "primary-enforced reads after writes list", so primary-forced reads only happen if write happen and table is configured in the static list where this behavior needs to happen.
The text was updated successfully, but these errors were encountered: