ClientAffinityClientAffinity

ClientAffinity 指定网络多个请求在群集中定向的方式。ClientAffinity specifies how network multiple requests are directed in a cluster.

注意Note
要启用此网络负载平衡设置,必须在要安装的 Windows 映像中启用 NetworkLoadBalancingFullServer 包。To enable this Network Load Balancing setting, the NetworkLoadBalancingFullServer package must be enabled in the Windows image you are installing. 为此,请使用 Windows 系统映像管理器将 Microsoft-Windows-Foundation-Package 添加到你的应答文件,然后配置 NetworkLoadBalancingFullServer 包以启用该包。To do this, use Windows System Image Manager to add the Microsoft-Windows-Foundation-Package to your answer file, and then configure the NetworkLoadBalancingFullServer package to enable it. 有关添加和配置包的详细信息,请参阅 windows ADK (windows ADK) 技术参考For more information about adding and configuring packages, see the Windows Assessment and Deployment (Windows ADK) Technical Reference.

Values

单精度Single

指定网络负载平衡直接将来自同一客户端 IP 地址的多个请求定向到同一个群集主机。Specifies that Network Load Balancing direct multiple requests from the same client IP address to the same cluster host. 这是默认设置。This is the default setting.

网络Network

指定网络负载平衡将来自同一 TCP/IP C 类地址范围的多个请求定向到相同的群集主机。Specifies that Network Load Balancing direct multiple requests from the same TCP/IP Class C address range to the same cluster host.

None

指定来自同一客户端 IP 地址的多个连接可以由不同的群集主机处理 (不) 的客户端关联。Specifies that multiple connections from the same client IP address can be handled by different cluster hosts (no client affinity). 选择 " UDP " 或 "两者" 作为协议设置时,请避免使用 ""。Avoid using None when selecting UDP or Both for your protocol setting.

该字符串类型不支持空元素。This string type does not support empty elements. 请勿为该设置创建空值。Do not create an empty value for this setting.

有效的配置阶段Valid Configuration Passes

specializespecialize

父层次结构Parent Hierarchy

microsoft-networkloadbalancing | - 群集 | 群集 | Portrules | Portrule | ClientAffinitymicrosoft-windows-networkloadbalancing-core- | Clusters | Cluster | Portrules | Portrule | ClientAffinity

应用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 networkloadbalancing-For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-networkloadbalancing-core-.

XML 示例XML Example

以下 XML 输出显示了如何指定不同群集主机可处理来自同一客户端 IP 地址的多个连接。The following XML output shows how to specify that multiple connections from the same client IP address can be handled by different cluster hosts.

<ClientAffinity>None</ClientAffinity>

PortrulePortrule