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
Consistency issues when using REPLICA_DATABASE_URLS #3878
Comments
Note that we also saw a couple of (likely) related sentry errors when we had the https://flagsmith.sentry.io/issues/5294385824/ |
Over a video chat with @matthewelwell, @novakzaballa, and @khvn26 I briefly discussed one potential way of solving our replica woes. Instead of routing every model through |
Thinking about it more, we should be able to create a function or a property that can follow the some_fancy_queryset.using(get_db_replica) To automatically pick the right replica. |
Seeing similar behavior on 2.109 with REPLICA_DATABASE_URLS. If I try to create a segment override, the application hangs on the creation and gives a 500 error on the create-segment-override call in the network logs . On refresh, the segment override exists but without the value that was set at creation. |
When the
REPLICA_DATABASE_URLS
environment variable is set, and pointing to replicated databases, the application does not behave as one would expect. For example, making a change to the state of a feature will sometimes be reflected immediately, but other times it requires a refresh to display the change to the user. This is likely caused by the fact that the FE immediately requests the state from the API following the toggle. This request comes in before the replication has completed to all replica DBs so it often results in the previous state being returned.Some options we could consider to resolve this:
... further options to be added as they come up
The text was updated successfully, but these errors were encountered: