Load balancing sessions w/multiple apps

2001-11-25 Thread Mike Moulton

I'm trying to setup an environment where I have two app servers and a
load balancer all serving one application on two unique ports (80 and
81) where I want the session data to be identical between all four
instances of the application.


* Box 2** Box 3*
*  1 - App A / port 80 **  3 - App A / port 80 *
*  2 - App A / port 81 **  4 - App A / port 81 *

 |  |
 |  |
   *
   * Box 1 *
   *  - loadbalancer (port 80) *
   *  - loadbalancer (port 81) *
   *

My config consist of two  declarations for each app server
where the default-web-app is the application to be shared. The attribute
shared=true is set on both the port 80 and port 81 web-site configs. The
appropriate frontend host/port is also configured for each web-site
definition as well as server.xml knows about both web-sites. From here
I'm not sure on the accuracy of my approach to clustering the two app
servers. In the web-site config for instance 1 and instance 3 (see above
for instances) are configured to use cluster-island=1 and instance 2 and
instance 4 are configured to use cluster-island=2. The loadbalancer
listening to port 80 is configured only to listen to cluster-island 1
where the load balancer for port 81 is using cluster-island 2. All apps
are distributable and all orion-web.xml have  set.

With this setup when a request comes into port 80 and is assigned to box
2 / instance 1 and sets a session value; then the same client then
switches to port 81 and get assigned box 3 / instance 4 the session
value is not set. However if the client sets a session value on instance
1 and then goes to instance 2 or instance 3 the session value is
accessible.

Where did I go wrong? Is there another way to do this, if it's even
possible?

Thank,
- Mike





Re: multiple apps

2001-02-28 Thread Greg Matthews



thanks for the response.
 
i'm more of a java programmer than a web site 
administrator so i'm a bit in the dark here.
 
does that mean that i need two network cards in my 
machine if i want to use 2 
appname-web-site.xml files?
 
you suggest changing the host attribute from [ALL], 
what should i change it to?
 
the larger picture is that we're trying to find the 
best way to set up orion so we
can run duplicate copies of an application, one for 
each time a person calls us,
gives us their credit card number, and says "i'd 
like to lease your browser based
software"
 
we want to be able to:
    - run multiple apps per machine, 
and
    - run an app across multiple 
machine where a customer puts heavy load on the system.
 
 
thanks,
greg.

  - Original Message - 
  From: 
  Michael Bosch 
  
  To: Orion-Interest 
  Sent: Wednesday, February 28, 2001 5:04 
  PM
  Subject: Re: multiple apps
  
  Having just gone through learning all the 
  configuration details recently the thing that pops out in my mind is whether 
  or not you changed the host attribute in your web-site element of the 
  copy1-web-site.xml and copy2-web-site.xml files so that they're 
  different?  It'd make sense that one would run and the other doesn't when 
  they're both activated if this were the case.  If they're both set to [ALL] then the first one would probably override 
  the 2nd.  
   
  -Mike
  
- Original Message - 
From: 
Greg 
Matthews 
To: Orion-Interest 
Sent: Tuesday, February 27, 2001 5:27 
PM
Subject: multiple apps

 
Dear all,
 
I'm having some trouble getting multiple copies 
of an app to run where 
i use different -web-site.xml 
files.
 
I don't have a problem where i configure 
all the information within
server.xml and default-web-site.xml, but i want 
to use different
web-site.xml files so that i can do 
clustering.
 
I do the following:
 
1. copy/paste the application within 
\orion\applications.
    e.g.    
\orion\applications\copy1
        
 \orion\applications\copy2
 
2. create 2 web-site.xml files
 
    e.g.    
\orion\config\copy1-web-site.xml
        
 \orion\config\copy2-web-site.xml
 
3. put a reference to the web-site files in 
server.xml
 
  
4. put a reference to the 2 applications in 
server.xml
 

  
 
 
Questions
 
 
a) I can run the copy1 app in my browser, 
but not copy2.
 
b) If i comment out copy1, then for some 
reason i can run copy2.
 
c) If i uncomment copy1, then copy1 starts 
working, and copy2 is not accessible.
 
d) I don't get any error messages relating 
to not being able to access copy1 or copy2.
 
 
Does anyone know what i might be doing 
wrong?
 
Thanks,
Greg
 


Re: multiple apps

2001-02-27 Thread Michael Bosch



Having just gone through learning all the 
configuration details recently the thing that pops out in my mind is whether or 
not you changed the host attribute in your web-site element of the 
copy1-web-site.xml and copy2-web-site.xml files so that they're different?  
It'd make sense that one would run and the other doesn't when they're both 
activated if this were the case.  If they're 
both set to [ALL] then the first one would probably override the 2nd.  

 
-Mike

  - Original Message - 
  From: 
  Greg 
  Matthews 
  To: Orion-Interest 
  Sent: Tuesday, February 27, 2001 5:27 
  PM
  Subject: multiple apps
  
   
  Dear all,
   
  I'm having some trouble getting multiple copies 
  of an app to run where 
  i use different -web-site.xml 
  files.
   
  I don't have a problem where i configure all 
  the information within
  server.xml and default-web-site.xml, but i want 
  to use different
  web-site.xml files so that i can do 
  clustering.
   
  I do the following:
   
  1. copy/paste the application within 
  \orion\applications.
      e.g.    
  \orion\applications\copy1
          
   \orion\applications\copy2
   
  2. create 2 web-site.xml files
   
      e.g.    
  \orion\config\copy1-web-site.xml
          
   \orion\config\copy2-web-site.xml
   
  3. put a reference to the web-site files in 
  server.xml
   
    
  4. put a reference to the 2 applications in 
  server.xml
   
  
    
   
   
  Questions
   
   
  a) I can run the copy1 app in my browser, 
  but not copy2.
   
  b) If i comment out copy1, then for some 
  reason i can run copy2.
   
  c) If i uncomment copy1, then copy1 starts 
  working, and copy2 is not accessible.
   
  d) I don't get any error messages relating 
  to not being able to access copy1 or copy2.
   
   
  Does anyone know what i might be doing 
  wrong?
   
  Thanks,
  Greg
   


Re: multiple apps

2001-02-27 Thread Aniket V U

Hi,

I seem to be having similar problems. I have 2 application which use a 
common set of JSP's. For one JSP page, I have a problem wherein if I try to 
access that particular page in one application it will work, but will fail 
if used in the second application. The worst part is that both the JSP 
pages are identical. I dont even have different web-site.xml files. All the 
applications are defined in the default-web-site.xml

Any insights would be appreciated

Thanks 'n Regards

Aniket

At 06:57 AM 2/28/2001, you wrote:
>
>Dear all,
>
>I'm having some trouble getting multiple copies of an app to run where
>i use different -web-site.xml files.
>
>I don't have a problem where i configure all the information within
>server.xml and default-web-site.xml, but i want to use different
>web-site.xml files so that i can do clustering.
>
>I do the following:
>
>1. copy/paste the application within \orion\applications.
> e.g.\orion\applications\copy1
>  \orion\applications\copy2
>
>2. create 2 web-site.xml files
>
> e.g.\orion\config\copy1-web-site.xml
>  \orion\config\copy2-web-site.xml
>
>3. put a reference to the web-site files in server.xml
>
>  
>  
>4. put a reference to the 2 applications in server.xml
>
>  
>  
>
>
>Questions
>
>
>a) I can run the copy1 app in my browser, but not copy2.
>
>b) If i comment out copy1, then for some reason i can run copy2.
>
>c) If i uncomment copy1, then copy1 starts working, and copy2 is not 
>accessible.
>
>d) I don't get any error messages relating to not being able to access 
>copy1 or copy2.
>
>
>Does anyone know what i might be doing wrong?
>
>Thanks,
>Greg
>






multiple apps

2001-02-27 Thread Greg Matthews



 
Dear all,
 
I'm having some trouble getting multiple copies of 
an app to run where 
i use different -web-site.xml 
files.
 
I don't have a problem where i configure all 
the information within
server.xml and default-web-site.xml, but i want to 
use different
web-site.xml files so that i can do 
clustering.
 
I do the following:
 
1. copy/paste the application within 
\orion\applications.
    e.g.    
\orion\applications\copy1
        
 \orion\applications\copy2
 
2. create 2 web-site.xml files
 
    e.g.    
\orion\config\copy1-web-site.xml
        
 \orion\config\copy2-web-site.xml
 
3. put a reference to the web-site files in 
server.xml
 
  
4. put a reference to the 2 applications in 
server.xml
 

  
 
 
Questions
 
 
a) I can run the copy1 app in my browser, but 
not copy2.
 
b) If i comment out copy1, then for some 
reason i can run copy2.
 
c) If i uncomment copy1, then copy1 starts 
working, and copy2 is not accessible.
 
d) I don't get any error messages relating to 
not being able to access copy1 or copy2.
 
 
Does anyone know what i might be doing 
wrong?
 
Thanks,
Greg