ADC

服务的无显示器选项

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

当您设置无监视器选项时,监视器可以处于 ENABLED 或 DISABLED 状态,当您删除无监视器选项时,监视器的早期状态将恢复。

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

以下是设置无监视器选项的后果:

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

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

在命令提示符下,键入以下命令以使用运行状况监视器选项创建服务,并验证配置:

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

示例:

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
<!--NeedCopy-->

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

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

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

示例:

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
<!--NeedCopy-->

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

  1. 导航到 Traffic Management(流量管理)> Load Balancing(负载平衡)> Services(服务)。
  2. 打开服务,并清除运行状况监视。
服务的无显示器选项