mod_proxy_balancer stickysession

mod_proxy_balancer stickysession

am 25.11.2008 15:00:31 von Ryan Fox

--Boundary_(ID_X+8J2ng306Z8/rj7/tNHEg)
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT

Greetings,

I'm having a problem getting mod_proxy_balancer sticky sessions to
work. My back-end real servers are adding a cookie with
"BALANCEID=jics.ceyx; path=/; domain=.findlay.edu" (or jics.sterope,
depending). mod_proxy_balancer should route to the appropriate server
based on this value. My error_log excerpted below shows an initial
client request at 08:36:41, before any cookie is set. ceyx is selected,
serves the request, sets the cookie, all is well. A reload at 08:36:52
shows mod_proxy_balancer acknowledging the cookie, saying it should
route to ceyx, and then disregarding it and sending the request to
sterope. :-/

Why does apache hate me so? :) I'm running Apache/2.2.8 binary package
on OpenBSD x86.
Thanks,
Ryan


BalancerMember https://ceyx.findlay.edu:443 retry=600 route=ceyx
BalancerMember https://sterope.findlay.edu:443 retry=600
route=sterope

ProxyPass / balancer://jics/ stickysession=BALANCEID


[Tue Nov 25 08:36:41 2008] [debug] mod_proxy_balancer.c(42): proxy:
BALANCER: canonicalising URL //jics/ics/
[Tue Nov 25 08:36:41 2008] [debug] mod_proxy_balancer.c(274): proxy:
BALANCER: Found value (null) for stickysession BALANCEID
[Tue Nov 25 08:36:41 2008] [debug] mod_proxy_balancer.c(914): proxy:
Entering byrequests for BALANCER (balancer://jics)
[Tue Nov 25 08:36:41 2008] [debug] mod_proxy.c(849): Running scheme
balancer handler (attempt 0)
[Tue Nov 25 08:36:41 2008] [debug] mod_proxy_http.c(1822): proxy: HTTP:
serving URL https://ceyx.findlay.edu/ics/
[Tue Nov 25 08:36:41 2008] [debug] proxy_util.c(1855): proxy: HTTPS: has
acquired connection for (ceyx.findlay.edu)
[Tue Nov 25 08:36:41 2008] [debug] proxy_util.c(1916): proxy: connecting
https://ceyx.findlay.edu/ics/ to ceyx.findlay.edu:443
[Tue Nov 25 08:36:41 2008] [debug] proxy_util.c(2015): proxy: connected
/ics/ to ceyx.findlay.edu:443
[Tue Nov 25 08:36:41 2008] [debug] proxy_util.c(2172): proxy: HTTPS: fam
2 socket created to connect to ceyx.findlay.edu
[Tue Nov 25 08:36:41 2008] [debug] proxy_util.c(2269): proxy: HTTPS:
connection complete to 192.153.32.167:443 (ceyx.findlay.edu)
[Tue Nov 25 08:36:41 2008] [debug] mod_proxy_http.c(1607): proxy: start
body send
[Tue Nov 25 08:36:41 2008] [debug] mod_proxy_http.c(1696): proxy: end
body send
[Tue Nov 25 08:36:41 2008] [debug] proxy_util.c(1873): proxy: HTTPS: has
released connection for (ceyx.findlay.edu)
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_balancer.c(42): proxy:
BALANCER: canonicalising URL //jics/ics/
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_balancer.c(274): proxy:
BALANCER: Found value jics.ceyx for stickysession BALANCEID
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_balancer.c(284): proxy:
BALANCER: Found route ceyx
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_balancer.c(914): proxy:
Entering byrequests for BALANCER (balancer://jics)
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy.c(849): Running scheme
balancer handler (attempt 0)
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_http.c(1822): proxy: HTTP:
serving URL https://sterope.findlay.edu/ics/
[Tue Nov 25 08:36:52 2008] [debug] proxy_util.c(1855): proxy: HTTPS: has
acquired connection for (sterope.findlay.edu)
[Tue Nov 25 08:36:52 2008] [debug] proxy_util.c(1916): proxy: connecting
https://sterope.findlay.edu/ics/ to sterope.findlay.edu:443
[Tue Nov 25 08:36:52 2008] [debug] proxy_util.c(2015): proxy: connected
/ics/ to sterope.findlay.edu:443
[Tue Nov 25 08:36:52 2008] [debug] proxy_util.c(2172): proxy: HTTPS: fam
2 socket created to connect to sterope.findlay.edu
[Tue Nov 25 08:36:52 2008] [debug] proxy_util.c(2269): proxy: HTTPS:
connection complete to 192.153.32.169:443 (sterope.findlay.edu)
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_http.c(1607): proxy: start
body send
[Tue Nov 25 08:36:52 2008] [debug] mod_proxy_http.c(1696): proxy: end
body send
[Tue Nov 25 08:36:52 2008] [debug] proxy_util.c(1873): proxy: HTTPS: has
released connection for (sterope.findlay.edu)


--Boundary_(ID_X+8J2ng306Z8/rj7/tNHEg)
Content-type: text/x-vcard; charset=utf-8; name=rfox.vcf
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=rfox.vcf

begin:vcard
fn:Ryan Fox
n:Fox;Ryan
org:The University of Findlay;Information Technology Services
adr:128 Old Main;;1000 Main St;Findlay;OH;45840;USA
email;internet:rfox@findlay.edu
title:Network Systems Manager
tel;work:419-434-4348
x-mozilla-html:TRUE
version:2.1
end:vcard



--Boundary_(ID_X+8J2ng306Z8/rj7/tNHEg)
Content-Type: text/plain; charset=us-ascii

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
--Boundary_(ID_X+8J2ng306Z8/rj7/tNHEg)--

Re: mod_proxy_balancer stickysession

am 25.11.2008 16:10:11 von Ryan Fox

--Boundary_(ID_VBm1b7P6cxMv/ulaaZbYRQ)
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT

Ryan Fox wrote:
> I'm having a problem getting mod_proxy_balancer sticky sessions to
> work.

Sorry everyone. Just needed to restart apache, rather than graceful.
Works flawlessly now.
Thanks,
Ryan

--Boundary_(ID_VBm1b7P6cxMv/ulaaZbYRQ)
Content-type: text/x-vcard; charset=utf-8; name=rfox.vcf
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=rfox.vcf

begin:vcard
fn:Ryan Fox
n:Fox;Ryan
org:The University of Findlay;Information Technology Services
adr:128 Old Main;;1000 Main St;Findlay;OH;45840;USA
email;internet:rfox@findlay.edu
title:Network Systems Manager
tel;work:419-434-4348
x-mozilla-html:TRUE
version:2.1
end:vcard



--Boundary_(ID_VBm1b7P6cxMv/ulaaZbYRQ)
Content-Type: text/plain; charset=us-ascii

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
--Boundary_(ID_VBm1b7P6cxMv/ulaaZbYRQ)--