What is host name affinity in Server Farm -> Server Affinity on IIS 8 Web Farm?

扶醉桌前 提交于 2019-12-13 01:57:50

问题


The problem is I have 2 IIS Servers working as Web Farm and currently we don't use Client Affinity or Host Name affinity. I just need to know what is the benefits of using Host Name affinity and when we use this type of affinity between Server and Client. I already have information about Client Affinity I just need to get more information about Host Name Affinity and when to use it. Thank you guys for help in advance.


回答1:


Application Request Routing (ARR) provides client and host name affinity features that enable you to provide stickiness between clients and servers. Host name affinity lets you map a host name to a server so that all requests for the same host name are routed to the same server. Client affinity is used to map a client to an application server behind ARR for the duration of the client session. A load balance algorithm is used for the first request from the client. Subsequent requests from the same client are routed to the application server for the duration of the client session. noteNote

You can use client affinity and host name affinity together. When both are configured, if a host name is affinitized to multiple servers, client affinity is applied within the allocated and host name affinitized application servers.

^From: Technet

Using host name affinity you can control how many servers a host name (e.g. example.com) is allowed to be served on simultaneously (e.g. 2) as well as see which server(s) it is currently being routed to (e.g. server1) in the routing table and release routes to have the next request go back into the load balancing algorithm you have selected (e.g. server1 or server2).



来源:https://stackoverflow.com/questions/24158591/what-is-host-name-affinity-in-server-farm-server-affinity-on-iis-8-web-farm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!