0

We have a requirement to loadbalance 2 standalone WAS7 base version JVMs in two separate hosts. Both the JVMs will be served by a single IHS web server. We are not creating any cluster. In addition to configuring a unique HTTP session clone ID for each JVM as below:

Navigate to :

Servers > Application servers > server_name > Container Settings > 
Web Container Settings > Web container > Additional Properties > Custom Properties > Click New

i)In the Name field, enter HttpSessionCloneId.

ii)In the Value field, enter a unique value for the server. The unique value must be 8 - 9 alphanumeric characters; for example, ``

Do we need to make any other configuration changes for enabling session affinity in WAS or IHS side?

Gas
  • 17,601
  • 4
  • 46
  • 93
BlueSaturn
  • 7
  • 1
  • 4

1 Answers1

2

Go through this page - Configuring simple load balancing across multiple application server profiles. It describes in detail all the steps you have to do.

In summary:

  • Configure cloneIDs
  • Generate plugin files for each
  • Merge plugins
  • Copy merged plugin to IHS

You can also configure session persistence, if you need that.

Gas
  • 17,601
  • 4
  • 46
  • 93
  • Thanks Gas . Is session affinity and session persistence same thing ? How are they different ? Little confused here .. – BlueSaturn Apr 22 '16 at 06:58
  • No, session affinity means that IHS with plugin will route to the same server if available, if not to other that serves that application (but session data is lost in case of switching to different server). Session persistence means that session data is replicated among participating servers, either via database, memory to memory replication or WebSphere Extreme Scale caching. For simple load balancing you can only use database for sharing sessions. In that case if one server fails, the other will pickup session in the same state. Hope it is more clear now ;-) – Gas Apr 22 '16 at 11:46
  • @BlueSaturn You can accept/upvote answer, if you found it useful. – Gas Apr 22 '16 at 13:26
  • Hi Gas ,I tried twice or thrice to upvote the answer but seems it will reflect only after I gain 15 reputation points :( – BlueSaturn Apr 28 '16 at 01:50