Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Load Balancing and Maintain value between servlets.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a Cisco local director and 2 websphere application servers. When application is launced,
cisco director directs the application to any one of server depends on the load of the other server.

Here is the question,
How to maintain values between servlets when each request goes to any one of the server. Right now i am lot serialized values thru sessions.
Thanks
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the same problem but with iPlanet servers, the solution that I implemented was save the session data in database and pass the primary key across the pages as parameters. If you found a best solution please tell me.
 
Aruna Gopalakrishnan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sounds like a Good solution, But for every page it has to go the DB.That's not is Good.
Surely, I will let you know when I get some other better solution than this.
Thank You
Regards
Aruna G
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer is definitely app server specific.
Iplanet has the idea of a "sticky session" which tells the load balancer to always come back to that instance on subsequent requests.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, this is certainly application server specific. However, this is something that is covered quite well in the redbooks and documentation on WebSphere.
WebSphere has a feature called "Session persistence" that will automatically store session values in the database. It also has a built-in feature called "Session affinity" that will notice which server a session is created on (based on the session id, which contains a hashed JVM id) and direct it there. However, this second feature is only used when you use the load-balancing features built into the WebSphere HTTP Server plugin.
Now, I have some questions for you -- how many users are you expecting to concurrently use this application? Why did you decide to use a Cisco local director instead of the built-in load balancing at the plugin? Are you open to rearranging your network topology a little?
Kyle
 
Aruna Gopalakrishnan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are expectation about 100,000 - 200,000 hits possible per day after we get the application off the ground....
Sorry for the delay in reply.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle,
To answer your questions, we expect to get over 100,000 hits per day to start once the application goes full scale. Using the Cisco Local Director was a company Network decision that we need to go along with. We want to implement something that will hopefully not slow performance.
Any further advice is much appreciated.
 
jonnyk
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone have any more ideas regarding this?
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic