Skip to content

Commit

Permalink
Document how to enable A/B testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Mar 11, 2019
1 parent 86ea172 commit 12ac96d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/gitbook/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Besides weighted routing, Flagger can be configured to route traffic to the cana
In an A/B testing scenario, you'll be using HTTP headers or cookies to target a certain segment of your users.
This is particularly useful for frontend applications that require session affinity.

Spec:
You can enable A/B testing by specifying the HTTP match conditions and the number of iterations:

```yaml
canaryAnalysis:
Expand All @@ -353,6 +353,8 @@ Spec:
regex: "^(.*?;)?(user=test)(;.*)?$"
```

If Flagger finds a HTTP match condition, it will ignore the `maxWeight` and `stepWeight` settings.

The above configuration will run an analysis for ten minutes targeting the Safari users and those that have a test cookie.
You can determine the minimum time that it takes to validate and promote a canary deployment using this formula:

Expand Down

0 comments on commit 12ac96d

Please sign in to comment.