top of page
Writer's pictureALIF Consulting

Azure High Availability

Updated: Nov 13

Azure Fault Domains

A Fault Domain (FD) is a logical group of hardware in Azure that shares a common power source and network switch. By distributing VMs across multiple Fault Domains, Azure ensures that your application remains available even if a hardware failure occurs in one domain. This means that a failure in one FD won't affect the VMs in other FDs, enhancing your application's resilience.



Azure Update Domains

An Update Domain (UD) is a logical group of VMs that undergo maintenance simultaneously. Azure schedules updates one UD at a time to minimize service disruption. By spreading VMs across multiple Update Domains, you can ensure that your application remains available during planned maintenance.


Impact on VM Placement

When creating an Availability Set, specify the Fault Domains and Update Domains. Azure then automatically distributes your VMs across these domains. This strategic placement mitigates the risk of simultaneous failures or updates affecting all VMs, thus ensuring high availability and fault tolerance.


What is Azure Availability Set?

An Azure Availability Set is a logical grouping of VMs that allows Azure to understand how your application is built to provide redundancy and availability. Availability Sets ensure that your VMs are distributed across multiple Fault Domains and Update Domains, thus minimizing the impact of potential hardware failures and maintenance events.


Azure's high availability includes a spectrum of options, allowing progressively more confidence that an application will stay alive in the face of failure.

Below are four options for ensuring a Virtual Machine (VM) is highly available. As explained below, Azure’s high availability mechanisms, specifically Availability Zones, extend beyond VMs to additional Azure services.

  • Single VM—running a Virtual Machine (VM) on Azure with no replication.

  • Availability Sets—running a VM with one or more replicated copies on separate hardware within the same Availability Zone, providing resiliency against machine failure.

  • Availability Zones—running a VM with one or more replicated copies on different Availability Zones, providing resiliency against data centre failure.

  • Region Pairs— running a VM with one or more replicated copies on different Azure Regions (but always staying within the same geopolitical boundary, typically meaning the same country), protecting against natural disasters and large-scale outages.


Azure guarantees progressively higher uptime in its Service Level Agreements (SLA), depending on the availability option you choose:

  • 90% uptime for on single-instance VMs with premium storage

  • 95% uptime for VM deployed in an Availability Set (AS)

  • 99% uptime for VM deployed across two Availability Zones (AZ)


An availability set is a concept within a data centre consisting of multiple fault domains and update domains. In fact, when you create an availability set, you can specify how many fault domains and update domains you want in that availability set.


Azure High Availability

An Azure Availability Zone is a unique physical location within an Azure region. Each Availability Zone is made up of one or more data centres with independent power, cooling, and networking.



Azure Region

Benefits of Using Azure Availability Sets

High Availability

High availability means your application remains accessible even during unexpected events like hardware failures or maintenance activities. By using Availability Sets, you can ensure that your VMs are spread across different Fault and Update Domains. This distribution means that if one domain experiences an issue, the VMs in other domains continue running, keeping your application available to users.


Fault Tolerance

Fault tolerance is the ability of your application to continue operating despite failures. Azure Availability Sets enhance fault tolerance by distributing your VMs across multiple Fault and Update Domains. This setup ensures that failures or maintenance in one domain do not impact all your VMs simultaneously, reducing the risk of complete downtime for your application.


Cost-Effective

Using Availability Sets is a cost-effective way to achieve high availability and fault tolerance without investing in additional infrastructure. By leveraging Azure's built-in redundancy features, you can maintain your application's availability without the need for costly hardware or complex setups. This approach allows you to optimize costs while still ensuring reliability.


Best Practices for Using Azure Availability Sets

Use Multiple Faults and Update Domains

When configuring an Availability Set, always use the maximum number of Fault and Update Domains available. This maximizes your application's resilience to hardware failures and maintenance events. For example, if Azure offers three Fault Domains and five Update Domains, configure your Availability Set to use all of them. This ensures optimal distribution of your VMs, enhancing your application's availability.


Combine with Load Balancers

Integrating Azure Load Balancers with your Availability Sets can further improve reliability. Load Balancers distribute incoming traffic across your VMs, ensuring that no single VM is overwhelmed. Combining Load Balancers with Availability Sets ensures that traffic is always directed to healthy VMs, even during maintenance or failures. This setup enhances both performance and availability.


Regularly Update Applications

Keeping your applications up-to-date is crucial for maintaining security and performance. Regular updates ensure that your applications benefit from the latest features, bug fixes, and security patches. When using Availability Sets, schedule updates during low-traffic periods and ensure that updates are applied one Update Domain at a time. This practice minimizes the impact on your application's availability during maintenance activities.




49 views0 comments

Opmerkingen


bottom of page