Commit b44a37ba authored by Gabriel Mazetto's avatar Gabriel Mazetto

Enable DB Load-balancer flag USE_NEW_LOAD_BALANCER_QUERY by default

The Database Load-Balancer now works on a Patroni Standby Cluster.
This is useful for when you want to run it on a GitLab secondary site.

Changelog: added
parent 0081acb3
......@@ -293,7 +293,7 @@ module Gitlab
# @param [ActiveRecord::Connection] ar_connection
# @return [String]
def self.get_write_location(ar_connection)
use_new_load_balancer_query = Gitlab::Utils.to_boolean(ENV['USE_NEW_LOAD_BALANCER_QUERY'], default: false)
use_new_load_balancer_query = Gitlab::Utils.to_boolean(ENV['USE_NEW_LOAD_BALANCER_QUERY'], default: true)
sql = if use_new_load_balancer_query
<<~NEWSQL
......
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