-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
High number of DNS queries #1365
Comments
What do you mean a shared http agent? It's using the default Agent from Node.js, which has Edit: my bad, we don't use the default Agent of Node.js anymore (because of this) since a custom agent was added for HTTP proxy. I'll make a PR to set back the default value of keepAlive. |
This is what I meant. Usually people create a customized http client and use that every where. I guess it's okay to use the global agent as well. Thanks for looking into this and responding to it! I'll close it since it's duplicate |
Thank you! Closing this for aforementioned reason |
The Node.js documentation mentions that the default keep-alive value is not used when creating a global agent manually, which is done in customProxyAgent.ts. re #1365
* fix: assign the keep-alive value explicitly The Node.js documentation mentions that the default keep-alive value is not used when creating a global agent manually, which is done in customProxyAgent.ts. re #1365 * fix: typo
* fix: assign the keep-alive value explicitly The Node.js documentation mentions that the default keep-alive value is not used when creating a global agent manually, which is done in customProxyAgent.ts. re fallenbagel#1365 * fix: typo
Description
I don't fully understand the code base so please excuse me if this is just wrong.
As far as I understand, It is using
fetch
every where, setting up and tearing down connections when it's done. It is not using a shared http client and it is not using connection pools.The problem with the current approach, Jellyseerr generates ridiculously high amount of DNS traffic. In the last 2 weeks, I now have 84k requests to
themoviedb
.Version
2.3
Steps to Reproduce
Screenshots
No response
Logs
Platform
desktop
Database
PostgreSQL
Device
Android, iPad Pro
Operating System
iPadOS 18, Android 15
Browser
Firefox, Safari
Additional Context
I believe, reusing connections and sharing the http client across all the places it is used should reduce the DNS traffic.
Code of Conduct
The text was updated successfully, but these errors were encountered: