Fault Domains, Update Domains and Availability Set In Azure Virtual Machine

 

In this article I will talk about Availabilty Set with Fault Domains and Update Domains

Availability Set:

  • Availability Sets ensure that the Azure virtual machines are deployed across multiple isolated hardware nodes in a cluster.
  • By deploying your vms across multiple hardware nodes Azure ensures that if hardware or software failure happens within Azure, only a sub-set of your virtual machines are impacted and your overall solution is safe and in working condition.
  • Availability set provides redundancy for your virtual machines.
  • Availability set spreads your virtual machines across multiple fault domains and update domains.
  • If you want to leverage Microsoft’s 99.95% SLA from Microsoft you must place your VMs inside availability set except your VMs are having premium storage.
Following are the 3 main scenarios which can cause your vms in Azure:
  • Unplanned Hardware Maintainance Events -  When Azure platform predicts that the hardware or any platform components associated to a physical machine is about to fail.
  • An unexpected downtime -- rarely occurs
  • Planned Maintenance events -- periodic updates made by Microsfot.
After both planned and unplanned updates your virtual machines and your operating system will be rebooted.
Each virtual machine in the Availability Set is assigned an Update domain and Fault domain by the Azure platform.

Fault Domain 

  • Fault domains define the group of virtual machines that share a common power source and network switch.
  • Each and every fault domain contains some racks and each rack contains virtual machine.
  • Each of these Fault domain shares a power supply and a network switch.
  • If there is a failure in the fault domain then all the resources in the fault domain become unavailable.
  • You should place your vms such a way that each fault domain get one web server, one database server and like that.
Consider a below mentioned diagram.

Here we have arranged web server vm and database server vm in such a way that if one Fault Domain fails, still your vms would be available.
 
    Disaster Recovery and High Availability for Azure Applications | Disaster  recovery, Business continuity, Disasters 
 
Update Domains
  • Virtual machines get update domains automatically once they are put inside availability set.
  • All virtual machines within that update domain will reboot together.
  • Update domains are used for patching of the virtual machines.
  • Only one update domain would be updated at the time 
How many Fault Domains and How many Update Domains we can have? 
  1. In Azure Service Management (ASM) portal, we have two Fault domains and 5 update domains.
  2. In Azure Resource Manager(ARM) portal, we have three Fault domains and 5 update domains but we can upgrade our update domains from 5 to 20.
  3. VMs are assigned sequentially in the update domains and fault domains.
  4. Consider the below mentioned table to understand how virtual machines would be placed within Fault Domains and Update Domains inside an availability set. 

Comments

Popular posts from this blog

Create a Public Load balancer

AWS Workspaces vs Azure Virtual Desktop

Configure Point-to-Site Connection