Skip to content

Draft: Add `gitlab-database-load_balancing` gem

Kamil Trzciński requested to merge gitlab-database-load_balancing into master

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

Merge request reports