httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "charlycr74@yahoo.com.ar" <charlyc...@yahoo.com.ar>
Subject [users@httpd] stickysession on mod_proxy_balancer
Date Wed, 28 Nov 2007 20:42:12 GMT
Hi,



I'm trying to setup mod_proxy_balancer on a server and I couldn't get the "Sticky Session"
working , this is my configuration:



----------------------------------------------------------------------------------------------------------------------------------

ProxyPass / balancer://appcluster/ lbmethod=byrequests stickysession=SESSIONID

ProxyPassReverse / balancer://appcluster/



<Proxy balancer://appcluster>

   BalancerMember http://10.1.1.100:8080

   BalancerMember http://10.1.1.101:8080

   BalancerMember http://10.1.1.102:8080

   BalancerMember http://10.1.1.103:8080

   BalancerMember http://10.1.1.104:8080

</Proxy>

----------------------------------------------------------------------------------------------------------------------------------



According to the logs, apache gets the session ID, but every two
requests it redirects me to a different server. As I know, the "Sticky
session" is used to keep the sessions going to the same server, but for
me is not working. Below it is the part of the logs where you can see
that it is sending my requests to differents servers.



The backend servers are running tomcat.




Please, I would need to know if there is something wrong or missing on
my configuration and if you need something else for the httpd.conf
file, let me know.



Thanks,



Charly









[Wed Nov 28 19:35:31 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/home.do

[Wed Nov 28 19:35:31 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value 2BDF0DF5AE933B757F0CD2DDA83F5E43 for
stickysession SESSIONID

[Wed Nov 28 19:35:31 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:35:31 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.100:8080)
rewritten to http://10.1.1.100:8080/home.do

[Wed Nov 28 19:35:41 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/step1.do

[Wed Nov 28 19:35:41 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value 2BDF0DF5AE933B757F0CD2DDA83F5E43 for
stickysession SESSIONID

[Wed Nov 28 19:35:41 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:35:41 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.101:8080)
rewritten to http://10.1.1.101:8080/step1.do

[Wed Nov 28 19:35:47 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/step2.do

[Wed Nov 28 19:35:47 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value D9E7F87B35D7AAE7576FB74E961506E4 for
stickysession SESSIONID

[Wed Nov 28 19:35:47 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:35:47 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.102:8080)
rewritten to http://10.1.1.102:8080/step2.do

[Wed Nov 28 19:35:52 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/step3.do

[Wed Nov 28 19:35:52 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value F0563867F352A5E41311F2E8C704B48A for
stickysession SESSIONID

[Wed Nov 28 19:35:52 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:35:52 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.102:8080)
rewritten to http://10.1.1.102:8080/step3.do

[Wed Nov 28 19:35:58 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/step4.do

[Wed Nov 28 19:35:58 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value 4B5DA88E4BABF193F8E49576AC909555 for
stickysession SESSIONID

[Wed Nov 28 19:35:58 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:35:58 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.103:8080)
rewritten to http://10.1.1.103:8080/stop4.do

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/adr/home.do

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value 1BFF6946F00AAF5D11CF3BDCD995E4B8 for
stickysession SESSIONID

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.104:8080)
rewritten to http://10.1.1.104:8080/home.do

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: canonicalising
URL //appcluster/test.jsp

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(258): proxy:
BALANCER: Found value 1BFF6946F00AAF5D11CF3BDCD995E4B8 for
stickysession SESSIONID

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(950): proxy: Entering byrequests for
BALANCER (balancer://appcluster)

[Wed Nov 28 19:36:00 2007] [debug] mod_proxy_balancer.c(517): proxy:
BALANCER (balancer://appcluster) worker (http://10.1.1.104:8080)
rewritten to http://10.1.1.104:8080/test.jsp








      Los referentes más importantes en compra/ venta de autos se juntaron:
Demotores y Yahoo!
Ahora comprar o vender tu auto es más fácil. Vistá ar.autos.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message