Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement App Mesh A/B testing #340

Merged
merged 4 commits into from
Oct 17, 2019
Merged

Implement App Mesh A/B testing #340

merged 4 commits into from
Oct 17, 2019

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Oct 15, 2019

This PR implements A/B testing for App Mesh using HTTP headers match conditions.

Example:

apiVersion: flagger.app/v1alpha3
kind: Canary
metadata:
  name: podinfo
  namespace: demo
spec:
  provider: appmesh
  targetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: podinfo
  service:
    port: 9898
    meshName: global
  canaryAnalysis:
    interval: 10s
    threshold: 5
    iterations: 10
    # canary match condition
    match:
      - headers:
          cookie:
            regex: "^(.*?;)?(type=insider)(;.*)?$"
    metrics:
      - name: request-success-rate
        threshold: 99
        interval: 1m
    webhooks:
      - name: load-test
        url: http://flagger-loadtester.test/
        timeout: 5s
        metadata:
          # use the cookie for canary load testing
          cmd: "hey -z 1m -q 10 -c 2 -H 'Cookie: type=insider' http://podinfo.demo:9898/"

Note that multiple OR conditions are not supported due to aws/aws-app-mesh-roadmap#123

Depends on aws/aws-app-mesh-controller-for-k8s#78

Fix: #144

@stefanprodan stefanprodan merged commit 60c4bba into master Oct 17, 2019
@stefanprodan stefanprodan deleted the appmesh-ab-testing branch October 17, 2019 07:54
@stefanprodan stefanprodan mentioned this pull request Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App Mesh A/B Testing
1 participant