If a back-end server will be unavailable for a long period, such as when a server is undergoing hardware repair, it is experiencing extended downtime, or when you have removed a server from the server pool, you can improve the performance of your FortiWeb appliance by disabling the back-end server, rather than allowing the server health check to continue to check for responsiveness. For details, see “config server-policy server-pool”. |
Variable | Description | Default |
<health-check_name> | Type the name of the server health check. The maximum length is 35 characters. To display the list of existing server health checks, type: edit ? | No default. |
type {http | ping | tcp} | Type either: • http — Send an HTTP/HTTPS request, and listen for an HTTP/HTTPS response code 200 OK and page content matching url-path <request_str> indicating responsiveness, or timeout indicating that the host is not responsive. The protocol used depends on whether you enable ssl {enable | disable} for that server in the server farm. • ping — Send ICMP type 8 (ECHO_REQUEST) and listen for either ICMP type 0 (ECHO_RESPONSE) indicating responsiveness, or timeout indicating that the host is not responsive. • tcp — Send TCP SYN and listen for either TCP SYN ACK indicating responsiveness, or timeout indicating that the host is not responsive. | ping |
interval <seconds_int> | Type the number of seconds between each server health check. The valid range is from 1 to 10 seconds. | 5 |
retry-times <retries_int> | Type the number of times, if any, a failed health check will be retried before the server is determined to be unresponsive. The valid range is from 1 to 10 retries. | 5 |
time-out <seconds_int> | Type the number of seconds which must pass after the server health check to indicate a failed health check. The valid range is from 1 to 10 seconds. | 10 |
regular <regex_pattern> | Type the content that must be present in the HTTP reply to indicate proper server connectivity. You can use a regular expression. The maximum length is 255 characters. This option appears only when type is http. | No default. |
trigger <trigger-policy_name> | Type the name of the trigger to apply when the health check detects a failed server (see “config log trigger-policy”). The maximum length is 35 characters. To display the list of existing trigger policies, type: set trigger ? | No default. |
url-path <request_str> | Type the URL, such as /index.html, that will be used in the HTTP/HTTPS GET request to verify the responsiveness of the server. If the web server successfully returns this URL, and its content matches your expression in regular <regex_pattern>, it is considered to be responsive. This setting is available when type is http. | No default. |