- - PR -
Tomcat5.0.25セッションレプリケーション機能について
1
| 投稿者 | 投稿内容 |
|---|---|
|
投稿日時: 2004-09-01 09:51
Tomcat5.0.25にて、セッションレプリケーションを行わせようとしていますが、レプリケーションしません。
設定は以下のように行っています。 サーバー1のserver.xml <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> サーバー2のserver.xml <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> アプリケーションのweb.xmlには、以下を追加してあります。 <distributable/> サーバー1:10.108.128.91 サーバー2:10.108.128.93 OS:共にRedHatLinuxAS3.0 tcpdumpではお互いの生存を確認するパケットが飛んでいます。 セッションレプリケーションの確認はSessionExampleで行っています。 以上で、設定に不備または設定をする上で気をつける点などはありますでしょうか? |
1
