Replies: 1 comment
-
There is no support for service discovery in the router, but you can look into supporting graceful shutdown in the subgraphs (or in the load balancer in front of them). When a subgraph is going to stop, it should return |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of our subgraph services has auto-scaling configured (in K8s).
When scaled down, Apollo Router logs errors like
fetch_error=SubrequestHttpError { status_code: None, service: "model", reason: "connection closed before message completed" }
.Is there something I can do to handle this more gracefully?
Maybe Apollo Router should be aware of scaling, or the subgraph service should wait longer before terminating?
Beta Was this translation helpful? Give feedback.
All reactions