-
Notifications
You must be signed in to change notification settings - Fork 10
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
Memory Leak when setting options.timeout
per subgraph in transportEntries
#303
Comments
options.timeout
in transportEntriesoptions.timeout
in transportEntries
options.timeout
in transportEntriesoptions.timeout
per subgraph in transportEntries
Thanks for creating the issue and the feedback! |
@ardatan Thank you for the proposed fix! However, we just tested the alpha release for a couple hours and noticed that it didn't help, and actually might have increased the rate of leaking memory. |
Can you try the latest LTS Node (v22.12.0)? Just to make sure it's not a Node quirk (which we've had happen before 😅). |
@enisdenjo Thanks for the suggestion, but we're already using node v22.12.0. |
Ah ok cool, because I see v22.10.0 in the issue description. |
Ah, we must've upgraded to 22.12.0 since I initially logged the issue. But I did verify that we're currently on 22.12.0 |
Versions:
Hi! We currently have a hive gateway setup to serve a supergraph.
We recently tried adding timeout settings per subgraph. Below is our config:
After a couple of days, we observed a memory leak and traced it to this code change on our side.
After trying several things, the single change that fixed our memory leak was removing the
options.timeout
setting in transportEntries. We moved the per subgraph timeout to a single setting on the newly addedrequestTimeout
option, and the memory leak was immediately fixed.The text was updated successfully, but these errors were encountered: