• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Opinion about Weblogic clustering

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I would like to hear your opinion about my clustering scenario.

I have two physical machines, both with Apache HTTP server and 2 Weblogic server istances. Apache serves static content and Weblogic dynamic stuff. All 4 servers are defined to run as one cluster. Apache server are running webserver plugin and all .do and .jsp calls are fowarded to weblogic.

The actual question is...Should I forward call from apache to all weblogic server or only to server in same machine.

Example: I have to machines A and B and they are running Apache server and weblogics A1, A2, B1 and B2. Request comes to Apache in server A, should I forward the request to weblogic A1, A2, B1 or B2 or only to A1 or A2.

Is there a performance decrease if I forward calls across different machines.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got a few questions:
Do you have a hardware load balancer in front of the Apache Servers?
Are you using HttpSession to store user information?
Are you replicating these sessions across the cluster or are you using sticky sessions?
If you are using sticky sessions, are the sessions sticky at the load balancer or WebLogic layer?
Are these boxes co-located in the same data center?
 
Tero Ahonen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chris Mathews:
Got a few questions:
Do you have a hardware load balancer in front of the Apache Servers?

Yes

Are you using HttpSession to store user information?

Yes

Are you replicating these sessions across the cluster or are you using
sticky sessions?

Session replication is on and sticky session are used.

If you are using sticky sessions, are the sessions sticky at the load balancer or WebLogic layer?

Load balander doesn't have any idea about session so they are sticky in WL layer

Are these boxes co-located in the same data center?

Server are in same data center and in same subnetwork.

 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Tero Ahonen:
If you are using sticky sessions, are the sessions sticky at the load balancer or WebLogic layer?

Load balander doesn't have any idea about session so they are sticky in WL layer


There you go then... you answered your own question. If the hardware load balancer(s) doesn't know anything about sticky sessions then for each request the user could land on either Apache Server. Therefore, to make its way back to the proper "sticky" server Apache needs to be configured to send across the entire WebLogic Cluster.
[ April 04, 2006: Message edited by: Chris Mathews ]
 
Tero Ahonen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was my initial quess for the answer, but I just needed some confirmation. Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic