ee/lib/gitlab/database/load_balancing/host.rb
# Returns true if the host is online.
Returns true if the host is online.
Returns true if the host is online .
def online?
          return @online unless check_replica_status?
          refresh_status
          LoadBalancing.log(:info, "Host #{@host} came back online") if @online
          @online
        rescue *CONNECTION_ERRORS
          offline!
          false
        end
def online? return @online unless check_replica_status? refresh_status LoadBalancing . log ( :info , "Host #{@host} came back online" ) if @online @online rescue * CONNECTION_ERRORS offline! false end
Returns true if the host is online.
Returns true if the host is online .