You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eulogio Robles <eu...@mi.cl> on 2004/04/01 23:11:43 UTC

Sticky sessions on Apache/JK2

I'm trying to set up sticky sessions on Apache/Tru64, using JK2 latest 
version. I'm using both Apache 2.0.49, and the version distributed by HP 
on its Secure Web Server 6.1.1 (2.0.47).

According to JK2 documentation, I should use a sentence like this on my 
workers2.properties file :

[lb:lb]
stickySession=1

However, I get these messages :

[Thu Apr 01 17:01:04 2004] [notice] config.update(): done logger
[Thu Apr 01 17:01:04 2004] [notice] config.update(): done config:
[Thu Apr 01 17:01:04 2004] [notice] config.setAttribute() Error setting lb:lb stickySession 1
[Thu Apr 01 17:01:04 2004] [notice] config.update(): done lb:lb
[Thu Apr 01 17:01:04 2004] [notice] config.update(): done channel.socket:localhost:8009
[Thu Apr 01 17:01:04 2004] [notice] config.update(): done ajp13:localhost:8009
[Thu Apr 01 17:01:04 2004] [notice] config.update(): done uri:/*.jsp


I see that my requests are being load balanced for the same session. I am trying
2 Tomcats, and later, 2 JBoss servers, and in both cases I see that all requests from the 
same session are being attended in both servers (50-50).



Best regards,

Eulogio Robles


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Sticky sessions on Apache/JK2

Posted by Eulogio Robles <eu...@mi.cl>.
The "stickySession" line is not recognized on Linux either.  Where can I 
find the correct method to implement sticky sessions?

Best regards,

E. Robles

Eulogio Robles wrote:

> I'm trying to set up sticky sessions on Apache/Tru64, using JK2 latest 
> version. I'm using both Apache 2.0.49, and the version distributed by 
> HP on its Secure Web Server 6.1.1 (2.0.47).
>
> According to JK2 documentation, I should use a sentence like this on 
> my workers2.properties file :
>
> [lb:lb]
> stickySession=1
>
> However, I get these messages :
>
> [Thu Apr 01 17:01:04 2004] [notice] config.update(): done logger
> [Thu Apr 01 17:01:04 2004] [notice] config.update(): done config:
> [Thu Apr 01 17:01:04 2004] [notice] config.setAttribute() Error 
> setting lb:lb stickySession 1
> [Thu Apr 01 17:01:04 2004] [notice] config.update(): done lb:lb
> [Thu Apr 01 17:01:04 2004] [notice] config.update(): done 
> channel.socket:localhost:8009
> [Thu Apr 01 17:01:04 2004] [notice] config.update(): done 
> ajp13:localhost:8009
> [Thu Apr 01 17:01:04 2004] [notice] config.update(): done uri:/*.jsp
>
>
> I see that my requests are being load balanced for the same session. I 
> am trying
> 2 Tomcats, and later, 2 JBoss servers, and in both cases I see that 
> all requests from the same session are being attended in both servers 
> (50-50).
>
>
>
> Best regards,
>
> Eulogio Robles
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org