From 6db8b96f72e92ce07d70d6091f2b4d8111dc683b Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 28 Feb 2019 00:02:48 +0200 Subject: [PATCH] Add timeout and retries example to docs --- README.md | 16 +++++++++------- docs/gitbook/how-it-works.md | 14 ++++++++++---- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d02bbab2..62570fd0 100644 --- a/README.md +++ b/README.md @@ -89,25 +89,27 @@ spec: apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler name: podinfo - service: - # container port - port: 9898 # Istio gateways (optional) gateways: - public-gateway.istio-system.svc.cluster.local # Istio virtual service host names (optional) hosts: - podinfo.example.com - # Istio virtual service HTTP match conditions (optional) + # HTTP match conditions (optional) match: - uri: prefix: / - # Istio virtual service HTTP rewrite (optional) + # HTTP rewrite (optional) rewrite: uri: / - # for emergency cases when you want to ship changes - # in production without analysing the canary (default false) + # timeout for HTTP requests (optional) + timeout: 5s + # retry policy when a HTTP request fails (optional) + retries: + attempts: 3 + # promote the canary without analysing it (default false) skipAnalysis: false + # define the canary analysis timing and KPIs canaryAnalysis: # schedule interval (default 60s) interval: 1m diff --git a/docs/gitbook/how-it-works.md b/docs/gitbook/how-it-works.md index 927d1bf5..7ce44509 100644 --- a/docs/gitbook/how-it-works.md +++ b/docs/gitbook/how-it-works.md @@ -39,16 +39,22 @@ spec: # Istio virtual service host names (optional) hosts: - podinfo.example.com - # Istio virtual service HTTP match conditions (optional) + # HTTP match conditions (optional) match: - uri: prefix: / - # Istio virtual service HTTP rewrite (optional) + # HTTP rewrite (optional) rewrite: uri: / - # for emergency cases when you want to ship changes - # in production without analysing the canary + # timeout for HTTP requests (optional) + timeout: 5s + # retry policy when a HTTP request fails (optional) + retries: + attempts: 3 + perTryTimeout: 3s + # promote the canary without analysing it (default false) skipAnalysis: false + # define the canary analysis timing and KPIs canaryAnalysis: # schedule interval (default 60s) interval: 1m