LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat) (https://www.linuxquestions.org/questions/linux-server-73/session-replication-using-apache-mod_jk-tomcat-5-5-28-veriosn-of-tomcat-851988/)

sreejithp 12-23-2010 06:05 AM

Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat)
 
Hi,

I have two tomcats running on two diffrent system connected via LAN, and they are load balanced via apache+mod_jk. The load balance set up is working but have issue with session replication. When any one of the tomcat gets down the session is not replicated .

The clustered configuration that i have added to the server.xmol file is given below :

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">

<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>

<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"
waitForAck="true"/>

<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>

<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>


<ClusterListener className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
</Cluster>
=============================================================================


I have also added the below content to the ROOT.xml file as given below:

< Context path="" debug="0" reloadable="true"
cookies="true" crossContext="false" privileged="false" >

==============================================================================

Then i have added <distributable/>
to the file web.xml in location webapps/ROOT/WEB-INF/

=============================================================================


Please guide me to the right path and help me to set this tomcat set up.

Snark1994 12-24-2010 06:46 AM

I'm afraid I don't have a solution, but you would be far more likely to find one if you had posted this in Linux - Networking rather than Linux - Newbie, as it's quite an advanced question and one specifically about networking.

Perhaps you could ask a moderator to move it :)


All times are GMT -5. The time now is 06:56 PM.