Skip to content
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

Core: Mark 502 and 504 statuses as retryable to the REST exponential retry strategy #9885

Conversation

amogh-jahagirdar
Copy link
Contributor

Bad gateway or gateway timeouts should be able to be safely retried. A bad gateway could be caused by a load balancer or proxy between the client and the actual server, when there's some network partition between the LB and server. A retry in this case could route the request to another server.

A gateway timeout could occur when the LB/proxy is waiting for a response from the actual server, but it takes too long. in this case a retry could be performed again to increase the chance of hitting a more available server.

@github-actions github-actions bot added the core label Mar 6, 2024
@amogh-jahagirdar amogh-jahagirdar changed the title Core: Mark 502 and 504 failures as retryable to the exponential retry strategy Core: Mark 502 and 504 statuses as retryable to the REST exponential retry strategy Mar 7, 2024
@amogh-jahagirdar
Copy link
Contributor Author

Thanks for the review @nastra !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants