Introduce SessionMap to track per-lb sessions
What does this MR do and why?
We introduce a Gitlab::Database::LoadBalancing::SessionMap
which holds the hash of lb-name
to Gitlab::Database::LoadBalancing::Session
mapping.
Follow-up of !166566 (comment 2125393042)
~360 LoC are from new code. The other are more or less drop-in replacements.
Issue: gitlab-com/gl-infra/scalability#3834 (closed)
Required Approvals
Reviewers
Maintainers
-
backend @nbelokolodov -
database @ahegyi -
clickhouse @ahegyi -
verify @hfyngvason -
groupauthentication @ifarkas
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 Adam Hegyi