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

hostcheckloop(): Timeout includes DNS lookup which causes havoc on resolver reboots #1

Open
ZNikke opened this issue Jan 15, 2018 · 0 comments
Assignees

Comments

@ZNikke
Copy link
Member

ZNikke commented Jan 15, 2018

my $resp = $ua->head("http://$hosts->[$i]->{fqdn}$uri");

assumes that DNS is quick, but since the check is done against FQDN DNS can have a big impact and
actually cause timeout if the primary resolver is unreachable.

This might trigger failure storms causing all offloaders to pop offline making the frontends trying to handle all traffic. This in turn causes a caching storm, which causes significant load on the backend.

The fix is to do DNS lookup separately and do HEAD using the resolved IP address.

@ZNikke ZNikke self-assigned this Jan 15, 2018
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

No branches or pull requests

1 participant