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.
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.
-
Add a new
vm_extension
with the propertyavailability_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 pickenv.bosh.group
as the availability set name.If the specified availability set does not exist, Azure CPI will create it automatically.
-
You can add the vm extension
availability-set-properties
intovm_extensions
of your instance group. Then the VMs of this instance group will be put into the availability set<availability-set-name>
.-
Download the ops file
use-availability-set.yml
to~/use-availability-set.yml
. -
Add the line
-o ~/use-availability-set.yml
to thebosh -n -d cf deploy
command indeploy_cloud_foundry.sh
.
-
-
Deploy your Cloud Foundry.
./deploy_cloud_foundry.sh