logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Load balancing syntax.
Author
olivier_giorgi



Joined: 13 Feb 2008
Posts: 2

PostPosted: Tue 26 Feb '08 9:07    Post subject: Load balancing syntax. Reply with quote

Hello to all,

1) With Apache 2.2.4 the following statefull load balancing syntax is correct:
SetEnvIf ^Cookie$ "MYCOOKIE=([^ ;]*)" MYCOOKIE=$1
Header add Set-Cookie "MYCOOKIE=%{UNIQUE_ID}e.%{BALANCER_WORKER_ROUTE}e; path=/" env=!MYCOOKIE

ProxyPass /RootURI balancer://Cluster stickysession=MYCOOKIE nofailover=Off
<Proxy balancer://Cluster >
BalancerMember http://Server1:Port1/RootURI route=host1
BalancerMember http://Server2:Port2/RootURI route=host2
</Proxy>
ProxyPassReverse http://Server1:Port1/RootURI
ProxyPassReverse http://Server2:Port2/RootURI


2) Please, could you explain me why with Apache 2.2.4 the following statefull syntax is wrong:

ProxyPass /RootURI balancer://Cluster stickysession=JSESSIONID nofailover=Off
<Proxy balancer://Cluster >
BalancerMember http://Server1:Port1/RootURI
BalancerMember http://Server2:Port2/RootURI
</Proxy>

Apache 2.2.4 does not take into account the parameter JSESSIONID and the observed behavior is the same as a stateless load balancing.

Thanks in advance & have a good day.
Best regards Olivier.
Back to top


Reply to topic   Topic: Load balancing syntax. View previous topic :: View next topic
Post new topic   Forum Index -> Apache