Graceful shutdown of services
<name> command.
-
Adding a TROFS code or string to the monitor—Configure the server to send a specific code or string in response to a monitor probe.
-
Explicitly disable the service and:
-
Set a delay (in seconds).
-
Enable graceful shutdown.
-
Adding a TROFS Code or String
-
You can bind multiple monitors to a service, but must not TROFS-enable more than one of them.
-
You can convert a TROFS-enabled monitor to a monitor that is not TROFS-enabled, but not vice versa.
To configure a TROFS code or string in a monitor by using the command line interface
add lb monitor <monitor-name> HTTP -trofsCode <respcode>
add lb monitor <monitor-name> HTTP-ECV -trofsString <resp string>
add lb monitor <monitor-name> TCP-ECV -trofsString <resp string>
To modify the TROFS code or string by using the command line interface
set lb monitor <trofs monitorname> HTTP -trofscode <newcode>
set lb monitor <trofs monitorname> HTTP-ECV -trofsstring <new string>
set lb monitor <trofs monitorname> TCP-ECV -trofsstring <new string>
To configure a TROFS code or string in a monitor by using the configuration utility
-
Navigate to Traffic Management > Load Balancing > Monitors.
-
On the Monitors pane, click Add, and do one of the following:
-
Select Type as HTTP, and specify a TROFS Code.
-
Select Type as HTTP-ECV or TCP-ECV, and specify a TROFS String.
-
Disabling a Service
| State | Results |
|---|---|
| Graceful shutdown is enabled and a wait time is specified. | Service is shut down after the last of the current active client connections is served, even if the wait time has not expired. The appliance checks the status of the connections once every second. If the wait time expires, any open sessions are closed. |
| Graceful shutdown is disabled and a wait time is specified. | Service is shut down only after the wait time expires, even if all established connections are served before expiration. |
| Graceful shutdown is enabled and no wait time is specified. | Service is shut down only after the last of the previously established connections is served, regardless of the time taken to serve the last connection. |
| Graceful shutdown is disabled and no wait time is specified. | No graceful shutdown. Service is shut down immediately after the disable option is chosen or the disable command is issued. (The default wait time is zero seconds.) |
To configure graceful shutdown for a service by using the command line interface
disable service <name> [<delay>] [-graceFul (YES|NO)]
show service <name>
> disable service svc1 6000 -graceFul YES
Done
>show service svc1
svc1 (10.102.80.41:80) - HTTP
State: GOING OUT OF SERVICE (Graceful, Out Of Service in 5998 seconds)
Last state change was at Mon Nov 15 22:44:15 2010
Time since last state change: 0 days, 00:00:01.160
...
Down state flush: ENABLED
1 bound monitor:
1) Monitor Name: tcp-default
State: UP Weight: 1
Probes: 13898 Failed [Total: 0 Current: 0]
Last response: Probe skipped - live traffic to service.
Response Time: N/A
Done
>show service svc1
svc1 (10.102.80.41:80) - HTTP
State: OUT OF SERVICE
Last state change was at Mon Nov 15 22:44:19 2010
Time since last state change: 0 days, 00:00:03.250
Down state flush: ENABLED
1 bound monitor:
1) Monitor Name: tcp-default
State: UNKNOWN Weight: 1
Probes: 13898 Failed [Total: 0 Current: 0]
Last response: Probe skipped - service state OFS.
Response Time: N/A
Done
To configure graceful shutdown for a service by using the configuration utility
-
Navigate to Traffic Management > Load Balancing > Services.
-
Open the service, and from the Action list, click Disable. Enter a wait time, and select Graceful.