-
Notifications
You must be signed in to change notification settings - Fork 254
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
Gateway fetching uplink indefinitely #1405
Comments
Just to confirm: you are trying to use the old Google Cloud Storage-based system for getting schemas in your server instead of the newer Uplink system? This behavior was removed in Can you help us understand why Uplink doesn't work for you? The Uplink system gives us the ability to manage permissions on your graphs in a more reliable and dynamic way, and has allowed us to provide multi-cloud support so that Uplink continues to work even when one of our cloud vendors has a global failure. |
Hi @glasser We'd be glad to use Uplink, but using the new uplink endpoints (or even the former one) led to timeout problems like the one mentioned in this issue, or the one here: #949 I have no idea why it behaves like this, perhaps it's due to lambda runtime but it's hard to say... |
@Nicoowr that's very surprising to hear. In its former mode of behavior the gateway had to perform a series of fetches (literally one fetch waiting for the next) to the network along with the actual composition before it was ready to serve requests. With uplink it gets to skip all of that and perform just one fetch. If you can provide us with some additional details i.e. where time is being lost when using Uplink that could be helpful. Do you know what your current lambda timeout is? |
@trevor-scheer Our lambda timeout is set to 28s, for both gateway and subservices. |
@Nicoowr thanks for the extra info. I don't think a 200 is conclusive, but this does seem to be an issue for you and others so I think we have some more digging to do. Is there a way for you to share what's in those responses from Uplink? My first suspicion is that there might be some actual errors preventing the gateway from successfully starting. |
This should be resolved via #1503 / #1504 (releasing |
I should backpedal a bit here - #1503 does resolve an issue that's demonstrated in your screenshot (gateway shouldn't send 7x requests per cycle when it's getting 200s). #949 seems like a completely different problem set that might still be blocking successfully using Uplink. In any case, I hope you try out the new version and report back here with results (good or bad!). |
@trevor-scheer Thank you very much for your reactivity! I'll try it asap and tell you how it goes :) |
@trevor-scheer It seems like the new version causes not reproductible errors |
@Nicoowr Do those come with stack traces? |
Latest versions it didn't occur
Current versions
Set-up
Everything is hosted on AWS Lambda (Gateway & Subservices)
Expected behavior
Setting
schemaConfigDeliveryEndpoint: undefined
in gateway config should keep the old behavior, namely not fetching the supergraph from uplink.Actual behavior
Setting
schemaConfigDeliveryEndpoint: undefined
does not always prevent the gateway from fetching the supergraph from uplink. When it does, the post requests do not succeed and the gateway continues to fetch until it times out:This might be linked to #949
The text was updated successfully, but these errors were encountered: