Skip to content

Draft: Add `gitlab-database-load_balancing` gem

What does this MR do and why?

This is part of the #431748.

This is a potential change to be merged, that introduces and moves almost all code from gitlab/database/load_balancing into a new dedicated gem: gitlab-database-load_balancing.

This models all dependencies using dependency inversion principle, reducing the requirements of the load balancing code to a very small number of callbacks.

References

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kamil Trzciński (Back 2025-01-01)

Merge request reports

Loading