You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should research the performance impact of directing Sch A traffic to one replica and everything else to the other. The idea came from the notion of schedule A “hogging” resources from all the other queries. We could use the queries/activity levels from the outage drill to test before/after.
Set up second replica on stage - asked Rohan about pairing on this around Wednesday Dec 11. Ideally we would put in a PR to the fec-infrastructure repo that would trigger the change.
Set up additional application instances to match production
Remove 2nd replica from env vars, rebuild old release branch
spin down 2nd replica (PR waiting for review)
Summary of results
Negative impact on Schedule A performance outweighs the improved performance of other endpoints. While this could be a stopgap measure to "quarantine" schedule A data, it's not a good long-term solution. Per @PaulClark2 I'm going to make a wiki with step-by-step instructions on spinning up another read replica in production, which would yield better results.
The text was updated successfully, but these errors were encountered:
We should research the performance impact of directing Sch A traffic to one replica and everything else to the other. The idea came from the notion of schedule A “hogging” resources from all the other queries. We could use the queries/activity levels from the outage drill to test before/after.
We probably want to look at
RoutingSession
openFEC/webservices/common/models/base.py
Lines 8 to 47 in d111503
This looks doable in theory: https://github.com/fecgov/openFEC/pull/4048/files
Need to set
SQLA_FOLLOWERS
env var to testCompletion criteria:
stage
- asked Rohan about pairing on this around Wednesday Dec 11. Ideally we would put in a PR to the fec-infrastructure repo that would trigger the change.stage
that routes all schedule A traffic to one replica and everything else to another. Consider whether schedule A aggregates should get routed there too. https://github.com/fecgov/openFEC/tree/feature/test-sch-a-routingopenFEC/webservices/common/models/base.py
Lines 45 to 53 in 78d1701
Summary of results
Negative impact on Schedule A performance outweighs the improved performance of other endpoints. While this could be a stopgap measure to "quarantine" schedule A data, it's not a good long-term solution. Per @PaulClark2 I'm going to make a wiki with step-by-step instructions on spinning up another read replica in production, which would yield better results.
The text was updated successfully, but these errors were encountered: