Skip to content

Commit

Permalink
Merge pull request #13 from flyingcircusio/reduce-migration-lock-delay
Browse files Browse the repository at this point in the history
Reduce the maximum delay waiting to get the migration lock.
  • Loading branch information
ctheune authored Aug 18, 2024
2 parents 8e4159a + 85a4ad5 commit da64907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fc/qemu/outgoing.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ def acquire_migration_locks(self):
# In case that there are multiple processes waiting, randomize to
# avoid steplock retries. We us CSMA/CD-based exponential backoff,
# timeslot 10ms but with a max of 13 instead of 16.
# This means we'll wait up to 80s, 40s on average if everything
# This means we'll wait up to 20s, 10s on average if everything
# becomes really busy and we may experience lock contention.
tries = min([tries + 1, 13])
tries = min([tries + 1, 11])
timeout.interval = random.randint(1, 2**tries) * 0.01
if self.agent.has_new_config():
self.target.cancel(self.cookie)
Expand Down

0 comments on commit da64907

Please sign in to comment.