I'm trying to figure out why sticky sessions aren't working for me. This is on Linux RHEL3 w/Apache 2.2.0.

I have debug on and see output for finding JSESSIONID, but then it goes ahead and routes to one of the two servers. Here is the hopefully relevant part of my conf:

UseCanonicalName Off

<VirtualHost *>
  ServerName acme2.prestosports.com
  ProxyRequests Off
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>
  ProxyPass / balancer://mycluster/ stickysession=JSESSIONID
  ProxyPreserveHost On

  <Proxy balancer://mycluster>
    BalancerMember http://67.15.102.228:80
    BalancerMember http://67.15.102.226:80
  </Proxy>
</VirtualHost>

Attached is the log file. It has "proxy: BALANCER: Found value QY3I3aOwol5ekbmBIq for stickysession JSESSIONID" and then proceeds to just use the regular scheduling algorithm for each request.

Am I missing something in my configuration or is this a bug report I should file?

--
Serge Knystautas
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]
[Thu Jan 05 10:41:45 2006] [debug] proxy_util.c(1681): proxy: initialized 
single connection worker 4 in child 3520 for (*)
[Thu Jan 05 10:41:45 2006] [debug] proxy_util.c(1681): proxy: initialized 
single connection worker 0 in child 3520 for (67.15.102.228)
[Thu Jan 05 10:41:45 2006] [debug] proxy_util.c(1681): proxy: initialized 
single connection worker 2 in child 3520 for (67.15.102.226)
[Thu Jan 05 10:41:45 2006] [notice] Apache/2.2.0 (Unix) configured -- resuming 
normal operations
[Thu Jan 05 10:41:45 2006] [info] Server built: Jan  4 2006 23:32:51
[Thu Jan 05 10:41:45 2006] [debug] prefork.c(991): AcceptMutex: sysvsem 
(default: sysvsem)
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: 
canonicalising URL //mycluster/action/manage/which.jsp
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_balancer.c(198): proxy: BALANCER: 
Found value QY3I3aOwol5ekbmBIq for stickysession JSESSIONID
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_balancer.c(803): proxy: Entering 
byrequests for BALANCER (balancer://mycluster)
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_balancer.c(396): proxy: BALANCER 
(balancer://mycluster) worker (http://67.15.102.228) rewritten to 
http://67.15.102.228/action/manage/which.jsp
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy.c(736): Running scheme balancer 
handler (attempt 0)
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_http.c(1661): proxy: HTTP: serving 
URL http://67.15.102.228/action/manage/which.jsp
[Thu Jan 05 10:41:49 2006] [debug] proxy_util.c(1754): proxy: HTTP: has 
acquired connection for (67.15.102.228)
[Thu Jan 05 10:41:49 2006] [debug] proxy_util.c(1811): proxy: connecting 
http://67.15.102.228/action/manage/which.jsp to 67.15.102.228:80
[Thu Jan 05 10:41:49 2006] [debug] proxy_util.c(1911): proxy: connected 
/action/manage/which.jsp to 67.15.102.228:80
[Thu Jan 05 10:41:49 2006] [debug] proxy_util.c(2005): proxy: HTTP: fam 2 
socket created to connect to 67.15.102.228
[Thu Jan 05 10:41:49 2006] [debug] proxy_util.c(2101): proxy: HTTP: connection 
complete to 67.15.102.228:80 (67.15.102.228)
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_http.c(1443): proxy: start body 
send
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_http.c(1530): proxy: end body send
[Thu Jan 05 10:41:49 2006] [debug] proxy_util.c(1769): proxy: HTTP: has 
released connection for (67.15.102.228)
[Thu Jan 05 10:41:49 2006] [debug] mod_proxy_balancer.c(424): 
proxy_balancer_post_request for (balancer://mycluster)
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_balancer.c(41): proxy: BALANCER: 
canonicalising URL //mycluster/action/manage/which.jsp
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_balancer.c(198): proxy: BALANCER: 
Found value QY3I3aOwol5ekbmBIq for stickysession JSESSIONID
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_balancer.c(803): proxy: Entering 
byrequests for BALANCER (balancer://mycluster)
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_balancer.c(396): proxy: BALANCER 
(balancer://mycluster) worker (http://67.15.102.226) rewritten to 
http://67.15.102.226/action/manage/which.jsp
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy.c(736): Running scheme balancer 
handler (attempt 0)
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_http.c(1661): proxy: HTTP: serving 
URL http://67.15.102.226/action/manage/which.jsp
[Thu Jan 05 10:41:50 2006] [debug] proxy_util.c(1754): proxy: HTTP: has 
acquired connection for (67.15.102.226)
[Thu Jan 05 10:41:50 2006] [debug] proxy_util.c(1811): proxy: connecting 
http://67.15.102.226/action/manage/which.jsp to 67.15.102.226:80
[Thu Jan 05 10:41:50 2006] [debug] proxy_util.c(1911): proxy: connected 
/action/manage/which.jsp to 67.15.102.226:80
[Thu Jan 05 10:41:50 2006] [debug] proxy_util.c(2005): proxy: HTTP: fam 2 
socket created to connect to 67.15.102.226
[Thu Jan 05 10:41:50 2006] [debug] proxy_util.c(2101): proxy: HTTP: connection 
complete to 67.15.102.226:80 (67.15.102.226)
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_http.c(1443): proxy: start body 
send
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_http.c(1530): proxy: end body send
[Thu Jan 05 10:41:50 2006] [debug] proxy_util.c(1769): proxy: HTTP: has 
released connection for (67.15.102.226)
[Thu Jan 05 10:41:50 2006] [debug] mod_proxy_balancer.c(424): 
proxy_balancer_post_request for (balancer://mycluster)

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to