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)

New User

joined:Jan 19, 2013
posts: 1
votes: 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 .

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members