超时Timeout

Timeout 设置指定客户端相关性在网络负载平衡群集中的配置更改之间保留 (单个或网络) 的秒数。The Timeout setting specifies the number of seconds for which the client affinity (either single or network) would be preserved across configuration changes in the Network Load Balancing cluster.

客户端关联用于将客户端请求关联到群集主机。Client affinity is used to associate client requests to cluster hosts.

默认情况下,所有网络请求在群集之间进行负载平衡,而不考虑其源。By default, all network requests are load-balanced across the cluster without respect to their source. 通过将来自同一 IP 地址的所有客户端请求定向到同一个群集主机来实现相关性。Affinity is implemented by directing all client requests from the same IP address to the same cluster host.

如果指定了扩展客户端相关性,则在网络连接终止后,它会在可配置的时间内保留连接的所有权。When extended client affinity is specified, then after a network connection terminates, it retains ownership of a connection for a configurable amount of time. 在超时期间来自同一客户端的请求将保证由同一群集主机选取。Requests coming in from the same client during the timeout period are guaranteed to be picked up by the same cluster host. 此时间到期后,将释放连接。After this time expires, the connection is released.

注意Note

  • 仅当 ClientAffinity 设置设置为或时,才会应用此 Single 设置 NetworkThis setting will be applied only if the ClientAffinity setting is set to Single or Network.

  • 要启用此网络负载平衡设置,必须在要安装的 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

Number_of_secondsNumber_of_seconds

指定扩展客户端相关性的秒数。Specifies a number of seconds for extended client affinity. 在此期间,将保证来自同一客户端的请求被同一群集主机选取。During this time, requests coming in from the same client are guaranteed to be picked up by the same cluster host.

Number_of_seconds 是整数值。Number_of_seconds is an integer value.

默认值为0,表示不使用扩展关联。The default value is 0, meaning extended affinity is not used. 所有网络请求在群集之间进行负载平衡,而不考虑其源。All network requests are load-balanced across the cluster without respect to their source.

有效的配置阶段Valid Configuration Passes

specializespecialize

父层次结构Parent Hierarchy

microsoft-networkloadbalancing | - 群集 | 群集 | Portrules | Portrule | 超时microsoft-windows-networkloadbalancing-core- | Clusters | Cluster | Portrules | Portrule | Timeout

应用于Applies To

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

XML 示例XML Example

下面的 XML 示例演示如何设置网络,以便确保同一客户端发出的请求被同一群集主机选取,直到超过15分钟的超时期限。The following XML example shows how to set the network so that requests from the same client are guaranteed to be picked up by the same cluster host until a timeout period of 15 minutes expires.

<Timeout>900</Timeout>

PortrulePortrule