Track individual lb in Gitlab::Database::LoadBalancing::Session
What does this MR do and why?
This MR updates Gitlab::Database::LoadBalancing::Session to track use_primary and performed_writes on a per-db basis rather than using a single boolean. The method calls to specify database are mainly found in Sticking and ConnectionProxy classes.
This is preparation work for configuring per-db data consistency in sidekiq workers.
gitlab-com/gl-infra/scalability#3805
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Sylvester Chin