You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by senthilnathan thiagarajan <se...@gmail.com> on 2004/07/16 15:24:51 UTC

Tomcat non-sticky load balancing

 Hai,

We have an  use case where each web request will be served by any one
server from a cluster of tomcat servers (non-sticky load balancing).
Session replication is not done as we maintain nothing in the session.


The following are the steps involved in form-based-login in Tomcat 5.16

    Client                                                            
                                        Server

                            Request for an un autheticated resource a.jsp
    ---------------------------------------------------------------------------------------------------->
                  Req 1

                            Redirect to login -page
    <-------------------------------------------------------------------------------------------------------

   
                            Request for j_security_check
    ------------------------------------------------------------------------------------------------------>
                 Req 2

                            Authentication passed
    <-------------------------------------------------------------------------------------------------------

             
     Redirect to a.jsp (Getting reauthenticated & register the session
if Single Sign on enabled )
     ------------------------------------------------------------------------------------------------------>
                 Req 3



I think there is some state maintained by tomcat across these three
requests. Therefore these three request needs to be processed by the
same server for authentication to be successful.

Please let us know the following things

   1. Why is state maintained across the 3 requests. Can it be avoided.
   2. How can we achieve non sticky load balancing with tomcat without
doing session replication.



Regards
Senthil

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