Clarification on the availability set, zone and LRS, ZRS discs

Fakri SLIMANE 66 Reputation points
2022-04-10T17:12:21.953+00:00

Hello,

I would like some clarification on the availability set, zone and LRS, ZRS discs.
I searched the documentation but couldn't find anything relevant to my situation.
I would like to know, when creating 3 VMs with the availability zone with a ZRS SSD, what is the advantage of this configuration?
When creating an LRS SSD, are there 3 copies of the disks to 1 in each data center fault domain or 3 copies in a single fault domain?
Is it a better configuration to create 3 VMs with the availability zone and LRS SSD disk rather than ZRS, because there will logically be 3 copies of the disks in 1 per each fault domain per each zone?

Thank you in advance for your answers.
Fakri.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,035 questions
0 comments No comments
{count} vote

Accepted answer
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2022-04-10T23:34:34.947+00:00

    Hello, @Fakri SLIMANE !

    Let's go over availability sets and availability zones, as well as LRS and ZRS storage redundancy. First, some references from the documentation:

    Availability Sets and Availability Zones
    An availability set is a small, relatively local group of redundancy and reliability that protects you from things like power loss to a server rack or updates that you might encounter in a single fault domain. You get a 99.95% SLA when you have an availability set with 2 or more VMs.
    An availability zone is a physically separate location (like a datacenter) within an Azure Region that provides redundancy and reliability that protects you from a disaster like a flood that might impact the whole datacenter.

    191598-image.png

    Locally-Redundant Storage (LRS) and Zone-Redundant Storage (ZRS)
    LRS copies your data synchronously three times within a physical location and is the least expensive option. This is not recommended for applications that require high availability or durability as there is a localized point of failure.
    ZRS copies your data synchronously three times across three Azure availability zones in the primary region. For applications that require high availability, the recommendation is to use ZRS in the primary region and replicate to a secondary region for extra availability.

    Specific Answers

    • What's the advantage of 3 VMs in ZRS? It gives you 99.9999999999% (12 9's) availability over a given year instead of the 11 9's you get with LRS, protects you from disasters that may impact an entire zone (but not an entire region where multiple zones are affected which is why geo-zone-redundant-storage or GZRS is offered).
    • Are the LRS SSDs in a single fault domain? No. Each virtual machine in your availability set is assigned an update domain and a fault domain. Each availability set can be configured with up to three fault domains and twenty update domains.
    • Is it better to use LRS or ZRS? This depends. You get more availability with ZRS but it also costs a bit more so you will have to determine what is best for your needs.
    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Fakri SLIMANE 66 Reputation points
    2022-04-11T13:40:38.19+00:00

    Hello,

    Thank you for your answer which is very clear to me.

    Wishing you a good day.
    Fakri.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.