Saturday, December 21, 2024
HomeCloudAzureAvailability set and Availability zone in Azure

Availability set and Availability zone in Azure

Azure Availability Set and Availability Zone, both always confuse us, even both designed to keep the application high available from single point of failure from various components or the complete zone. Again, one more major thing we should aware we can choose either one only,

Now let’s see about each separately more details about both the services.

Availability set

When you deploy the virtual machine in Azure, it can be spanned across multiple servers in the Azure back-end. But there could also be a chance where your VMs might place on the same physical server as well. Assume that you have an application that hosted on more than two VMs with a load balancer. By chance, if the VM’s are getting into the same physical rack or same physical server, it’s a single point of failure. To overcome this issue, Azure has an option called – Availability set.

An Availability Set is a logical grouping capability for isolating VM resources from each other when they’re deployed. Azure ensures that the VMs you place within an Availability Set run across multiple physical servers, compute racks, storage units, and network switches. Each rack gets its own power supply units as well. This increases service availability from 99.9% to 99.95% when you deploy more than one VM.

Availability Set uses two key methods to keep the VM’s in the different physical computing environments. When you add the virtual machines in the same availability set, it will automatically distribute the VMs to different Update domain and fault domains to eliminate the single point of failure within the datacenter.

There are three scenarios that can lead to a virtual machine in Azure being impacted:

  • planned maintenance.
  • unplanned hardware maintenance.
  • unexpected downtime.

What is the fault domain?

Each underpinning physical resource will be tagged to a specific fault domain in the Azure back-end. Each fault domain might share the same rack, network, and power source. When you add more than one VM to the availability set, the Azure platform ensures that VM’s are spread across different fault domains.

Azure offers a only maximum of 2 to 3 fault domains based on the region. If you have more than 3 application servers, you rotate among these three FD. The fault domain can protect your applications in the following scenarios.

  • unplanned hardware maintenance.
  • unexpected downtime.

What is the Update domain?

Like the fault domain, each physical server is tagged with specific update domains. Azure performs maintenance on only one specific update domain at the time. This could be updating the host machines with the latest patches or fixing the vulnerability.

You get the default fault domain as 5 and it can be increased up to 20.

  • Virtual machines get update domains automatically once they are put inside the availability set.
  • All virtual machines within that update domain will reboot together.
  • Only one update domain would be updated at the time.

Scenario:

Question: If the solution requires 5 application VM’s to be deployed in Azure and geo-redundant DBaaS is used as DB, how to keep the application high available?

Answer: Place all the 5 VM’s in an availability set and ensure that VM’s are spread across fault domains and update domains just like below.

VMFault Domain
(3 Fault domains)
Update Domain
(5 Update domains)
VM 100
VM 211
VM 322
VM 403
VM 514

Availability Zones

Microsoft Azure offers multiple high availability options to meet customer requirements. Such options really help to build an application with higher SLA levels for their customers. Azure’s availability zone can help you achieve your organization’s reliability goals.

Availability Zones are unique physical locations with independent power, network, and cooling. Each Availability Zone is comprised of one or more datacenters. Availability Zones are tolerant to datacenter failures through redundancy and logical isolation of services.

Availability zone – Supported Azure Regions

Find all availability zone details on https://docs.microsoft.com/en-us/azure/availability-zones/az-region

Quick Summary:

Availability Sets

  1. An unplanned event wherein the underlying infrastructure fails unexpectedly. The failures could be attributed to network failures, local disk failures or even rack failures.
  2. Planned maintenance events, wherein Microsoft needs to make planned updates to the underlying physical environment. In such cases, a reboot might be required on your virtual machine.

You can increase the availability of your application by making use of availability sets. Each virtual machine that is assigned to the availability set is assigned a separate fault and update domain.

Fault domains are used to define the group of virtual machines that share a common source and network switch. You can have up to 3 fault domains.

Update domains are used to group virtual machines and physical hardware that can be rebooted at the same time. You can have up to 20 update domains.

Availability Zone

  • This features help provides better availability for your application by protecting them from datacenter failures.
  • Each Availability zone is a unique physical location in an Azure region.
  • Each zone comprises of one or more data centers that has independent power, cooling, and networking
  • Hence the physical separation of the Availability Zones helps protect applications against data center failures
  • Using Availability Zones, you can be guaranteed an availability of 99.99% for your virtual machines. You need to ensure that you have 2 or more virtual machines running across multiple availability zones

Please note: Both the methods are only useful if your application can be hosted on more than 2 or more virtual machines.

RELATED ARTICLES
- Advertisment -

Most Popular

Recent Comments