Force release hosts from LB RackMiddleware
What does this MR do and why?
We couldn't find all the places where leak can be happening that are contributing to Investigate dead connections in gitlab rails co... (#588806).
- Skips Load Balancer from Feature::FlipperRecord (!223790 - merged) fixes the leak from FF check outside rails executor.
- But there are 1000s of dead connections from 'web' majorly on
main-replica, a summary of the investigation can be found in #588806 (comment 3194921584).
This MR ensures it releases all active connection of the thread from available hosts, rather than relying only on request_cache[CACHE_KEY].
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.