Intermittent 503 Errors (upstream_reset_before_response_started{connection_termination}) with Istio and Uvicorn Despite 200 Status in Logs #2568
Unanswered
harshkumar314e
asked this question in
Potential Issue
Replies: 1 comment
-
Anything I should I try or I am missing, let me know if any other detail is required. |
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
-
I'm encountering an intermittent issue while using Uvicorn with FastAPI in a Kubernetes environment managed by Istio.
I have configured Uvicorn to run with 5 workers. Occasionally, for some requests, the Uvicorn access logs indicate a successful 200 status response, but Istio returns a 503 error to the client with the message
upstream_reset_before_response_started{connection_termination}
.Environment:
0.32.1
0.115.6
3.11.9
1.20.0
Configuration:
I suspect there might be a connection issue between Istio and Uvicorn. Any insights or suggestions on how to troubleshoot or resolve this issue would be greatly appreciated.
P.S: There was not much load on the server when the 503 error occurred, and many other requests at the same time were successful. Also, this is happening at least once a day.
Beta Was this translation helpful? Give feedback.
All reactions