Apache Web Load Balancing howto
Setup Overview
A apache load balancer http://www.mydomain.com setup for redirect incoming request to two underlying web server www1.mydomain.com, www2.mydomain.com.
Hosts
Host#1 www1.mydomain.com: 192.168.1.1
Host#2 www2.mydomain.com: 192.168.1.2
The apache load balancer instance http://www.mydomain.com running on RedHat Cluster floating IP 192.168.1.3 or you can activate it on either one server using IP alias without using Cluster Suit.
Load balancer setup http://www.mydomain.com
| Parameters | Value | Description |
| ProxyPass | balancer://<NAME>/ | Define your cluster name |
| stickysession | BALANCEID | PHPSESSIONID | JSESSIONID | Define your preferred session sticky method, BALANCEID likely by source IP PHP|JSESSIONID require to add extra session header on the node member web server |
| nofailover | On | Off | If your web servers do not support session replication, turn this flag on in order to NOT failovering the current session to other member while the node is failed. |
| route | node name | |
| lbmethod | byrequests | bytraffic | bybusyness | |
| ProxyPreserveHost | On | Off | While application using mod_rewrite for friendly URL and it rely on the REQUEST_URI , set this On to preserve the URL request header to http://www.mydomain.com |
Chris 10:41 am on August 27, 2010 Permalink |
Thank for performa tuning server guide.