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

queryControllerDNS: avoid using zero TTL when query fails #3235

Merged
merged 1 commit into from
May 23, 2023

Conversation

milan-zededa
Copy link
Contributor

When controllerDNSCache would fail to translate controller hostname, the TTL was returned as zero, which then caused queryControllerDNS to set dnsTimer to zero interval, thus erasing any delay and triggering a loop of DNS query retries with very high frequency.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

When was this introduced in master? I wonder if it needs to be patched in some releases.

When controllerDNSCache would fail to translate controller hostname,
the TTL was returned as zero, which then caused queryControllerDNS to set
dnsTimer to zero interval, thus erasing any delay and triggering a loop
of DNS query retries with very high frequency.

Signed-off-by: Milan Lenco <milan@zededa.com>
@milan-zededa
Copy link
Contributor Author

milan-zededa commented May 22, 2023

LGTM

When was this introduced in master? I wonder if it needs to be patched in some releases.

It seems to have been there ever since this controller IP caching was introduced, i.e. from 7.3.0.
Recently Christoph did some rework and added a log message that helped me to notice it.

@eriknordmark eriknordmark merged commit e1db63a into lf-edge:master May 23, 2023
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