Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

apache load balancing problem

sticky session problem



11:05 pm on Jan 19, 2013 (gmt 0)

hi all i have apche load balancer httpd.conf

<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Allow from all
<Proxy balancer://mycluster>
# cluster member 1
BalancerMember http://165WEBVM1.test.edu.eg:80 route=165WEBVM1

# cluster member 2
BalancerMember http://165WEBVM2.test.edu.eg:80 route=165WEBVM2
ProxySet timeout=60

ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ lbmethod=byrequests stickysession=bytraffic
ProxyPassReverse / http://165WEBVM1.test.edu.eg/
ProxyPassReverse / http://165WEBVM2.test.edu.eg/

and in every node i have code like this

RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.165WEBVM1:.test.edu.eg]


RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.165WEBVM2:.test.edu.eg]

when view the []

[img836.imageshack.us ]

my problem is the data is shared in two server and i want it sticky per session
only one server should answer the request and the other server will serve another request

so any idea about That .

Featured Threads

Hot Threads This Week

Hot Threads This Month