You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by 岩崎 新 <ka...@hotmail.com> on 2004/09/03 07:13:22 UTC

Tomcat5.0.25 TCP Session Replication

On Tomcat5.0.25 it doesn't replicate, even though I try to do session 
replication.

Below is a setting.

server.xml of SERVER 1
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
			managerClassName="org.apache.catalina.cluster.session.DeltaManager"
			expireSessionsOnShutdown="false"
			printToScreen="true"
			debug="9"
			useDirtyFlag="false">

	<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="10.108.128.91"
			tcpListenPort="4001"
			tcpSelectorTimeout="100"
			tcpThreadCount="6"/>

	<Sender
			className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
			replicationMode="synchronous"/>

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

server.xml of SERVER 2
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
			managerClassName="org.apache.catalina.cluster.session.DeltaManager"
			expireSessionsOnShutdown="false"
			printToScreen="true"
			debug="9"
			useDirtyFlag="false">

	<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="10.108.128.93"
			tcpListenPort="4001"
			tcpSelectorTimeout="100"
			tcpThreadCount="6"/>

	<Sender
			className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
			replicationMode="synchronous"/>

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


The following is added on web.xml of application.

<distributable/>

SERVER1:10.108.128.91

SERVER2:10.108.128.93
		
OS:both RedHat LinuxA3.0



There're some packet to confirm each other on "tcpdump".
Seesion Replication can be confirmed on Session Examplle .

Above all,are there any to notice insufficient settings or the settings?

_________________________________________________________________
楽しい絵文字でココロ伝わるメッセンジャー http://messenger.msn.co.jp/ 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Tomcat5.0.25 TCP Session Replication

Posted by "Filip Hanik (lists)" <de...@hanik.com>.
conf looks good,
do you have multicast enabling between your boxes?

Filip

-----Original Message-----
From: 岩崎 新 [mailto:karakidars@hotmail.com]
Sent: Friday, September 03, 2004 12:13 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat5.0.25 TCP Session Replication


On Tomcat5.0.25 it doesn't replicate, even though I try to do session 
replication.

Below is a setting.

server.xml of SERVER 1
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
			managerClassName="org.apache.catalina.cluster.session.DeltaManager"
			expireSessionsOnShutdown="false"
			printToScreen="true"
			debug="9"
			useDirtyFlag="false">

	<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="10.108.128.91"
			tcpListenPort="4001"
			tcpSelectorTimeout="100"
			tcpThreadCount="6"/>

	<Sender
			className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
			replicationMode="synchronous"/>

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

server.xml of SERVER 2
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
			managerClassName="org.apache.catalina.cluster.session.DeltaManager"
			expireSessionsOnShutdown="false"
			printToScreen="true"
			debug="9"
			useDirtyFlag="false">

	<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="10.108.128.93"
			tcpListenPort="4001"
			tcpSelectorTimeout="100"
			tcpThreadCount="6"/>

	<Sender
			className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
			replicationMode="synchronous"/>

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


The following is added on web.xml of application.

<distributable/>

SERVER1:10.108.128.91

SERVER2:10.108.128.93
		
OS:both RedHat LinuxA3.0



There're some packet to confirm each other on "tcpdump".
Seesion Replication can be confirmed on Session Examplle .

Above all,are there any to notice insufficient settings or the settings?

_________________________________________________________________
楽しい絵文字でココロ伝わるメッセンジャー http://messenger.msn.co.jp/ 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org