Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This is easily the most helpful website I've ever used, and this is the best forum with the quickest response time bar none...."

Geography

Where in the world do Tek-Tips members come from?

HOW TO Configure plugin-cfg.xml for Load balancing in WAS5.1.1.10

Neelimaix (TechnicalUser)
7 Aug 06 13:28
I am trying to do Load Blancing on two App servers from Apache Webserver.

I was sucessfull partially by geting the round robin load balancing.

the problem is the session that i establish is not paprmenant, i.e for every other click its pointing me to the other app server with out holding the session.

can some one help me on setting up persistant session with load balancing.

Regards,

FYI the plugin file i am using is :
========================

 cat plugin-cfg.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<Config ASDisableNagle="false" AcceptAllContent="false" AppServerPortPreference="HostHeader" ChunkedResponse="false" FIPSEnable="false" IISDisableNagle="false" IISPluginPriority="High" IgnoreDNSFailures="false" RefreshInterval="60" ResponseChunkSize="64" VHostMatchingCompat="false">
   <Log LogLevel="Trace" Name="/tmp/http_plugin.log"/>
   <Property Name="ESIEnable" Value="true"/>
   <Property Name="ESIMaxCacheSize" Value="1024"/>
   <Property Name="ESIInvalidationMonitor" Value="false"/>
   <VirtualHostGroup Name="default_host">
      <VirtualHost Name="*:9080"/>
      <VirtualHost Name="*:80"/>
      <VirtualHost Name="*:9443"/>
      <VirtualHost Name="*:9081"/>
      <VirtualHost Name="*:9444"/>
   </VirtualHostGroup>
   <ServerCluster CloneSeparatorChange="false" LoadBalance="Round Robin" Name="Testh_Cluster" PostBufferSize="64" PostSizeLimit="-1" RemoveSpecialHeaders="true" RetryInterval="60">
      <Server ConnectTimeout="0" CloneID="F1234567" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="xxxapp123_server1" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="xxxapp123" Port="9080" Protocol="http"/>
         <Transport Hostname="xxxapp123" Port="9443" Protocol="https">
            <Property Name="keyring" Value="/opt/WebSphere/AppServer/etc/plugin-key.kdb"/>
            <Property Name="stashfile" Value="/opt/WebSphere/AppServer/etc/plugin-key.sth"/>
         </Transport>
      </Server>
      <Server ConnectTimeout="0" CloneID="F1234568" ExtendedHandshake="false" LoadBalanceWeight="2" MaxConnections="-1" Name="xxxapp161_server2" ServerIOTimeout="0" WaitForContinue="false">
         <Transport Hostname="xxxapp161" Port="9081" Protocol="http"/>
         <Transport Hostname="xxxxapp161" Port="9444" Protocol="https">
            <Property Name="keyring" Value="/opt/WebSphere/AppServer/etc/plugin-key.kdb"/>
            <Property Name="stashfile" Value="/opt/WebSphere/AppServer/etc/plugin-key.sth"/>
         </Transport>
      </Server>
      <PrimaryServers>
         <Server Name="xxxapp161_server2"/>
         <Server Name="xxxapp123_server1"/>
      </PrimaryServers>
   </ServerCluster>
   <UriGroup Name="default_host_Test_Cluster_URIs">
      <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/pbtwes/*"/>
   </UriGroup>
   <Route ServerCluster="Test_Cluster" UriGroup="default_host_Test_Cluster_URIs" VirtualHostGroup="default_host"/>
   <RequestMetrics armEnabled="false" loggingEnabled="true" rmEnabled="false" traceLevel="HOPS">
      <filters enable="false" type="URI">
         <filterValues enable="false" value="/servlet/snoop"/>
         <filterValues enable="false" value="/webapp/examples/HitCount"/>
      </filters>
      <filters enable="false" type="SOURCE_IP">
         <filterValues enable="false" value="255.255.255.255"/>
         <filterValues enable="false" value="254.254.254.254"/>
      </filters>
   </RequestMetrics>
</Config>

georgeav (TechnicalUser)
6 Sep 06 6:19
I had the same problem. This is how I solved it:

http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=287&message=13863809&thread=133670&cat=9

"Thanks Sunit, based on your input I managed to get it working with WAS Base. I manually set different HttpSessionCloneId on Web Container custom properties on both servers, as described in: http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0//index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rprs_custom_properties.html

After that, in the new plugin-cfg.xml, for each server section there was a new property CloneID with the HttpSessionCloneId I set for each server; also, after a WAS restart, the new JSESSIONID's generated contain the CloneID; and now, the webserver doesn't lose it's affinity; so it's ok now."
Neelimaix (TechnicalUser)
1 Oct 06 4:45
Thanks George,

your input was very helpful

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close