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

DNS resolution failure issue with kong version 3.5.0 #13712

Open
1 task done
mayank-allen opened this issue Sep 26, 2024 · 2 comments
Open
1 task done

DNS resolution failure issue with kong version 3.5.0 #13712

mayank-allen opened this issue Sep 26, 2024 · 2 comments
Labels
dns pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...

Comments

@mayank-allen
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3.5.0

Current Behavior

We are intermittently getting DNS resolution failure. The Client gets this error-
failed the initial dns/balancer resolve for 'classroom-service.classroom.svc.cluster.local' with: failed to create a resolver: failed to set peer name: resource temporarily unavailable
In kong logs we get this kind of errors-
2024/09/26 07:03:28 [error] 1302#0: *1732918 [lua] init.lua:371: execute(): DNS resolution failed: failed to create a resolver: failed to set peer name: resource temporarily unavailable. Tried: ["(short)node-bff.node-bff.svc.cluster.local:(na) - cache-miss","node-bff.node-bff.svc.cluster.local.kong.svc.cluster.local:1 - cache-miss"], client: 10.1.6.200, server: kong, request: "POST /node-bff/api/v1/sr-management/requests/reissue-cards HTTP/1.1", host: "bff-dev.allen-demo.in", referrer: "http://localhost:3000/", request_id: "d4c524226b983517852ed6539f1c7311"

Expected Behavior

We expected that everything will work as in lower version 3.4.0

Steps To Reproduce

Just use version 3.5.0 and may be above (I only tested with 3.5.0) and deploy on your testing environment and let it remain at this version for sometime. In some hours you will start experiencing this issue with DNS not abled to get resolved, requests failing

Anything else?

No response

@samugi samugi added the dns label Sep 27, 2024
@StarlightIbuki
Copy link
Contributor

@chobits Could you take a look?

@chobits
Copy link
Contributor

chobits commented Oct 8, 2024

It looks that your operating system resources have exausted then syscall socket's setpeername failed. like openresty/lua-resty-dns#36

Error message reported by this line: https://github.com/openresty/lua-resty-dns/blob/master/lib/resty/dns/resolver.lua#L162

It might be resource limitations: The system may have reached its limit for open sockets or other resources.

Could you check the fds number in your OS/container and the limits like ulimit -a, note we need to know the kong process's limit info.

@chobits chobits added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dns pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...
Projects
None yet
Development

No branches or pull requests

4 participants