Fantastic! Thanks for the clarification.

On Tue, 06 Feb 2007 20:17:17 -0600, Tim Lucia <[EMAIL PROTECTED]> wrote:

>> -----Original Message-----
>> From: Rob Bugh [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, February 06, 2007 3:22 PM
>> To: Tomcat Users List
>> Subject: Re: Session Affinity and Session Replication
>>
>>
>> Thanks, for the information. My confusion in part stems from this comment
>> in the The Apache Tomcat Connector - Reference Guide,
>> http://tomcat.apache.org/connectors-doc/reference/workers.html
>>
>> In the comments for sticky_session: "... Set sticky_session to False when
>> Tomcat is using a Session Manager which can persist session data across
>> multiple instances of Tomcat...". Also, I've seen other comments in this
>> mailing list that would indicate not to use both at the same time.
>
> If session replication is on, and synchronous (the replication completes
> prior to the request completing) then you do not need session affinity as
> all cluster members will have the up-to-date session data.
>
> If you use an asynchronous mechanism for replication, you will slightly
> improve your response time, but at the possible cost of the next request
> coming to a different cluster member which is not yet up-to-date.
>
> Combining affinity and replication gives the session a "preferred" server,
> with seamless failover.
>
> Not only does it work, but it works really, really well.  I have been using
> it in a production site now for almost a year, with one Apache+mod_jk, and
> three Tomcats.  You can shut down one Tomcat for maintenance, bring it up,
> and shut down the next, etc., and nobody is ever the wiser.
>
> Tim
>
>> Regards,
>> Rob
>>
>> -----Original Message-----
>> >From: Hassan Schroeder <[EMAIL PROTECTED]>
>> >Sent: Feb 6, 2007 2:00 PM
>> >To: Tomcat Users List <users@tomcat.apache.org>, Rob Bugh
>> <[EMAIL PROTECTED]>
>> >Subject: Re: Session Affinity and Session Replication
>> >
>> >On 2/6/07, Rob Bugh <[EMAIL PROTECTED]> wrote:
>> >
>> >> All the documentation I've read to date indicates not to use sticky
>> >> sessions and session replication together.
>> >
>> >Can you cite where you saw that?
>> >
>> >I've set up a similar config (using mod_proxy_ajp) with both sticky
>> >sessions and session replication and it worked fine.
>> >
>> >FWIW,
>> >--
>> >Hassan Schroeder ------------------------ [EMAIL PROTECTED]
>> >
>> >---------------------------------------------------------------------
>> >To start a new topic, e-mail: users@tomcat.apache.org
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Rob Bugh

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to