apache 实现备份服务器-热备份(hot standby),apachestandby
apache 实现备份服务器-热备份(hot standby),apachestandby
热备份(Hot Standby)
继上篇文章的介绍,只需将负载均衡配置服务器中的Banlancer里改改,将负载因子loadfactor去掉,换成以下代码段单样子。关键的地方在 status=+H 属性,就可以把某台服务器指定成备份服务器了
Httpd.conf代码- ProxyRequests Off
- <Proxy balancer://myBlancer>
- BalancerMember http://node-a.myserver.com:8080
- BalancerMember http://node-b.myserver.com:8080 status=+H
- </Proxy>
评论暂时关闭