Skip to content

Commit

Permalink
Reduce the maximum delay waiting to get the migration lock.
Browse files Browse the repository at this point in the history
During the network rollout week we evacuated a lot of hosts and saw
very high delays in the long tail even with randomization and decided
to reduce it noticably. We're now down to 20s max delay instead of 80s
originally.
  • Loading branch information
ctheune committed Aug 18, 2024
1 parent 8e4159a commit 85a4ad5
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 85a4ad5

Please sign in to comment.