How can I configure a standard Load Balancer that has two Linux Machine behind it in the backend pool, such that traffic only goes to node B when node A is down.

Sandeep Goyal 40 Reputation points
2024-02-22T10:15:58.6+00:00

We have two Linux machines A and B behind Azure standard LB, We want to achieve that LB forwards all traffic to node A until it is UP and if it goes down only then forwards traffic to node B. How it can be achieved

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
404 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 23,031 Reputation points Microsoft Employee
    2024-02-28T01:05:18.6133333+00:00

    @Sandeep Goyal

    Thank you for reaching out and apologies for the delay here.

    I understand you have 2 VMs behind an Azure Load balancer and you wish to forward all traffic to VM A until it is up and if it goes down only then forwards traffic to VM B.

    AFAIK this is not possible to implement using Azure load balancer as it currently does not support active/passive or weighted load balancing. It will help if you could upvote this features request on the feedback portal.

    Although depending on your requirement you can explore the option of using Azure Traffic Manager along with Azure Load Balancer. Something similar to the architecture discussed here for Multitier application.

    You can also explore additional load balancing options available in Azure.

    Hope this helps. Please let me know if you have any questions. Thank you!

    0 comments No comments