-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Use of upstreams increases DNS Issues. #6812
Comments
@Tieske Tagging you based on the responses on other issues similar to dns. Thanks! |
I think this was already resolved, it has nothing to do with the actual dns resolution, but is a synchronisation issue. DNS resolution (including upstreams) is tried before the upstream becomes available. This causes the upstream-lookup to fail, which then causes a fall-through to the actual DNS client which starts querying the name server. @bungle @kikito might have better idea of when this was exactly fixed. |
We are seeing this issue as well. However we are on the latest version of Kong (2.3.1) and the Kong Ingress Controller (1.1.1). Issue opened here: #6807 |
@kikito Can you help us if this was fixed in some version. We are facing these issues in our environment and can't find a way out/workaround for this use case. Thanks! |
Hi @hugoShaka! Thanks for your report. This one is a different problem from the one originally reported, this one is related to DNS warm-up and should be fixed when #6891 is merged. We will keep having DNS resolutions when starting Kong, but only for hosts that are not upstream names, which is the problem you are facing, right? You may want to create a new issue for that if you want to follow the progress of that PR. |
Hello @vaibhavkhurana2018 @mlatimer-figure! Thanks for pointing that. Today we released Kong 2.3.3 that includes #6833. In that PR we made some changes that address the upstream name usage, which used to sometimes cause the reported problem when the balancer was under high load. Could you please test this version? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@vaibhavkhurana2018 @mlatimer-figure We are at kong version 2.0.3. |
Summary
We are using upstreams for forwarding the requests to targets. https://docs.konghq.com/getting-started-guide/2.1.x/load-balancing/#:~:text=An%20Upstream%20Object%20refers%20to,over%20multiple%20services%20(targets).
As per the above doc, we will have to pass the upstream name in the service configuration.
With the configurations in kong, given here, kong will try to find the service in the entire search path.
It is guaranteed that the upstream will not be available in the DNS server/resolver as the upstream is a virtual kong entity.
This causes unnecessary load on the DNS servers and also results in the following error on kong.
SUMMARY_GOES_HERE
Steps To Reproduce
2.Create a service and add upstream as host.
Additional Details & Logs
$ kong version
) 2.0.3Possible Solution:
The text was updated successfully, but these errors were encountered: