Httpd BalancerMember: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
* [[Httpd_mod_proxy_Configuration#Directives|mod_proxy Configuration]] | * [[Httpd_mod_proxy_Configuration#Directives|mod_proxy Configuration]] | ||
* [[Httpd_mod_proxy_Concepts#Balancer_Workers|Balancer Workers]] | |||
=Overview= | =Overview= | ||
Adds a member to a load balancing group. | Adds a member to [[Httpd_mod_proxy_Concepts#Balancer_Workers|a load balancing group]]. It can be used with a <Proxy> container directive and can take any of the key-value pair parameters available to [[httpd ProxyPass|ProxyPass]]. | ||
BalancerMember can be used outside of a <Proxy> container, and in this case the "balancerurl" (see [[#Syntax|Syntax]] below) is required and it corresponds to the URL of the balancer defined in the ProxyPass directive. | |||
Trailing slashes should be typically removed from the URL of a BalancerMember. | |||
==loadfactor== | |||
One additional parameter available only to BalancerMember directives is "loadfactor". It is a number between 1 (default) and 100 that defines the weighted load to be applied to the member in question. | |||
=Syntax= | =Syntax= | ||
Line 16: | Line 25: | ||
BalancerMember [balancerurl] url [key=value [key=value ...]] | BalancerMember [balancerurl] url [key=value [key=value ...]] | ||
</pre> | </pre> | ||
=Example= | |||
<pre> | |||
ProxyPass "/example" "balancer://mycluster/" | |||
<Proxy balancer://mycluster> | |||
BalancerMember http://node1 | |||
BalancerMember http://node2 | |||
</Proxy> | |||
</pre> | |||
=Configuration Reference= | |||
<blockquote style="background-color: Gold; border: solid thin Goldenrod;"> | |||
:<br>All configuration parameters described in [[Httpd_ProxyPass#Connection_Pool_Configuration|ProxyPass Connection Pool Configuration]] apply to and can be used with BalancerMember declarations.<br><br> | |||
</blockquote> |
Latest revision as of 00:26, 3 January 2017
External
Internal
Overview
Adds a member to a load balancing group. It can be used with a <Proxy> container directive and can take any of the key-value pair parameters available to ProxyPass.
BalancerMember can be used outside of a <Proxy> container, and in this case the "balancerurl" (see Syntax below) is required and it corresponds to the URL of the balancer defined in the ProxyPass directive.
Trailing slashes should be typically removed from the URL of a BalancerMember.
loadfactor
One additional parameter available only to BalancerMember directives is "loadfactor". It is a number between 1 (default) and 100 that defines the weighted load to be applied to the member in question.
Syntax
BalancerMember [balancerurl] url [key=value [key=value ...]]
Example
ProxyPass "/example" "balancer://mycluster/" <Proxy balancer://mycluster> BalancerMember http://node1 BalancerMember http://node2 </Proxy>
Configuration Reference
All configuration parameters described in ProxyPass Connection Pool Configuration apply to and can be used with BalancerMember declarations.