From d911e1ddc551a6bef274f7d8b99a68848f78882d Mon Sep 17 00:00:00 2001 From: mathetake Date: Tue, 10 Mar 2020 15:16:03 +0900 Subject: [PATCH] docs: add mirrorWeight example --- docs/gitbook/tutorials/istio-progressive-delivery.md | 4 +++- docs/gitbook/usage/deployment-strategies.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/gitbook/tutorials/istio-progressive-delivery.md b/docs/gitbook/tutorials/istio-progressive-delivery.md index 9cc930d6..9764c828 100644 --- a/docs/gitbook/tutorials/istio-progressive-delivery.md +++ b/docs/gitbook/tutorials/istio-progressive-delivery.md @@ -324,6 +324,8 @@ spec: iterations: 10 # enable traffic shadowing mirror: true + # weight of the traffic mirrored to your canary (defaults to 100%) + mirrorWeight: 100.0 metrics: - name: request-success-rate thresholdRange: @@ -357,7 +359,7 @@ With the above configuration, Flagger will run a canary release with the followi * run the acceptance tests * abort the canary release if tests fail * start the load tests -* mirror traffic from primary to canary +* mirror 100% of the traffic from primary to canary * check request success rate and request duration every minute * abort the canary release if the metrics check failure threshold is reached * stop traffic mirroring after the number of iterations is reached diff --git a/docs/gitbook/usage/deployment-strategies.md b/docs/gitbook/usage/deployment-strategies.md index e46bd767..bc70aafa 100644 --- a/docs/gitbook/usage/deployment-strategies.md +++ b/docs/gitbook/usage/deployment-strategies.md @@ -277,6 +277,8 @@ Istio example: threshold: 2 # Traffic shadowing (compatible with Istio only) mirror: true + # Weight of the traffic mirrored to your canary (defaults to 100%) + mirrorWeight: 100.0 ``` Mirroring rollout steps for service mesh: @@ -287,7 +289,7 @@ Mirroring rollout steps for service mesh: * run the acceptance tests * abort the canary release if tests fail * start the load tests -* mirror traffic from primary to canary +* mirror 100% of the traffic from primary to canary * check request success rate and request duration every minute * abort the canary release if the failure threshold is reached * stop traffic mirroring after the number of iterations is reached