我们在可用性集中有两个VM(经典),并通过端点定义了端口80上的负载均衡器。
每个VM有5个网站在运行,负载均衡器在服务器1和服务器2之间分配呼叫
当我致电其中一个网站时,例如www.mysite.com是否有可能以某种方式识别哪个服务器已经提供了请求?
是否可以强制负载均衡器ping特定服务器?当我们部署新版本的网站时,这可能非常有用,例如在服务器1上,我们想测试它是否适用于服务器1
感谢
答案 0 :(得分:2)
我会包含一个标题"服务器:"在我的回复中:rfc2616-sec14.。然后,您可以通过Chrome开发者工具(网络)或任何其他类似工具进行检查。
答案 1 :(得分:0)
At the end, I've figured out how this can be done. Hopefully, my answer will be useful to someone with a similar problem
-Identifying servers, as ArneRie has suggested, can be done by adding a custom HTTP header response - https://technet.microsoft.com/en-us/library/cc753133(v=ws.10).aspx
致电特定服务器