Introduce SessionMap to track per-lb sessions - 2nd try

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.

NOTE: This MR is a 2nd attempt of the reverted !166986 (merged). The spec and missing feature-flag path is added as 662b280e

Issue: gitlab-com/gl-infra/scalability#3834

Required approvers

reviewers

maintainers

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

Merge request reports

Loading