0 Replies Latest reply on Jun 24, 2003 6:57 PM by Jake Meier

    round-robin load balancing with mod_jk and jetty

    Jake Meier Newbie

      I am having some trouble getting mod_jk to round-robin load balance between 2 jboss-3.2.1/jetty servers. It appears that I
      have a problem with sticky sessions support. I have a workers.properties file defining 3 workers. 1 pointing to server1, 2 pointing to server2, and 3 a load balanced worker balancing between servers 1 and 2. After turning the log level to debug
      on mod_jk I see that I am hitting server 1 for my initial call, and then server 2 for the second call. If client A makes a
      request and establishes a session with server 1 obviously all subsequent requests by client A need to go to that server(ie,
      the point of stick-session round-robins). In the debug output I see something that looks suspicious to me:

      [Tue Jun 24 14:35:25 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[2] [Set-Cookie] = [JSESSIONID=12yvaq9e3pgay.worker2;Path=/app]

      [Tue Jun 24 14:35:25 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[3] [Set-Cookie2] = [JSESSIONID=12yvaq9e3pgay.worker2;Version=1;Path=/app;Discard]

      The discard at the end of the second message seems odd. Has anyone else accomplished this with a similar configuration or has anyone else seen similar behavior? Does this look strange to anyone else? Any help would be greatly appreciated. I'm having trouble attaching files, but let me know if seeing them would be of some help.