Azure负载均衡器 [英] Azure load balancer

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

问题描述

规划部署天蓝色负载均衡器 使用2 azure vm来公开https请求,当请求到负载均衡器时,寻找解决方案一个vm活动,而其他应该是被动的。 2 vm应该只有第1个vm才会激活。

Planning for deploying azure load balancer  With 2 azure vm for https request from public , looking for solution one vm active when the request comes load balancer and other should be passive . The 2 vm should get active only 1st vm fails.

推荐答案

 

Hi, 

当LB发送探测请求时,您可以通过使第二个VM响应非200状态代码来实现这一点。 

You can make that happen by making the 2nd VM to respond with non 200 Status code when LB sends the probe request. 

一旦你的第一个虚拟机出现故障,你需要开始响应200状态代码,以便第二个虚拟机接收请求。 

Once your 1st VM goes down, then you need to start responding with 200 status code, so that 2nd VM takes the request. 

问候, 

Msrini


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

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