Virtual Machine Scale set behavior on Zonal failure

Rajiv Bansal 186 Reputation points
2023-09-25T12:58:20.5666667+00:00

Hi,

I have created a Virtual Machine Scale Set with zone redundancy enabled (all three zones). Initial count of VM is 1. Auto scaling is enabled with minimum instance count as 1. In case the Zone hosting the VM goes down, will the VM be automatically created in another available zone. If yes, how long does it generally take - minutes or seconds.

Regards,

Rajiv

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
384 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tech-Hyd-1989 5,781 Reputation points
    2023-09-26T09:56:18.63+00:00

    Hello Rajiv Bansal

    Yes, if a zone goes down, the VMSS will automatically create a VM in another available zone. The amount of time it takes for this to happen depends on a number of factors, including the size and complexity of your VM, the current load on the VMSS, and the availability of resources in the other zones. However, it typically takes only a few minutes for a new VM to be created and provisioned.

    Here is a more detailed explanation of what happens when a zone goes down:

    1. Azure monitors the health of all zones and VMs in a VMSS.
    2. If a zone goes down, Azure will automatically detect the failure.
    3. Azure will then attempt to restart the VM in the failed zone.
    4. If Azure is unable to restart the VM in the failed zone, it will create a new VM in another available zone.
    5. Azure will then copy the state of the old VM to the new VM.
    6. Once the new VM is ready, Azure will switch traffic to the new VM.

    This process is typically very fast and transparent to the end user. However, there may be a brief period of downtime while the new VM is being created and provisioned.

    To minimize the impact of a zone failure, you can use the following best practices:

    • Use a zone redundant VMSS. This will ensure that your VMs are distributed across multiple zones, so that if one zone goes down, your VMs will still be available in other zones.
    • Use auto scaling. This will ensure that your VMSS automatically scales up to meet demand, even if a zone goes down.
    • Use a load balancer. This will distribute traffic across your VMs, so that if one VM goes down, traffic will be automatically routed to other VMs.

    I hope this helps! Let me know if you have any other questions.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.