Running A/B Tests on OpenShift (Demo)

In this video

In this video, Veer Muchandi covers integrated A/B Deployments and how to test application changes in OpenShift Container Platform 3.3.

Notes

Steps to run an A/B test on OpenShift Container Platform 3.3

  • Using the OpenShift web console create a new-app with name app-a. Go to the 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 (e.g. 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.
  • Edit the code to make some changes.
  • Using the web console add a new-app with name app-b without a route. Verify that service app-b was 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 – for example:
for i in {1..20}; do curl http://appab-abdemo.apps.testv3.osecloud.com/; echo ""; done

The Author

You can find Veer’s other posts here, which include many other demos and walkthroughs for OpenShift Origin and OpenShift Container Platform.

On Twitter: @VeerMuchandi

Other Videos

View the Entire OpenShift 3 Demo Playlist

For the latest information on OpenShift 3, please visit https://www.openshift.com/.

Categories
OpenShift Container Platform, OpenShift Dedicated, Videos
Tags
, , ,

3 Responses to “Running A/B Tests on OpenShift (Demo)”

  1. debianmaster

    thanks for the simple tutorial

  2. Sal Carceller

    I see you had to deploy the service 2 times for this routing. Is it possible to do the same on a single service but 2 different builds within the single service? If so how?

  3. Lits789

    Hi Veer, Why the comment for your Demo-3 PHP+MYSQL is closed? Anyways my apologies for asking in the wrong post. php container fails with below error while pod creation…I have observed openshift creates issue while using publicly available images….Can you please help…
    chown: changing ownership of ‘/app/logo.png’: Operation not permitted
    chown: changing ownership of ‘/app/dbtest.php’: Operation not permitted
    chown: changing ownership of ‘/app/index.php’: Operation not permitted
    chown: changing ownership of ‘/app’: Operation not permitted
    tail: cannot open ‘/var/log/apache2/*’ for reading: Permission denied
    tail: cannot watch parent directory of ‘/var/log/apache2/*’: Permission denied
    tail: inotify cannot be used, reverting to polling
    (13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
    (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    AH00015: Unable to open logs

Comments are closed.