response-code-rules

When a response of a client-initiated request is returned from the junctioned server, the optional response-code-rules configuration entry defines the rules used to determine from the HTTP status code of the responses Whether the junctioned Web server is in a healthy or an unhealthy state.

response-code-rules = list

Description

The optional response-code-rules configuration entry defines the rules used to determine whether HTTP responses indicate a healthy or an unhealthy junctioned Web server.

This configuration entry will apply to all requests if the ping-response-code-rules configuration entry has not been set. Otherwise, it will only apply to all client-initiated requests.

If this configuration entry is empty, and a ping-response-code-rules configuration has been specified, the response code received from client-initiated requests will not impact the health of the junction.

The configuration entry contains a space separated list of rules. Each rule has the format: [+|-]<code> (e.g. -50?)

where:

The HTTP response codes are evaluated against each rule in sequence until a match is found. The corresponding code (+|-) determines whether the junctioned Web server is healthy or not. If the response code matches no configured rules, the junctioned Web server is considered healthy.

We can customize this configuration item for a particular junction by adding the adjusted configuration item to a [junction:{junction_name}] stanza, where {junction_name} refers to the junction point for a standard junction (including the leading / character) or the virtual host label for a virtual host junction.

Options

Usage:

This stanza entry is optional.

Default: None.

Example:

response-code-rules = +2?? -*

Parent topic: [junction] stanza