Skip to content

Ejemplo para probar OKD de aplicacion ab-deploy

Notifications You must be signed in to change notification settings

garrotemar/ab-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 

Repository files navigation

##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

About

Ejemplo para probar OKD de aplicacion ab-deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages