Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the maximum delay waiting to get the migration lock. #13

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading