Skip to main content

Pivotal Cloud Foundry Developer Certification - Blue Green Deployments

What is a blue-green deployment? Why would you use it?
Blue green deployment is used to achieve zero downtime for deployed application in CF. To achieve this we need to have multiple version/instances of application deployed.

How do you map and unmap routes with cf?

cf map-route and cf unmap-route

How does route mapping enable a blue-green deployment?
Route mapping enables us to map multiple version of application
to the same route and traffic is distributed to the different instances based on number of instances. The production route is not mapped to another instance until the new version is deployed successfully.
What other steps are involved in a blue-green deployment
Step 1: Push an App
Step 2: Update App and Push
Step 3: Map Original Route to Green
Step 4: Unmap Route to Blue
Step 5: Remove Temporary Route to Green

Refer: https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html

Comments

Popular posts from this blog

OpenStack - Conceptual architecture showing the relationship b/w services

AWS vs Openstack comparison https://redhatstackblog.redhat.com/2015/05/13/public-vs-private-amazon-compared-to-openstack/

Pivotal Cloud Foundry Developer Certification - Managed and User-Provided Services

1. What is a service? Can you name some examples? Services are cloud native apps dependencies. Consider S ervice as a factory that delivers service instances. Two types: 1. Managed services Cloud Foundry offers a marketplace of services, from which users can provision reserved resources on-demand. Examples of resources services provide include databases on a shared or dedicated server, or accounts on a SaaS application.  Example: my-sql, rabbitmq, redis etc... 2. User provided services User provided services provides the metadata to connect to the system outside the cloud. These services are not available in market place. This are custom services i.e. connecting to your own external DB or any other service outside the cloud i.e. erp etc.. Command to list the service instances in your space: cf services To see details of particular service cf service SERVICE_INSTANCE_NAME What is the “marketplace”? Does it show all services?  The Pivotal Cloud F...

Kumaoni Song/Poem - Aaj ka dina

Aaj ka dina,  Tu holi ghar pana O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Ghutghutu maike, Batuli lagaye Ghutghutu maike, Batuli lagaye O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Aankho me aanshu, teri holi Mai pardesha, Tu ghar holi Ghutghutu maike, Batuli lagaye Ghutghutu maike, Batuli lagaye O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Aaj ka dina,  Tu holi ghar pana