From 52e89ff509b773fefe44887ed0fc2bca658af934 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sat, 2 Mar 2019 13:48:19 +0200 Subject: [PATCH] Add Envoy timeout and retry policy to docs --- README.md | 10 +++++----- docs/gitbook/how-it-works.md | 29 ++++++++++++++--------------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 59a736ea..b46b32b5 100644 --- a/README.md +++ b/README.md @@ -106,11 +106,11 @@ spec: # HTTP rewrite (optional) rewrite: uri: / - # timeout for HTTP requests (optional) - timeout: 5s - # retry policy when a HTTP request fails (optional) - retries: - attempts: 3 + # Envoy timeout and retry policy (optional) + appendHeaders: + x-envoy-upstream-rq-timeout-ms: "15000" + x-envoy-max-retries: "10" + x-envoy-retry-on: "gateway-error,connect-failure,refused-stream" # promote the canary without analysing it (default false) skipAnalysis: false # define the canary analysis timing and KPIs diff --git a/docs/gitbook/how-it-works.md b/docs/gitbook/how-it-works.md index c36e9c67..8952b2d0 100644 --- a/docs/gitbook/how-it-works.md +++ b/docs/gitbook/how-it-works.md @@ -46,12 +46,11 @@ spec: # HTTP rewrite (optional) rewrite: uri: / - # timeout for HTTP requests (optional) - timeout: 5s - # retry policy when a HTTP request fails (optional) - retries: - attempts: 3 - perTryTimeout: 3s + # Envoy timeout and retry policy (optional) + appendHeaders: + x-envoy-upstream-rq-timeout-ms: "15000" + x-envoy-max-retries: "10" + x-envoy-retry-on: "gateway-error,connect-failure,refused-stream" # promote the canary without analysing it (default false) skipAnalysis: false # define the canary analysis timing and KPIs @@ -135,11 +134,11 @@ metadata: match: - uri: prefix: / - # HTTP rewrite (optional) - rewrite: - uri: / - # timeout for HTTP requests (optional) - timeout: 5s + # Envoy timeout and retry policy (optional) + appendHeaders: + x-envoy-upstream-rq-timeout-ms: "15000" + x-envoy-max-retries: "10" + x-envoy-retry-on: "gateway-error,connect-failure,refused-stream" # retry policy when a HTTP request fails (optional) retries: attempts: 3 @@ -174,10 +173,10 @@ spec: prefix: / rewrite: uri: / - timeout: 5s - retries: - attempts: 3 - perTryTimeout: 3s + appendHeaders: + x-envoy-upstream-rq-timeout-ms: "15000" + x-envoy-max-retries: "10" + x-envoy-retry-on: "gateway-error,connect-failure,refused-stream" route: - destination: host: frontend-primary