Welcome to WebmasterWorld Guest from 54.167.155.147

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
</Location>
<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
</Proxy>

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
node1


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




node2


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




when view the [192.168.19.24...]

[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 .
Thanks