Commit 11eace2a authored by Yannis Roussos's avatar Yannis Roussos

Merge branch 'db_lb_new_connection_on_worker_boot' into 'master'

Create new set of LB hosts on worker boot

See merge request gitlab-org/gitlab!63485
parents 08a411e7 e73dd869
......@@ -11,6 +11,9 @@ if Gitlab::Database::LoadBalancing.enable?
# This needs to be executed after fork of clustered processes
Gitlab::Cluster::LifecycleEvents.on_worker_start do
# For Host-based LB, we need to re-connect as Rails discards connections on fork
Gitlab::Database::LoadBalancing.configure_proxy
# Service discovery must be started after configuring the proxy, as service
# discovery depends on this.
Gitlab::Database::LoadBalancing.start_service_discovery
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment