Skip to content

Latest commit

 

History

History

deploy-cloudfoundry-with-availability-sets

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Deploy Cloud Foundry using availability sets

NOTE: CPI v33+ supports availability zones, which is a different concept than availability sets. If you want to try it, please go to the doc.

This document provides additional configuration options for high availability and performance of your Cloud Foundry infrastructure. You can configure these advanced settings at your initial deployment, or at ongoing deployment.

For basic Cloud Foundry deployment steps, please check the section Get Started.

Why

For high availability of your Cloud Foundry infrastructure, you can utilize Availability Set for each of your resource pools.

There are two types of Microsoft Azure platform events that can affect the availability of your virtual machines: planned maintenance and unplanned maintenance. To reduce the impact of downtime due to one or more of these events, we recommend configuring multiple virtual machines in an Availability Set for redundancy.

How

  1. Add a new vm_extension with the property availability_set into your cloud config.

    vm_extensions:
    - name: availability-set-properties
      cloud_properties:
        availability_set: <availability-set-name>
    

    if availability_set is not specified, Azure CPI will pick env.bosh.group as the availability set name.

    If the specified availability set does not exist, Azure CPI will create it automatically.

  2. You can add the vm extension availability-set-properties into vm_extensions of your instance group. Then the VMs of this instance group will be put into the availability set <availability-set-name>.

    1. Download the ops file use-availability-set.yml to ~/use-availability-set.yml.

    2. Add the line -o ~/use-availability-set.yml to the bosh -n -d cf deploy command in deploy_cloud_foundry.sh.

  3. Deploy your Cloud Foundry.

    ./deploy_cloud_foundry.sh