ADC
感谢您提供反馈

这篇文章已经过机器翻译.放弃

服务的无监视器选项

如果您使用外部系统对服务执行运行状况检查,并且不希望 NetScaler 设备监视服务的运行状况,则可以为该服务设置无监视选项。如果您这样做,则设备不会发送探测器来检查服务的运行状况,而是将服务显示为 UP。即使服务关闭,设备也会继续按照负载平衡方法的规定将流量从客户端发送到服务。

当您设置无显示器选项时,显示器可能处于启用或禁用状态;当您删除无显示器选项时,显示器的先前状态将恢复。

创建服务时,可以为服务设置无监视选项。您还可以在现有服务上设置无监视器选项。

以下是设置无显示器选项的后果:

  • 如果您启用了无监视选项的服务出现故障,则设备会继续将该服务显示为 UP 并继续将流量转发到该服务。与服务的持续连接可能会使情况恶化。在这种情况下,或者如果显示为 UP 的许多服务实际上是关闭,系统可能会失败。为避免这种情况,当监视服务的外部机制将服务报告为 DOWN 时,将该服务从 NetScaler 配置中删除。
  • 如果在服务上配置无监视器选项,则无法在直接服务器返回 (DSR) 模式下配置负载平衡。对于现有服务,如果设置无监视器选项,则无法为该服务配置 DSR 模式。

使用 CLI 为新服务设置无监视选项

在命令提示符下,键入以下命令以创建带有运行状况监视器选项的服务,然后验证配置:

add service <serviceName> <IP | serverName> <serviceType> <port> -healthMonitor (YES|NO)

示例:

add service nomonsrvc 10.102.21.21 http 80 -healthMonitor no Done show service nomonsrvc nomonsrvc (10.102.21.21:80) - HTTP State: UP Last state change was at Mon Nov 15 22:41:29 2010 Time since last state change: 0 days, 00:00:00.970 Server Name: 10.102.21.21 Server ID : 0 Monitor Threshold : 0 ... Access Down Service: NO ... Down state flush: ENABLED Health monitoring: OFF 1 bound monitor: 1) Monitor Name: tcp-default State: UNKNOWN Weight: 1 Probes: 3 Failed [Total: 3 Current: 3] Last response: Probe skipped - Health monitoring is turned off. Response Time: N/A Done

使用 CLI 为现有服务设置无监视选项

在命令提示符处,键入以下命令以设置运行状况监视器选项:

set service <name> -healthMonitor (YES|NO)

示例:

By default, the state of a service and the state of the corresponding monitor are UP. >show service LB-SVC1 LB-SVC1 (10.102.29.5:80) - HTTP State: UP 1) Monitor Name: http-ecv State: UP Weight: 1 Probes: 99992 Failed [Total: 0 Current: 0] Last response: Success - Pattern found in response. Response Time: 3.76 millisec Done When the no-monitor option is set on a service, the state of the monitor changes to UNKNOWN. set service LB-SVC1 -healthMonitor NO Done show service LB-SVC1 LB-SVC1 (10.102.29.5:80) - HTTP State: UP Last state change was at Fri Dec 10 10:17:37 2010. Time since last state change: 5 days, 18:55:48.710 Health monitoring: OFF 1) Monitor Name: http-ecv State: UNKNOWN Weight: 1 Probes: 100028 Failed [Total: 0 Current: 0] Last response: Probe skipped - Health monitoring is turned off. Response Time: 0.0 millisec Done When the no-monitor option is removed, the earlier state of the monitor is resumed. > set service LB-SVC1 -healthMonitor YES Done >show service LB-SVC1 LB-SVC1 (10.102.29.5:80) - HTTP State: UP Last state change was at Fri Dec 10 10:17:37 2010 Time since last state change: 5 days, 18:57:47.880 1) Monitor Name: http-ecv State: UP Weight: 1 Probes: 100029 Failed [Total: 0 Current: 0] Last response: Success - Pattern found in response. Response Time: 5.690 millisec Done

使用 GUI 为服务设置无监视器选项

  1. 导航到 Traffic Management(流量管理)> Load Balancing(负载平衡)> Services(服务)。
  2. 打开服务,然后清除“运行状况监视”。
本内容的正式版本为英文版。部分 Cloud Software Group 文档内容采用了机器翻译,仅供您参考。Cloud Software Group 无法控制机器翻译的内容,这些内容可能包含错误、不准确或不合适的语言。对于从英文原文翻译成任何其他语言的内容的准确性、可靠性、适用性或正确性,或者您的 Cloud Software Group 产品或服务沿用了任何机器翻译的内容,我们均不作任何明示或暗示的保证,并且适用的最终用户许可协议或服务条款或者与 Cloud Software Group 签订的任何其他协议(产品或服务与已进行机器翻译的任何文档保持一致)下的任何保证均不适用。对于因使用机器翻译的内容而引起的任何损害或问题,Cloud Software Group 不承担任何责任。
服务的无监视器选项