Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 10682 invoked from network); 22 Feb 2008 13:39:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 13:39:25 -0000 Received: (qmail 25501 invoked by uid 500); 22 Feb 2008 13:39:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 25474 invoked by uid 500); 22 Feb 2008 13:39:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 25463 invoked by uid 99); 22 Feb 2008 13:39:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 05:39:07 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=FS_REPLICA,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [88.198.21.251] (HELO smtp.it-zo.de) (88.198.21.251) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 13:38:33 +0000 Received: from localhost (mail.it-zo.de [127.0.0.1]) by smtp.it-zo.de (Postfix) with SMTP id 6D6AE26E0012 for ; Fri, 22 Feb 2008 13:26:29 +0000 (UTC) Received: from [192.168.1.2] (dslb-084-061-240-014.pools.arcor-ip.net [84.61.240.14]) by smtp.it-zo.de (Postfix) with ESMTP id 6EE5126E0011 for ; Fri, 22 Feb 2008 13:26:27 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <640358900802220248y77d39b37j6535d0dea92e2117@mail.gmail.com> References: <640358900802220248y77d39b37j6535d0dea92e2117@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-17--105470766 Message-Id: <8C8840E9-4CA6-46F1-9918-0F916D5E9819@objektpark.de> From: Peter Rossbach Subject: Re: Tomcat Cluster -> node02 is invalid, removed or not replicated at this node. Date: Fri, 22 Feb 2008 14:38:32 +0100 To: "Tomcat Users List" X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-17--105470766 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed HI Andrew, Your mcastDropTime="1000" is to low. Please set it to 30000 and it is true that you must wait > 35 sec before you can restart a cluster node. Use the Java Service Wrapper or add this to your start scripts to configure this. Peter Am 22.02.2008 um 11:48 schrieb Andrew Hole: > Hello guys! > > > > We are trying to test Tomcat clustering but we are getting some > problems. > Sometimes (Log2) everything works fine but in other cases the cluster > doesn't work (Log1). The only difference is the time that we wait > after we > shutdown a node. When we make a request after shutdown a node, cluster > doesn't work, but if we wait more time (1 minute more or less), the > cluster > works fine and we can proceed making requests. > > > > Log 1: > > 22/Fev/2008 10:31:11 > org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator > > FINE: Context /outpatient: Primarity of session > 1E4B56ED32E80A15EE5B40E5C83FB49E.node02 in request attribute > org.apache.catalina.cluster.tcp.isPrimarySession is false. > > 22/Fev/2008 10:31:11 > org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage > > INFO: SEND 22/Fev/2008:10:31:11 16 - > 1E4B56ED32E80A15EE5B40E5C83FB49E.node02#-#localhost#-#/outpatient#- > #0#-#1203676271418 > > 22/Fev/2008 10:31:13 > org.apache.catalina.cluster.tcp.ReplicationValveresetDeltaRequest > > FINE: Cluster is standalone: reset Session Request Delta at context > /outpatient > > 22/Fev/2008 10:31:15 > org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator > > FINE: Context /outpatient: Requested session > 1E4B56ED32E80A15EE5B40E5C83FB49E.node02 is invalid, removed or not > replicated at this node. > > > > Log 2: > > 22/Fev/2008 10:34:08 > org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator > > FINE: Context /outpatient: Primarity of session > 76C8888FC5DD3CF130EA0A10875E7B7C.node01 in request attribute > org.apache.catalina.cluster.tcp.isPrimarySession is false. > > 22/Fev/2008 10:34:08 > org.apache.catalina.cluster.tcp.SimpleTcpClusterlogSendMessage > > INFO: SEND 22/Fev/2008:10:34:08 2 - > 76C8888FC5DD3CF130EA0A10875E7B7C.node01#-#localhost#-#/outpatient#- > #0#-#1203676448864 > > 22/Fev/2008 10:34:10 > org.apache.catalina.cluster.tcp.ReplicationValveresetDeltaRequest > > FINE: Cluster is standalone: reset Session Request Delta at context > /outpatient > > 22/Fev/2008 10:34:38 > org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator > > FINE: Context /outpatient: Primarity of session > 76C8888FC5DD3CF130EA0A10875E7B7C.node02 in request attribute > org.apache.catalina.cluster.tcp.isPrimarySession is true. > > > > Our cluster setup: > > > > className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" > > doClusterLog="true" > > clusterLogName="clusterlog" > > manager.className=" > org.apache.catalina.cluster.session.DeltaManager" > > manager.expireSessionsOnShutdown="false" > > manager.notifyListenersOnReplication="false" > > manager.notifySessionListenersOnReplication="false" > > manager.sendAllSessions="false" > > manager.sendAllSessionsSize="500" > > manager.sendAllSessionsWaitTime="20"> > > > className=" > org.apache.catalina.cluster.mcast.McastService" > > mcastAddr="228.0.0.4" > > > mcastClusterDomain="d10" > > > mcastPort="45564" > > mcastFrequency="1000" > > mcastDropTime="1000" > > > recoveryCounter="10" > > recoveryEnabled="true" > > recoverySleepTime="5000"/> > > > className=" > org.apache.catalina.cluster.tcp.ReplicationListener" > > tcpListenAddress="auto" > > tcpListenPort="9016" > > tcpSelectorTimeout="100" > > tcpThreadCount="6"/> > > > className=" > org.apache.catalina.cluster.tcp.ReplicationTransmitter" > > replicationMode="fastasyncqueue" > > recoverTimeout="500" > > > stateTransferTimeout="1" > > recoverCounter="6" > > doTransmitterProcessingStats="true" > > doProcessingStats="true" > > doWaitAckStats="true" > > queueTimeWait="true" > > queueDoStats="true" > > queueCheckLock="true" > > ackTimeout="1500" > > waitForAck="true" > > keepAliveTimeout="80000" > > keepAliveMaxRequestCount="-1"/> > > > > filter=".*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.* > \.html;.*\.txt;" > > primaryIndicator="true" > debug="1" /> > > > enabled="true" > debug="1"/> > > > > > > > > > > > > > > > > Could you help us to find the problem and get solution? > > Thanks a lot --Apple-Mail-17--105470766--