Commit 45cd1d6f authored by Mike Kozono's avatar Mike Kozono

Increase exclusive lease timeout

Because I have observed staging take longer than a minute
to complete this perform. A lease timeout which is too
short is against the point of the exclusive lease. The
timeout should ideally be exactly as long as the longest
possible execution time, but it's ok if we make the
timeout a bit longer than needed. I don't know for sure
if 30 minutes is long enough, but it is known to be an
improvement.

Changelog: changed
EE: true
parent d58a6c69
......@@ -12,7 +12,7 @@ module Geo
include GeoQueue
prepend Reenqueuer
LEASE_TIMEOUT = 1.minute
LEASE_TIMEOUT = 30.minutes
def perform(replicable_name)
replicator_class = ::Gitlab::Geo::Replicator.for_replicable_name(replicable_name)
......
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