-
Notifications
You must be signed in to change notification settings - Fork 275
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 memory consumption #1065
Comments
For info, I'm able to check any git version of the router if you want me to try out some changes. |
Hi @yanns. Thanks for filing the issue. Could I request a some additional information:
|
I'm using
10s
Only WARN about |
I can reproduce this issue locally with some mutations. One GraphQL query with such mutation is enough to reproduce this behavior. The mutation contains a field value of type String that contains an escaped string, like: |
I've added some |
I've tried to reproduce this case by changing an existing integration test, but no luck so far. |
is a request actually sent to the subgraph (as seen from the nhetwork or the subgraph point of view) or does it actually stop at the router? |
It's almost certainly an issue in the parser. I'm just trying to figure out a good way to reproduce it in our test setup so that I can confirm this. |
@Geal The subgraph does not receive any request. It seems to stop at the router. |
That fits with parser issues. Can you give us an example of the mutation you found which is failing (as long as it's not confidential/private)? |
The mutation is very simple:
I find it strange that I cannot reproduce it with the integration tests. |
I can't reproduce it in the router, but I did the following.
Sample program:
I'll debug my test program and figure out what is going on. |
@yanns I've filed an issue against |
…en `"` is used in a parameter value.
…en `"` is used in a parameter value.
…en `"` is used in a parameter value.
…en `"` is used in a parameter value. (#1078) Co-authored-by: bryn <[email protected]>
Thanks for the quick release. |
Describe the bug
The federation router's memory consumption goes very high suddenly.
To Reproduce
We can reproduce this issue on two different environments.
On a Kubernetes cluster, we set a maximum of memory.
After start, during some minutes, the memory consumption is stable.
Then it suddenly goes high. Kubernetes kills the pod and restarts it.
Example of memory usage of one pod:
We cannot really observe the memory going high, and this goes very fast.
Locally, on mac, I can reproduce this behavior with some tests. When the router starts, it consumes about 250 Mi of memory. After some tests, the memory goes very high. Here is one sample.
Sample of federation-router.txt
I don't know if it helps. I can try to use http://www.cmyr.net/blog/rust-profiling.html to provide more data.
Expected behavior
The memory consumption can go higher, but should stay stable.
Additional context
I've tried with different versions, and it does not make any difference. We are now using the version
v0.9.0
.The text was updated successfully, but these errors were encountered: