<-
Apache > HTTP Server > Documentation > Version 2.5 > Modules

Apache Module mod_proxy_hcheck

Available Languages:  en 

Description:Dynamic health check of Balancer members (workers) for mod_proxy
Status:Extension
Module Identifier:proxy_hcheck_module
Source File:mod_proxy_hcheck.c
Compatibility:Available in Apache 2.5.0 and later

Summary

This module provides for dynamic health checking of balancer members (workers). This can be enabled on a worker-by-worker basis. The health check is done independently of the actual reverse proxy requests.

This module requires the service of mod_watchdog.

Parameters

The health check mechanism is enabled via the use of additional BalancerMember parameters, which are configured in the standard way via ProxyPass:

Parameter Default Description
hcmethod None No dynamic health check performed. Choices are:
MethodDescription
NoneNo dynamic health checking done
TCPCheck that a socket to the backend can be created: e.g. "are you up"
OPTIONSSend an HTTP OPTIONS request to the backend
HEADSend an HTTP HEAD request to the backend
GETSend an HTTP GET request to the backend
CPINGAJP only Do CPING/CPONG check
PROVIDERName of provider to be used to check health
hcpasses 1 Number of successful health check tests before worker is re-enabled
hcfails 1 Number of failed health check tests before worker is disabled
hcinterval 30 Period of health checks in seconds (e.g. performed every 30 seconds)
hcuri   Additional URI to be appended to the worker URL for the health check.
hctemplate   Name of template, created via ProxyHCTemplate to use for setting health check parameters for this worker

Directives

See also

top

ProxyHCTemplate Directive

Description:Creates a named template for setting various health check parameters
Syntax:ProxyHCTemplate name parameter=setting <...>
Context:server config, virtual host
Status:Extension
Module:mod_proxy_hcheck

The ProxyHCTemplate directive allows for creating a named set (template) of health check parameters that can then be assigned to balancer members via the hctemplate parameter

ProxyHCTemplate

ProxyHCTemplate tcp5 hcmethod=tcp hcinterval=5
ProxyPass "/apps"     "http://backend.example.com/" hctemplate=tcp5

Available Languages:  en 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.