RE: Load balancing & session affinity (QUERY)

2012-04-26 Thread GIORGI Olivier
Hello Derek, Thank you for your fruitfull answer. It works. Best regards Olivier. -Original Message- From: Derek Beauregard [mailto:dbeaureg...@vmware.com] Sent: Thursday, April 26, 2012 5:59 PM To: Tomcat Users List Subject: Re: Load balancing & session affinity (QUERY) Have

Re: Load balancing & session affinity (QUERY)

2012-04-26 Thread Derek Beauregard
Have you defined the jvmRoute on your Engine element in tomcat's server.xml? E.g., The value for jvmRoute should match the route defined in your apache balancer config. -Derek Derek Beauregard On 4/26/12 9:37 AM, "GIORGI Olivier" wrote: >Hello to all, > >I am using Apache 2.2.21 & Tomcat

Load balancing & session affinity (QUERY)

2012-04-26 Thread GIORGI Olivier
Hello to all, I am using Apache 2.2.21 & Tomcat 6.0.29 1) Schema: Load balancer (Apache.2.2.21) -> 1st appli (Tomcat 6.0.29) -> 2nd appli. (Tomcat 6.0.29) 2) Using the following configuration, my load balancing is stateless instead of statefull (having a look at the logs). -

Re: Server affinity instead of session affinity

2010-11-24 Thread Mark Thomas
On 23/11/2010 23:34, André Warnier wrote: > Andrew Hole wrote: >> I'm reading about domain directive in worker properties. I can setup >> different workers to be in the same domain (p.e. a machine) and have >> "domain >> affinity". Do you have some idea how it really works? >> > > No, but it kind

Re: Server affinity instead of session affinity

2010-11-23 Thread Mario Kleinsasser
On Tue, Nov 23, 2010 at 10:01 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > André, > > On 11/23/2010 10:27 AM, André Warnier wrote: > > With the configuration below and your explanations, I suppose that there > > is some kind o

Re: Server affinity instead of session affinity

2010-11-23 Thread André Warnier
Andrew Hole wrote: I'm reading about domain directive in worker properties. I can setup different workers to be in the same domain (p.e. a machine) and have "domain affinity". Do you have some idea how it really works? No, but it kind of sounds like what you want to achieve, doesn't it ? You c

Re: Server affinity instead of session affinity

2010-11-23 Thread Andrew Hole
And regarding your question; ~Why can you not run all apps within one single JVM/Tomcat ? Because we have a lot of web applications and we are using 32-bit JVM. Thanks a lot On Tue, Nov 23, 2010 at 10:59 PM, Andrew Hole wrote: > I'm reading about domain directive in worker properties. I can set

Re: Server affinity instead of session affinity

2010-11-23 Thread Andrew Hole
I'm reading about domain directive in worker properties. I can setup different workers to be in the same domain (p.e. a machine) and have "domain affinity". Do you have some idea how it really works? Thanks On Tue, Nov 23, 2010 at 9:01 PM, Christopher Schultz < ch...@christopherschultz.net> wro

Re: Server affinity instead of session affinity

2010-11-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/23/2010 10:27 AM, André Warnier wrote: > With the configuration below and your explanations, I suppose that there > is some kind of load-balancing going on between the two machines. > What is used at the front-end to load-balance ? > > A

Re: Server affinity instead of session affinity

2010-11-23 Thread André Warnier
: Machine 1: Tomcat A App1 App2 Tomcat B App3 App4 Machine 2: Tomcat C App1 App2 Tomcat D App3 App4 Using session affinity, if I make a request to App1 and the Tomcat A in Machine 1 is selected. All the sequent requests will be redirected (within the same session) to the same Tomcat (tomcat A

Re: Server affinity instead of session affinity

2010-11-23 Thread Mark Thomas
On 23/11/2010 14:41, Christopher Schultz wrote: > Mark, > > On 11/23/2010 5:12 AM, Mark Thomas wrote: >> On 23/11/2010 00:06, Andrew Hole wrote: >>> There is a middleware-to-middleware connection between Tomcat A and Tomcat B >>> using RMI (point-to-point protocol) and Tomcat A has in-memory data

Re: Server affinity instead of session affinity

2010-11-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/23/2010 5:12 AM, Mark Thomas wrote: > On 23/11/2010 00:06, Andrew Hole wrote: >> There is a middleware-to-middleware connection between Tomcat A and Tomcat B >> using RMI (point-to-point protocol) and Tomcat A has in-memory data useful >>

Re: Server affinity instead of session affinity

2010-11-23 Thread Mark Thomas
On 23/11/2010 00:06, Andrew Hole wrote: > There is a middleware-to-middleware connection between Tomcat A and Tomcat B > using RMI (point-to-point protocol) and Tomcat A has in-memory data useful > to App3. > The same aproach in the second server: applications in tomcat d have RMI > communication t

Re: Server affinity instead of session affinity

2010-11-22 Thread Andrew Hole
gt;> Machine 2: >> Tomcat C >> App1 >> App2 >> Tomcat D >> App3 >> App4 >> >> Using session affinity, if I make a request to App1 and the Tomcat A in >> Machine 1 is selected. All the sequent requests will be redirected (within >> the s

Re: Server affinity instead of session affinity

2010-11-22 Thread André Warnier
Andrew Hole wrote: Sorry for the inconvenience. I sent the email with wrong content. An example: Machine 1: Tomcat A App1 App2 Tomcat B App3 App4 Machine 2: Tomcat C App1 App2 Tomcat D App3 App4 Using session affinity, if I make a request to App1 and the Tomcat A in Machine 1

Re: Server affinity instead of session affinity

2010-11-22 Thread Andrew Hole
Sorry for the inconvenience. I sent the email with wrong content. An example: Machine 1: Tomcat A App1 App2 Tomcat B App3 App4 Machine 2: Tomcat C App1 App2 Tomcat D App3 App4 Using session affinity, if I make a request to App1 and the Tomcat A in Machine 1 is selected. All the

Re: Server affinity instead of session affinity

2010-11-22 Thread Andrew Hole
An example: Machine 1: Tomcat A Tomcat B On Mon, Nov 22, 2010 at 11:05 PM, André Warnier wrote: > Andrew Hole wrote: > >> No... Session affinity (jvmRoute in JSESSION ID) implies sending to the >> same >> tomcat instance (same JVM), not for the same machine. >>

Re: Server affinity instead of session affinity

2010-11-22 Thread André Warnier
Andrew Hole wrote: No... Session affinity (jvmRoute in JSESSION ID) implies sending to the same tomcat instance (same JVM), not for the same machine. I guess that I still don't get it. The same Tomcat instance /is/, per definition, on the same machine. Or do you want to send the request

Re: Server affinity instead of session affinity

2010-11-22 Thread Andrew Hole
No... Session affinity (jvmRoute in JSESSION ID) implies sending to the same tomcat instance (same JVM), not for the same machine. Some idea? On Mon, Nov 22, 2010 at 9:10 PM, André Warnier wrote: > Andrew Hole wrote: > >> Hi guys! >> >> There is any available config

Re: Server affinity instead of session affinity

2010-11-22 Thread André Warnier
Andrew Hole wrote: Hi guys! There is any available configuration to define server affinity instead of session affinity? Our architecture setup is based on multiple JVMs (tomcat) instances in each server (machine). The goal is to send all requests (within a session) from a client browser to the

RE: Server affinity instead of session affinity

2010-11-22 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:andremailingl...@gmail.com] > Subject: Server affinity instead of session affinity > The goal is to send all requests (within a session) from a > client browser to the same machine. Is it possible to > perform it using jvmRoute? Can't you just se

Server affinity instead of session affinity

2010-11-22 Thread Andrew Hole
Hi guys! There is any available configuration to define server affinity instead of session affinity? Our architecture setup is based on multiple JVMs (tomcat) instances in each server (machine). The goal is to send all requests (within a session) from a client browser to the same machine. Is it

Re: mod_proxy_balancer and session affinity

2009-03-12 Thread Rainer Jung
On 12.03.2009 10:43, Andrew Hole wrote: Hi guys! I can't find any documentation regarding session affinity using mod_proxy_balancer (http protocol). Anyone have or know where i cand find it? Look for "route" and "stickysession" on the page http://httpd.apache.org/do

mod_proxy_balancer and session affinity

2009-03-12 Thread Andrew Hole
Hi guys! I can't find any documentation regarding session affinity using mod_proxy_balancer (http protocol). Anyone have or know where i cand find it? Thanks

Re: Session affinity

2008-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Andrew Hole [mailto:[EMAIL PROTECTED] Subject: Re: >> Session affinity >> >> Is not very smart... There is some problem with that? > > I think so - without some intelligence

Re: Session affinity

2008-11-21 Thread Mark Thomas
Caldarale, Charles R wrote: >> From: Andrew Hole [mailto:[EMAIL PROTECTED] >> Subject: Re: Session affinity >> >> Is not very smart... There is some problem with that? > > I think so - without some intelligence in the load balancer, I don't think

RE: Session affinity

2008-11-21 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:[EMAIL PROTECTED] > Subject: Re: Session affinity > > Is not very smart... There is some problem with that? I think so - without some intelligence in the load balancer, I don't think you can maintain session affinity. - Chuck THIS COMMUNIC

Re: Session affinity

2008-11-21 Thread Andrew Hole
Is not very smart... There is some problem with that? Thanks On Fri, Nov 21, 2008 at 9:00 PM, Caldarale, Charles R < [EMAIL PROTECTED]> wrote: > > From: Andrew Hole [mailto:[EMAIL PROTECTED] > > Subject: Session affinity > > > > How it works when we have an

RE: Session affinity

2008-11-21 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:[EMAIL PROTECTED] > Subject: Session affinity > > How it works when we have an hardware load balancer in the > first layer and 2 actives Apache HTTP Server? How smart is your load balancer? Can it be configured to route requests based on content of t

Session affinity

2008-11-21 Thread Andrew Hole
Hi guys! The session affinity in Apache guarantee that all requests from a specific browser will be redirected to the same instance of Tomcat (worker). How it works when we have an hardware load balancer in the first layer and 2 actives Apache HTTP Server? Thanks a lot

Re: Session Affinity and Session Replication

2007-02-06 Thread Rob Bugh
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 >&g

RE: Session Affinity and Session Replication

2007-02-06 Thread Tim Lucia
> -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 com

Re: Session Affinity and Session Replication

2007-02-06 Thread Hassan Schroeder
On 2/6/07, Rob Bugh <[EMAIL PROTECTED]> wrote: 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 Ah, OK -- perhaps that's JK-specific. As I said, I used mod_proxy_ajp which has no "wo

Re: Session Affinity and Session Replication

2007-02-06 Thread Rob Bugh
t;Sent: Feb 6, 2007 2:00 PM >To: Tomcat Users List , 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 &g

Re: Session Affinity and Session Replication

2007-02-06 Thread Hassan Schroeder
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 a

Re: Session Affinity and Session Replication

2007-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, Rob Bugh wrote: > So my question is, if I enable session affinity but not session > replication, how can I failover a connection without losing the > session data? You can't, unless you are using some other mechanism to share th

Session Affinity and Session Replication

2007-02-06 Thread Rob Bugh
Hello All, I'm trying to get a better understanding when to use Session Affinity and Session Replication and have a question. Let me set my question up by describing my configuration. It consists of an Apache server with mod_jk and two Tomcat servers, where the Apache server is configur

RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Matteo Turra
Sorry everybody, I misspelled jmvRoute with jvmroute in my server.xml! Matteo -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: venerdì 29 dicembre 2006 16.42 To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session

RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Tim Lucia
-Original Message- > From: Matteo Turra [mailto:[EMAIL PROTECTED] > Sent: Friday, December 29, 2006 10:04 AM > To: Tomcat Users List > Cc: [EMAIL PROTECTED] > Subject: RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session > affini

RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Matteo Turra
(session affinity lost) Did you loose the jvmRoute attribute in server.xml during the upgrade process? Matteo Turra wrote: > Hi, I upgraded my tomcat 5.0 + jdk 1.4 to tomcat 5.5.20 + jdk 1.5.0_10 > and now my tomcat cluster doesn't work with sticky session (session > affinity). >

RE: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Matteo Turra
NO. I do not. -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: venerdì 29 dicembre 2006 13.36 To: Tomcat Users List Subject: Re: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost) Did you loose the jvmRoute attribute in server.xml during the

Re: Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Rainer Jung
Did you loose the jvmRoute attribute in server.xml during the upgrade process? Matteo Turra wrote: Hi, I upgraded my tomcat 5.0 + jdk 1.4 to tomcat 5.5.20 + jdk 1.5.0_10 and now my tomcat cluster doesn't work with sticky session (session affinity). After a while I notice the jvm

Tomcat 5.5.20 - jvmRoute not appended at jsessionid (session affinity lost)

2006-12-29 Thread Matteo Turra
Hi, I upgraded my tomcat 5.0 + jdk 1.4 to tomcat 5.5.20 + jdk 1.5.0_10 and now my tomcat cluster doesn't work with sticky session (session affinity). After a while I notice the jvmroute parameter is not appended to the jsessionid anymore! Does anyone had the same behaviours? Does a

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
I do now. It's all working now. Thanks a bunch Sidd -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 2:06 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem so if you create a jsp(or servlet)

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
at and session affinity problem My bad. Did not read documentation. Thanks -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 12:31 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem The names o

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
-Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 1:28 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem My bad. Did not read documentation. Thanks -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
My bad. Did not read documentation. Thanks -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 12:31 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem The names of your workers are not correct

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sanjeev Kumar Bhat, Noida
Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Ca

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sanjeev Kumar Bhat, Noida
: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
, June 16, 2006 10:59 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem is your webapplication creating a session? if not, then there wont be a cookie, and mod_jk uses this cookie to determine server affinity. and if you dont have sessions, you don't

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
-Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:59 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem is your webapplication creating a session? if not, then there wont be a cookie, and mod_jk uses this

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
is your webapplication creating a session? if not, then there wont be a cookie, and mod_jk uses this cookie to determine server affinity. and if you dont have sessions, you don't need session affinity Filip Sharma, Siddharth wrote: I have an http packet sniffer and it is reporting

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.p

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
ty is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Me

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sanjeev Kumar Bhat, Noida
Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name.

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
ailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServe

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
Yes I did jvmRoute is set to the worker name. still, no jsessionid cookie. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set

Re: Apache with Tomcat and session affinity problem

2006-06-16 Thread Filip Hanik - Dev Lists
have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServer 2.0 (it is an apache essentially) fronting two tomcat instances (version 5.5.16) using mod_jk over ajp13. I have configured a load

Apache with Tomcat and session affinity problem

2006-06-15 Thread Sharma, Siddharth
id cookie in the response, so I am not sure if it is maintaining session affinity. I have configured the load balancer worker for session affinity with this directive in worker.properties: worker.lb_worker.sticky_session=True What am I missing? What is the exact name of the cookie that mod_jk