Skip to content

Add HTTPRetry config to allow setting retryOn policy#679

Merged
rshriram merged 1 commit intoistio:release-1.1from
hzxuzhonghu:release-1.1
Oct 25, 2018
Merged

Add HTTPRetry config to allow setting retryOn policy#679
rshriram merged 1 commit intoistio:release-1.1from
hzxuzhonghu:release-1.1

Conversation

@hzxuzhonghu
Copy link
Copy Markdown
Member

@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Oct 25, 2018
@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: costinm

If they are not already assigned, you can assign the PR to them by writing /assign @costinm in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

// The supported policies can be found in
// "https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/router_filter#x-envoy-retry-on"
// and "https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/router_filter#x-envoy-retry-grpc-on"
string retryOn = 3;
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.

Note: when you implement this in istio/istio, make sure to set the retry plugin as wel

  retry_host_predicate:
  - name: envoy.retry_host_predicates.previous_hosts
  host_selection_retry_max_attempts: 3

along with other options from here. The above settings will prevent Envoy from selecting the same failed host (which is the default).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for reminder, will do it. And learn more about envoy configuration.

@rshriram rshriram merged commit e9d86f9 into istio:release-1.1 Oct 25, 2018
@hzxuzhonghu
Copy link
Copy Markdown
Member Author

@rshriram Is this need for master branch? so that I can update vendor in istio.io/istio. And implement this in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants