Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 28578 invoked from network); 11 Oct 2009 21:01:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Oct 2009 21:01:15 -0000 Received: (qmail 98032 invoked by uid 500); 11 Oct 2009 21:01:15 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 97936 invoked by uid 500); 11 Oct 2009 21:01:15 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 97926 invoked by uid 99); 11 Oct 2009 21:01:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Oct 2009 21:01:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Oct 2009 21:01:05 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6CF8223888EA; Sun, 11 Oct 2009 21:00:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r824151 - /httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml Date: Sun, 11 Oct 2009 21:00:14 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091011210014.6CF8223888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sf Date: Sun Oct 11 21:00:13 2009 New Revision: 824151 URL: http://svn.apache.org/viewvc?rev=824151&view=rev Log: Add example of load balancing with stickyness using mod_headers. PR: 46167 Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml Modified: httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml?rev=824151&r1=824150&r2=824151&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_proxy_balancer.xml Sun Oct 11 21:00:13 2009 @@ -67,7 +67,7 @@
- Example of a balancer configuration + Examples of a balancer configuration

Before we dive into the technical details, here's an example of how you might use mod_proxy_balancer to provide load balancing between two back-end servers: @@ -80,6 +80,22 @@ </Proxy>
ProxyPass /test balancer://mycluster/ + +

Another example of how to provide load balancing with stickyness + using mod_headers, even if the backend server does + not set a suitable session cookie: +

+ + + Header add Set-Cookie: "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" + env=BALANCER_ROUTE_CHANGED
+ <Proxy balancer://mycluster>
+ BalancerMember http://192.168.1.50:80 route=1
+ BalancerMember http://192.168.1.51:80 route=2
+ ProxySet stickysession=ROUTEID
+ </Proxy>
+ ProxyPass /test balancer://mycluster/ +