Apache implements the Load balancer parameter "proxypass/balancer://proxy/", where "Proxypass" is the command that configures the virtual server, "/" represents the URL prefix for sending Web requests, such as: http://myserver/ Or HTTP://MYSERVER/NODE1, these URLs will conform to the above filter conditions, "balancer://proxy/" means to configure load balancing, proxy represents the load balancer name; Balancermember and its subsequent URLs represent the background server to be configured, where the URL is the URL of the background server request.
#Apache作为LoadBalance负载分别有三种不同的配置方式分别是: (1) configuration of polling load policy ProxyPass / balancer://proxy/ <proxy balancer://proxy> balancermember http:// 192.168.1.100:80/ balancermember http://192.168.1.101:80/ </Proxy> (2) configuration of weight allocation load policy proxypass / balancer://proxy/ <proxy balancer://proxy> balancermember http://192.168.1.100:80/ loadfactor=5# Weight value range between 1~100 any number BalancerMember http://192.168.1.101:80/ loadfactor=1 </Proxy> (3) Configuration of load balancing policy for weight request response proxypass / balancer://proxy/ lbmethod= Bytraffic <proxy balancer://proxy> balancermember http://192.168.1.100:80/ loadfactor=3 balancermember http:// 192.168.1.101:80/ loadfactor=1 &nBsp; </proxy> #Web服务器热备, when the current server is down, the server will be put into work ProxyPass / balancer://proxy/ <proxy balancer://proxy> balancermember http://192.168.1.100:80/ balancermember http:// 192.168.1.101:80/ status=+h </proxy>
This article is from the "Wu Shanqiang" blog, make sure to keep this source http://shanqiangwu.blog.51cto.com/8067564/1633019
Apache Load Balancer