From: Christophe Jaillet Date: Sat, 26 May 2018 08:11:26 +0000 (+0000) Subject: mod_proxy: add a link to the status flag table X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5dca628649b93e49ea026786c0f4f2a4f4f0c86a;p=apache mod_proxy: add a link to the status flag table mod_proxy_hcheck: add some hyperlinks, improve syntax highlight, add some missing trailing dot, be more consistent with other modules in the way 'Syntax' lines are displayed git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832294 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 23deb30d66..f679a99e7c 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1214,7 +1214,7 @@ ProxyPass "/example" "http://backend.example.com" max=20 ttl=120 retry=300 Route of the worker when used inside load balancer. The route is a value appended to session id. - status + status - Single letter value defining the initial status of this worker. @@ -1222,7 +1222,7 @@ ProxyPass "/example" "http://backend.example.com" max=20 ttl=120 retry=300 DWorker is disabled and will not accept any requests; will be automatically retried. SWorker is administratively stopped; will not accept requests - and will not be automatically retried + and will not be automatically retried. IWorker is in ignore-errors mode and will always be considered available. RWorker is a hot spare. For each worker in a given lbset that is unusable (draining, stopped, in error, etc.), a usable hot spare with the same lbset will be used in diff --git a/docs/manual/mod/mod_proxy_hcheck.xml b/docs/manual/mod/mod_proxy_hcheck.xml index 8984287a2e..5eec5204aa 100644 --- a/docs/manual/mod/mod_proxy_hcheck.xml +++ b/docs/manual/mod/mod_proxy_hcheck.xml @@ -40,10 +40,11 @@ Parameters

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

+ BalancerMember parameters, which are configured + in the standard way via ProxyPass:

-

A new BalancerMember status state (flag) is defined via this module: "C". +

A new BalancerMember status state (flag) + is defined via this module: "C". When the worker is taken offline due to failures as determined by the health check module, this flag is set, and can be seen (and modified) via the balancer-manager.

@@ -84,10 +85,12 @@ 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 + Name of template, created via ProxyHCTemplate, + to use for setting health check parameters for this worker hcexpr   - Name of expression, created via ProxyHCExpr, used to check response headers for health.
+ Name of expression, created via ProxyHCExpr, + used to check response headers for health.
If not used, 2xx thru 3xx status codes imply success
@@ -109,7 +112,7 @@ ProxyHCExpr in_maint {hc('body') !~ /Under maintenance/} <Proxy balancer://foo> BalancerMember http://www.example.com/ hcmethod=GET hcexpr=in_maint hcuri=/status.php - BalancerMember http://www2.example.com/ hcmethod=HEAD hcexpr=ok234 hcinterval=10 + BalancerMember http://www2.example.com/ hcmethod=HEAD hcexpr=ok234 hcinterval=10 BalancerMember http://www3.example.com/ hcmethod=TCP hcinterval=5 hcpasses=2 hcfails=3 BalancerMember http://www4.example.com/ </Proxy> @@ -135,8 +138,8 @@ not dynamically checked at all.

ProxyHCExpr -Creates a named condition expression to use to determine health of the backend based on its response. -ProxyHCExpr name {ap_expr expression} +Creates a named condition expression to use to determine health of the backend based on its response +ProxyHCExpr name {ap_expr expression} server configvirtual host FileInfo @@ -146,7 +149,7 @@ not dynamically checked at all.

for creating a named condition expression that checks the response headers of the backend server to determine its health. This named condition can then be assigned to balancer members via the hcexpr - parameter

+ parameter.

ProxyHCExpr: Allow for 2xx/3xx/4xx as passing @@ -191,7 +194,7 @@ ProxyPass "/apps" "balancer://foo" ProxyHCTemplate Creates a named template for setting various health check parameters -ProxyHCTemplate name parameter=setting <...> +ProxyHCTemplate name parameter=setting [...] server configvirtual host FileInfo @@ -200,7 +203,7 @@ ProxyPass "/apps" "balancer://foo"

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

+ parameter.

ProxyHCTemplate @@ -218,8 +221,8 @@ ProxyPass "/apps" "balancer://foo" ProxyHCTPsize -Sets the total server-wide size of the threadpool used for the health check workers. -ProxyHCTPsize <size> +Sets the total server-wide size of the threadpool used for the health check workers +ProxyHCTPsize size server config