Session Related issue while using Load Balancer

Kalyan Reddy 1 Reputation point
2022-06-14T14:56:08.677+00:00

Hello Guys,

I have a question on the Session Management.

When i am using Load Balancer if the users are logged in and one of the server is down so the users should still login and continue their tasks as other server is up.

Is their any Session Implementation can be done and what is the best approach. ?

For this scenario how can i achieve this.. Please help me .

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

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,471 Reputation points Microsoft Employee Moderator
    2022-06-14T19:52:51.197+00:00

    Hello @Kalyan Reddy , Welcome to the Microsoft Q&A forum.

    As per my understanding of the question you are using a Azure Load balancer and you have below requirement.

    When i am using Load Balancer if the users are logged in and one of the server is down so the users should still login and continue their tasks as other server is up.

    I think you can try the Hash Based Distribution model of Azure Load balancer . The hash is used to route traffic to healthy backend instances within the backend pool. The algorithm provides stickiness only within a transport session. When the client starts a new session from the same source IP, the source port changes and causes the traffic to go to a different backend instance. In order to configure hash based distribution, you must select session persistence to be None in the Azure portal. You can go through this documentation for configuring the distribution mode.

    Hope this helps! Please let me know if you have any additional questions I will be glad to continue with our discussion. Thank you!

    0 comments No comments

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.