首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > Apache >

记个Apache汉语言手册地址(负载均衡配置及会话保持配置说明)

2012-11-20 
记个Apache中文手册地址(负载均衡配置及会话保持配置说明)网上有一个Apache中文手册,因不常用,地址经常忘

记个Apache中文手册地址(负载均衡配置及会话保持配置说明)

网上有一个Apache中文手册,因不常用,地址经常忘记,所以在此记一下:

http://help.114la.com/Apache2/index.html

?

另外,有朋友问Apache 做负载均衡(LoadBalancer),怎么实现会话保持,在手册里找到了说明,顺手抄抄书:

?

ParameterDefaultDescriptionlbmethod-Balancer load-balance method. Select the load-balancing scheduler method to use. Either byrequests, to perform weighted request counting or bytraffic, to perform weighted traffic byte count balancing. Default is byrequests. stickysession-Balancer sticky session name. The value is usually set to something like JSESSIONIDPHPSESSIONID, and it depends on the backend application server that support sessions. nofailoverOffIf set to On the session will break if the worker is in error state or disabled. Set this value to On if backend servers do not support session replication. timeout0Balancer timeout in seconds. If set this will be the maximum time to wait for a free worker. Default is not to wait. maxattempts1Maximum number of failover attempts before giving up.

ProxyPass /special-area http://special.example.com/ smax=5 max=10
ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On
<Proxy balancer://mycluster>
BalancerMember http://1.2.3.4:8009
BalancerMember http://1.2.3.5:8009 smax=10
# Less powerful server, don't send as many requests there
BalancerMember http://1.2.3.6:8009 smax=1 loadfactor=20
</Proxy>

When used inside a <Location> section, the first argument is omitted and the local directory is obtained from the <Location>.

If you require a more flexible reverse-proxy configuration, see the RewriteRule directive with the [P] flag.

?

?

?

热点排行