Skip to content

Always enable the database load balancer

Yorick Peterse requested to merge always-enable-load-balancer into master

What does this MR do?

This always enables the database load balancing code, even when no replicas are configured. This reduces the amount of different code paths, and in turn makes it easier to add support for multiple databases (e.g. because we don't need to check if the LB is enabled all over the place).

See #338053 (closed) for more information

TODO

  • Double check if GitLab works without replicas being configured
  • Double check that migrations still work as expected (= no replicas are used)
  • Double check replicas are honoured when configured
  • Double check that service discovery still works

Does this MR meet the acceptance criteria?

Conformity

Edited by Yorick Peterse

Merge request reports