Skip to content

docs: add gateway-error as one of retry-on policies#415

Merged
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
dio:add-gateway-error-retry-policy
Jan 14, 2018
Merged

docs: add gateway-error as one of retry-on policies#415
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
dio:add-gateway-error-retry-policy

Conversation

@dio
Copy link
Copy Markdown
Member

@dio dio commented Jan 12, 2018

This patch adds doc for adding gateway-error as a retry-on policy, i.e. when the received response code is classified as a gateway error (502, 503 and 504). It is a subset of 5xx.

Ref: envoyproxy/envoy#2300

Signed-off-by: Dhi Aurrahman <dio@hooq.tv>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, small comment. Thank you for working on this!

request, including any retries that take place.

gateway-error
Envoy will attempt a retry if the upstream server responds with 502, 503 or 504 response code. This policy should have
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, all of the same documentation applies here as per the "5xx" policy. I would recommend rephrasing in the negative sense. E.g., "This policy is similar to the 5xx policy but will only retry requests that result in a 502, 503, or 504."

Signed-off-by: Dhi Aurrahman <dio@hooq.tv>
request, including any retries that take place.

gateway-error
Envoy will attempt a retry if the upstream server responds with 502, 503, or 504 response code.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend deleting this line. It's similar including the text about disconnect/reset/read-timeout, etc. (This is related to my other comment in the implementation PR). Unless of course you intend it really to be only upstream responses. I assume though you want Envoy origin responses also?

Signed-off-by: Dhi Aurrahman <dio@hooq.tv>
@mattklein123 mattklein123 merged commit ab79c01 into envoyproxy:master Jan 14, 2018
jrajahalme added a commit to jrajahalme/envoy-api that referenced this pull request Jan 16, 2018
docs: add gateway-error as one of retry-on policies (envoyproxy#415)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants