Monitoring services in a cluster using path monitoring
show service <service name> and show serviceGroup <service group name> command.
How path monitoring works
-
S = service state advertised by the service owner
-
P = path monitoring state of each node
| Parameter | Path monitoring state | Service state |
|---|---|---|
| pathMonitorIndv = NO; Is the default configuration. | P1 = DOWN | S1 = DOWN |
| P2 = UP | S1 = DOWN | |
| P3 = UP | S1 = DOWN | |
| pathMonitorIndv = YES | P1 = DOWN | S1 = DOWN |
| P2 = UP | S1 = UP | |
| P3 = UP | S1 = UP |
Configuring path monitoring
To enable path monitoring for services/service groups by using the CLI
add service <service name> <IP address> <service type> <port> [-pathMonitor <YES | NO>] [-pathMonitorIndv <YES | NO>]
add servicegroup <servicegroup name> <service type> [-pathMonitor <YES | NO>] [-pathMonitorIndv <YES | NO>]
add service s1 1.1.1.1 HTTP 80 -pathMonitor YES
add servicegroup sg_1 HTTP -pathMonitor YES
add service s1 1.1.1.1 HTTP 80 -pathMonitor YES -pathMonitorIndv YES
add servicegroup sg_1 HTTP -pathMonitor YES -pathMonitorIndv YES
set service <service name> [-pathMonitor <YES | NO>] [-pathMonitorIndv <YES | NO>]
set servicegroup <servicegroup name> [-pathMonitor <YES | NO>] [-pathMonitorIndv <YES | NO>]
set service s1 -pathMonitor YES
set servicegroup sg_1 -pathMonitor YES
set service s1 -pathMonitorIndv YES
set servicegroup sg_1 -pathMonitorIndv NO
To enable path monitoring for services/service groups by using the GUI
-
Navigate to Traffic Management > Load Balancing > Services.For service groups, navigate to Traffic Management > Load Balancing > Service Groups.
-
In the Services/Service Groups pane, select a service/service group from the list, and then double-click to open it.
-
On the Service Settings tab, click Edit.
-
Select Path Monitoring.
-
Select Individual Path Monitoring, if you want to apply it, and then click OK.