[AlwaysOn] 创建SQL Server高可用性组T-SQL语法:HEALTH_CHECK_TIMEOUT参数

HEALTH_CHECK_TIMEOUT = milliseconds

指定在WSFC群集假定服务器实例运行缓慢或挂起之前,sp_server_diagnostics系统存储过程返回服务器运行状况信息的等待时间(毫秒)。Specifies the wait time (in milliseconds) for the sp_server_diagnostics system stored procedure to return server-health information before the WSFC cluster assumes that the server instance is slow or hung. 健康检查超时(HEALTH_CHECK_TIMEOUT)在组级别设置,但仅与配置为自动故障转移的同步提交可用性模式(AVAILABILITY_MODE = SYNCHRONOUS_COMMIT)的可用性副本相关。HEALTH_CHECK_TIMEOUT is set at the group level but is relevant only on availability replicas that are configured for synchronous-commit availability mode with automatic failover (AVAILABILITY_MODE = SYNCHRONOUS_COMMIT). 此外,只有将主副本和辅助副本都配置为自动故障转移模式(FAILOVER_MODE = AUTOMATIC),并且辅助副本当前与主副本同步时,运行状况检查超时才能触发自动故障转移。Furthermore, a health-check timeout can trigger an automatic failover only if both the primary and secondary replicas are configured for automatic failover mode (FAILOVER_MODE = AUTOMATIC) and the secondary replica is currently synchronized with the primary replica.

默认的健康检查超时(HEALTH_CHECK_TIMEOUT)值为30000毫秒(30秒)。The default HEALTH_CHECK_TIMEOUT value is 30000 milliseconds (30 seconds). 最小值为15000毫秒(15秒),最大值为4294967295毫秒。The minimum value is 15000 milliseconds (15 seconds), and the maximum value is 4294967295 milliseconds.

重要 Important

sp_server_diagnostics 不在数据库级别执行运行状况检查。 sp_server_diagnostics does not perform health checks at the database level.


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/81227/viewspace-2653477/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/81227/viewspace-2653477/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值