Skip to main content

Posts

Showing posts from February, 2018

Pivotal Cloud Foundry Developer Certification - Application Autoscaler

What is the autoscaler? App Autoscaler is a marketplace service that helps control the cost of running apps while maintaining app performance. To balance app performance and cost, use App Autoscaler to do the following: Configure rules that adjust instance counts based on metrics thresholds such as CPU Usage Modify the maximum and minimum number of instances for an app, either manually or following a schedule How would you use it? To use App Autoscaler, you must create an instance of the App Autoscaler service and bind it to any app you want to autoscale. You can do this using either the Apps Manager or from the Cloud Foundry Command Line Interface (cf CLI): Apps Manager: Create an instance of the service. Bind the service to an app. cf CLI: Create an instance of the service. Bind the service to an app. What can you configure? 1. Instance Limits 2. Scaling Rules 3. Scheduled Limit Changes Do you understand autoscaler schedules? Because app demand ofte

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