Azure负载均衡器会话持续时间 [英] Azure Load Balancer Session Persistance

查看:87
本文介绍了Azure负载均衡器会话持续时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个天蓝色的负载均衡器,在后端池中,我有2个Windows VM,在每个VM中我有相同的Web应用程序在负载分配中复制。我正在使用会话IP,所以我的浏览器或机器的请求总是转到vm2,我理解
它是由于会话持久性,但是当我在vm2中停止IIS并尝试浏览前端IP时,而不是将请求路由到vm1,它仍然将我的请求重定向到vm2。

I have an azure load balancer, in the backend pool , I have 2 windows VM, in each VM I have the same web application replicated, in load distribution. I am using session IP, so request from my browser or machine is always going to vm2, which I understand it is due to session persistence, but when I stop the IIS in vm2 and try to browse the front end IP, instead of routing the request to vm1 it still redirects my request to vm2.

请建议配置Azure LB的用法是什么,它始终从一台计算机获得响应。

Kindly suggest what is the usage of configuring Azure LB, It always getting response from one machine.

推荐答案

嗨Kirthi, 

Hi Kirt 

当您选择2元组时,这意味着负载分配基于您的源IP和目标IP。总是两者都与您的物理服务器在公共IP之后相同。因此,您最终会访问同一台服务器。 

When you choose 2 tuple, it means the load distribution is based out on your Source IP and Destination IP. Always both are going to be same as your physical server is behind a public IP. So you end up hitting the same server. 

但是当服务中断时,根据您使用的SKU,行为会发生变化。 

But when the service goes down, based on the SKU you use, the behavior changes. 

https: //docs.microsoft.com/en-us/azure/load-balancer/load-balancer-standard-overview

探测器关闭时,TCP连接仍将处于活动状态。因此,如果您正在测试,请确保使用新会话进行测试。 

The TCP connection will still be active when the probe goes down. So if you are testing, make sure you test with a new session. 

此致, 

Msrini

Msrini


这篇关于Azure负载均衡器会话持续时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆