GithubHelp home page GithubHelp logo

ab-deploy's Introduction

##Running AB Testing on OpenShift

Steps

  • Using Web Console create a new-app with name app-a pointing to his gitrepo. Go to advanced options and uncheck the route creation option so that the app does not create a route. We will add the route later.
  • Add a route by clicking on the Create Route option next to service app-a. Give a common name for the route as it will frontend multiple versions of the application eg: appab-abdemo.apps.testv3.osecloud.com
  • Annotate the route to use roundrobin load balancing method
oc annotate route/appab haproxy.router.openshift.io/balance=roundrobin
  • Test your app and check the results Run curl in a loop to show how the results all show Version 1 Eg: for i in {1..20}; do curl http://appab-abdemo.apps.testv3.osecloud.com; echo ""; done

  • Edit the code to make changes. In my case I would change version number to 2.

  • Using web console add a new-app with name app-b without route. Verify that service app-b got created

  • Now edit the route to split traffic between services app-a and app-b. You can change the percentages and test

  • Test using curl from your workstation Eg: for i in {1..20}; do curl http://appab-abdemo.apps.testv3.osecloud.com/; echo ""; done

ab-deploy's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.