Increase lease timeout for CheckIngressIpAddressService to reduce polling frequency (#42643)
This commit is contained in:
parent
636e285617
commit
20897ebc7a
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ module Clusters
|
|||
|
||||
Error = Class.new(StandardError)
|
||||
|
||||
LEASE_TIMEOUT = 3.seconds.to_i
|
||||
LEASE_TIMEOUT = 15.seconds.to_i
|
||||
|
||||
def execute
|
||||
return if app.external_ip
|
||||
|
|
|
@ -25,7 +25,7 @@ describe Clusters::Applications::CheckIngressIpAddressService do
|
|||
allow(application.cluster).to receive(:kubeclient).and_return(kubeclient)
|
||||
allow(Gitlab::ExclusiveLease)
|
||||
.to receive(:new)
|
||||
.with("check_ingress_ip_address_service:#{application.id}", timeout: 3.seconds.to_i)
|
||||
.with("check_ingress_ip_address_service:#{application.id}", timeout: 15.seconds.to_i)
|
||||
.and_return(exclusive_lease)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue