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

Fix: Give in total 60 seconds timeout to boot an instance #428

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

nesitor
Copy link
Member

@nesitor nesitor commented Oct 5, 2023

Problem: Sometimes initiate a VM take a bit more time that used to, but finally starts.

Solution: Just to avoid HostNotFound errors, increase the ping attempts and the timeout to 60 seconds in total.

@nesitor nesitor requested review from hoh and odesenfans October 5, 2023 11:30
@nesitor nesitor self-assigned this Oct 5, 2023
@nesitor nesitor changed the title Fix: Give in total 60 second to the VM to respond the ping Fix: Give in total 60 seconds timeout to boot an instance Oct 5, 2023
Comment on lines +145 to +146
attempts = 30
timeout_seconds = 2.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
attempts = 30
timeout_seconds = 2.0
timeout_seconds = 0.5
timeout_total = 60
attempts = timeout_total // timeout_seconds

Copy link
Member Author

@nesitor nesitor Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will increase the ping error logs, and I think that 2 seconds is a good timeout for ping on instances.

@hoh hoh merged commit 1849b83 into main Oct 9, 2023
12 of 15 checks passed
@hoh hoh deleted the andres-fix-instance-short-ping-timeout branch October 9, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants