FarmWarDeployer Tomcat 7.0.12 Clustering Help

2011-04-29 Thread Seth Lenzi


I'm trying to use org.apache.catalina.ha.deploy.FarmWarDeployer with 
Tomcat 7.0.12 to deploy my war files to a Tomcat cluster (two Tomcat's 
both version 7.0.12.)


They war file is successfully deployed to both Tomcats but then the war 
is immediately un-deployed from one of them.


The following error is logged (ClusterTest is the application name.)

SEVERE: Application [/ClusterTest] is being serviced. Touch war file 
[ClusterTest.war] again!


-S


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FarmWarDeployer Tomcat 7.0.12 Clustering Help

2011-04-29 Thread Mark Thomas
On 29/04/2011 15:29, Seth Lenzi wrote:
 
 I'm trying to use org.apache.catalina.ha.deploy.FarmWarDeployer with
 Tomcat 7.0.12 to deploy my war files to a Tomcat cluster (two Tomcat's
 both version 7.0.12.)
 
 They war file is successfully deployed to both Tomcats but then the war
 is immediately un-deployed from one of them.
 
 The following error is logged (ClusterTest is the application name.)
 
 SEVERE: Application [/ClusterTest] is being serviced. Touch war file
 [ClusterTest.war] again!

There isn't actually a question here...

When we know what question you are asking, we'll also need to know the
configuration you are using for the FarmWarDeployer.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: FarmWarDeployer Tomcat 7.0.12 Clustering Help

2011-04-29 Thread Seth Lenzi


Sorry, I thought the question was obvious. It deploys but then undeploys 
with the severe error I mentioned below. I don't want the error I 
want the FarmWarDeployer to deploy the war to both Tomcats and 
remain deployed...


C:/Tomcats/apache-tomcat-7.0.12_node1
C:/Tomcats/apache-tomcat-7.0.12_node2

This is from node1 server.xml.  It's virtually the same in node2 
server.xml except the jvmRoute value is worker2 and the deployDir points 
to node2 /webapps.


Engine name=Catalina defaultHost=localhost jvmRoute=worker1
   Realm className=org.apache.catalina.realm.LockOutRealm
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase/
   /Realm
   Host name=localhost  appBase=webapps unpackWARs=true 
autoDeploy=true

  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 Deployer 
className=org.apache.catalina.ha.deploy.FarmWarDeployer

 tempDir=C:/Tomcats/tomcat_deploy_temp/
 deployDir=C:/Tomcats/apache-tomcat-7.0.12_node1/webapps/
 watchDir=C:/Tomcats/tomcat_deploy_listen/
 watchEnabled=false/
 /Cluster   
Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs

  prefix=localhost_access_log. suffix=.txt
  pattern=%h %l %u %t quot;%rquot; %s %b resolveHosts=false/
   /Host
/Engine


On 4/29/2011 10:36 AM, Mark Thomas wrote:

On 29/04/2011 15:29, Seth Lenzi wrote:


I'm trying to use org.apache.catalina.ha.deploy.FarmWarDeployer with
Tomcat 7.0.12 to deploy my war files to a Tomcat cluster (two Tomcat's
both version 7.0.12.)

They war file is successfully deployed to both Tomcats but then the war
is immediately un-deployed from one of them.

The following error is logged (ClusterTest is the application name.)

SEVERE: Application [/ClusterTest] is being serviced. Touch war file
[ClusterTest.war] again!


There isn't actually a question here...

When we know what question you are asking, we'll also need to know the
configuration you are using for the FarmWarDeployer.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Clustering help

2009-07-20 Thread Mitch Claborn
FYI - running one of the instances in a VMWare virtual machine works fine.

Mitch

Mitch Claborn wrote:
 Yes to both questions.  What a bummer.  I'll try running the second
 instance on a VM an see what happens.

 Mitch


 Filip Hanik - Dev Lists wrote:
   
 Wait a second, are both your instances on the same machine? Are you
 running Apache Tomcat 6.0.20
 there was a serious regression, with the loopback turned off.

 https://issues.apache.org/bugzilla/show_bug.cgi?id=47308

 Filip

 On 07/17/2009 08:54 AM, Mitch Claborn wrote:
 
 ping 224.0.0.1
 PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data.
 64 bytes from 192.168.3.254: icmp_seq=1 ttl=255 time=0.895 ms
 64 bytes from 192.168.3.254: icmp_seq=2 ttl=255 time=0.693 ms
 64 bytes from 192.168.3.254: icmp_seq=3 ttl=255 time=0.686 ms


 Mitch


 Filip Hanik - Dev Lists wrote:
   
   
 correct, you're members are not discovering each other.
 and its purely multicast related.

 what do you get when you do

 ping 224.0.0.1

 Filip

 On 07/16/2009 05:16 PM, Mitch Claborn wrote:
 
 
 Not having much luck getting a simple cluster to work.   Using
 nginx as
 a front end/load balancer against two tomcat instances on the same
 machine (for now).  SuSE Linux 11.1.  I see this message in the
 startup
 log, making me think the tomcat instances are not talking:

 INFO: Manager [localhost#/Struts1]: skipping state transfer. No
 members
 active in cluster group.

 I have a simple test page in the web app that shows the session ID and
 the instance of tomcat that it is hitting (by server port number) and
 the session id changes whenever ngnix directs the request to a
 different
 instance.

 as far as I can tell, multicast is enabled on eth0:
 eth0  Link encap:Ethernet  HWaddr 00:1D:09:C4:C2:9A
 inet addr:192.168.3.5  Bcast:192.168.3.255
 Mask:255.255.255.0
 inet6 addr: fe80::21d:9ff:fec4:c29a/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 I've added a route for the mulitcast address to eth0:
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric Ref   
 Use
 Iface
 228.0.0.4   0.0.0.0 255.255.255.255 UH0  0
 0 eth0
 192.168.3.0 0.0.0.0 255.255.255.0   U 1  0
 0 eth0
 127.0.0.0   0.0.0.0 255.0.0.0   U 0  0
 0 lo
 0.0.0.0 192.168.3.254   0.0.0.0 UG0  0
 0 eth0

 localhost is mapped to the eth0 interface:
 ping localhost
 PING mlcx300 (192.168.3.5) 56(84) bytes of data.
 64 bytes from mlcx300 (192.168.3.5): icmp_seq=1 ttl=64 time=0.046 ms



 I've tried the simple config:
 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/

 as well as the detailed config below.  Any pointers or ideas are
 welcome.

 Cluster
 className=org.apache.catalina.ha.tcp.SimpleTcpCluster
  channelSendOptions=6

   Manager
 className=org.apache.catalina.ha.session.DeltaManager
name=MMClusterManatger
expireSessionsOnShutdown=false
notifyListenersOnReplication=true/

   Channel
 className=org.apache.catalina.tribes.group.GroupChannel
 Membership
 className=org.apache.catalina.tribes.membership.McastService
 address=228.0.0.4
 port=45564
 frequency=500
 dropTime=3000/
 Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
   address=auto
   port=5000
   autoBind=100
   selectorTimeout=100
   minThreads=2
   maxThreads=6/

 Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter

   Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender


 poolSize=25/
 /Sender
 Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/


 Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/


 Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/


   /Channel

   Valve
 className=org.apache.catalina.ha.tcp.ReplicationValve
 
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;
  statistics=true
  /

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

   ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/


 /Cluster



 Here are the cluster related messages from the startup of instance 2:

 INFO: Cluster is about to 

Re: Clustering help

2009-07-17 Thread Filip Hanik - Dev Lists


correct, you're members are not discovering each other.
and its purely multicast related.

what do you get when you do

ping 224.0.0.1

Filip

On 07/16/2009 05:16 PM, Mitch Claborn wrote:

Not having much luck getting a simple cluster to work.   Using nginx as
a front end/load balancer against two tomcat instances on the same
machine (for now).  SuSE Linux 11.1.  I see this message in the startup
log, making me think the tomcat instances are not talking:

INFO: Manager [localhost#/Struts1]: skipping state transfer. No members
active in cluster group.

I have a simple test page in the web app that shows the session ID and
the instance of tomcat that it is hitting (by server port number) and
the session id changes whenever ngnix directs the request to a different
instance.

as far as I can tell, multicast is enabled on eth0:
eth0  Link encap:Ethernet  HWaddr 00:1D:09:C4:C2:9A
   inet addr:192.168.3.5  Bcast:192.168.3.255  Mask:255.255.255.0
   inet6 addr: fe80::21d:9ff:fec4:c29a/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

I've added a route for the mulitcast address to eth0:
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
228.0.0.4   0.0.0.0 255.255.255.255 UH0  00 eth0
192.168.3.0 0.0.0.0 255.255.255.0   U 1  00 eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
0.0.0.0 192.168.3.254   0.0.0.0 UG0  00 eth0

localhost is mapped to the eth0 interface:
ping localhost
PING mlcx300 (192.168.3.5) 56(84) bytes of data.
64 bytes from mlcx300 (192.168.3.5): icmp_seq=1 ttl=64 time=0.046 ms



I've tried the simple config:
Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/

as well as the detailed config below.  Any pointers or ideas are welcome.

   Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
channelSendOptions=6

 Manager className=org.apache.catalina.ha.session.DeltaManager
  name=MMClusterManatger
  expireSessionsOnShutdown=false
  notifyListenersOnReplication=true/

 Channel className=org.apache.catalina.tribes.group.GroupChannel
   Membership
className=org.apache.catalina.tribes.membership.McastService
   address=228.0.0.4
   port=45564
   frequency=500
   dropTime=3000/
   Receiver
className=org.apache.catalina.tribes.transport.nio.NioReceiver
 address=auto
 port=5000
 autoBind=100
 selectorTimeout=100
 minThreads=2
 maxThreads=6/

   Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
 Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
poolSize=25/
   /Sender
   Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
   Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
   Interceptor
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
 /Channel

 Valve className=org.apache.catalina.ha.tcp.ReplicationValve
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;
statistics=true
/

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

 ClusterListener
className=org.apache.catalina.ha.session.ClusterSessionListener/


   /Cluster



Here are the cluster related messages from the startup of instance 2:

INFO: Cluster is about to start
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/192.168.3.5:4001
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start level:4
Jul 16, 2009 6:03:27 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:4
Jul 16, 2009 6:03:27 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start level:8
Jul 16, 2009 6:03:28 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:8
Jul 16, 2009 6:03:29 PM 

Re: Clustering help

2009-07-17 Thread Mitch Claborn
ping 224.0.0.1
PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data.
64 bytes from 192.168.3.254: icmp_seq=1 ttl=255 time=0.895 ms
64 bytes from 192.168.3.254: icmp_seq=2 ttl=255 time=0.693 ms
64 bytes from 192.168.3.254: icmp_seq=3 ttl=255 time=0.686 ms


Mitch


Filip Hanik - Dev Lists wrote:

 correct, you're members are not discovering each other.
 and its purely multicast related.

 what do you get when you do

 ping 224.0.0.1

 Filip

 On 07/16/2009 05:16 PM, Mitch Claborn wrote:
 Not having much luck getting a simple cluster to work.   Using nginx as
 a front end/load balancer against two tomcat instances on the same
 machine (for now).  SuSE Linux 11.1.  I see this message in the startup
 log, making me think the tomcat instances are not talking:

 INFO: Manager [localhost#/Struts1]: skipping state transfer. No members
 active in cluster group.

 I have a simple test page in the web app that shows the session ID and
 the instance of tomcat that it is hitting (by server port number) and
 the session id changes whenever ngnix directs the request to a different
 instance.

 as far as I can tell, multicast is enabled on eth0:
 eth0  Link encap:Ethernet  HWaddr 00:1D:09:C4:C2:9A
inet addr:192.168.3.5  Bcast:192.168.3.255 
 Mask:255.255.255.0
inet6 addr: fe80::21d:9ff:fec4:c29a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 I've added a route for the mulitcast address to eth0:
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface
 228.0.0.4   0.0.0.0 255.255.255.255 UH0  0   
 0 eth0
 192.168.3.0 0.0.0.0 255.255.255.0   U 1  0   
 0 eth0
 127.0.0.0   0.0.0.0 255.0.0.0   U 0  0   
 0 lo
 0.0.0.0 192.168.3.254   0.0.0.0 UG0  0   
 0 eth0

 localhost is mapped to the eth0 interface:
 ping localhost
 PING mlcx300 (192.168.3.5) 56(84) bytes of data.
 64 bytes from mlcx300 (192.168.3.5): icmp_seq=1 ttl=64 time=0.046 ms



 I've tried the simple config:
 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/

 as well as the detailed config below.  Any pointers or ideas are
 welcome.

Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=6

  Manager
 className=org.apache.catalina.ha.session.DeltaManager
   name=MMClusterManatger
   expireSessionsOnShutdown=false
   notifyListenersOnReplication=true/

  Channel
 className=org.apache.catalina.tribes.group.GroupChannel
Membership
 className=org.apache.catalina.tribes.membership.McastService
address=228.0.0.4
port=45564
frequency=500
dropTime=3000/
Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
  address=auto
  port=5000
  autoBind=100
  selectorTimeout=100
  minThreads=2
  maxThreads=6/

Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter
  Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender

 poolSize=25/
/Sender
Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/

Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/

Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/

  /Channel

  Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;
 statistics=true
 /

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

  ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/


/Cluster



 Here are the cluster related messages from the startup of instance 2:

 INFO: Cluster is about to start
 Jul 16, 2009 6:03:26 PM
 org.apache.catalina.tribes.transport.ReceiverBase bind
 INFO: Receiver Server Socket bound to:/192.168.3.5:4001
 Jul 16, 2009 6:03:26 PM
 org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
 INFO: Setting cluster mcast soTimeout to 500
 Jul 16, 2009 6:03:26 PM
 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
 INFO: Sleeping for 1000 milliseconds to establish cluster membership,
 start level:4
 Jul 16, 2009 6:03:27 PM
 org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
 INFO: Done sleeping, membership 

Re: Clustering help

2009-07-17 Thread Filip Hanik - Dev Lists
Wait a second, are both your instances on the same machine? Are you 
running Apache Tomcat 6.0.20

there was a serious regression, with the loopback turned off.

https://issues.apache.org/bugzilla/show_bug.cgi?id=47308

Filip

On 07/17/2009 08:54 AM, Mitch Claborn wrote:

ping 224.0.0.1
PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data.
64 bytes from 192.168.3.254: icmp_seq=1 ttl=255 time=0.895 ms
64 bytes from 192.168.3.254: icmp_seq=2 ttl=255 time=0.693 ms
64 bytes from 192.168.3.254: icmp_seq=3 ttl=255 time=0.686 ms


Mitch


Filip Hanik - Dev Lists wrote:
   

correct, you're members are not discovering each other.
and its purely multicast related.

what do you get when you do

ping 224.0.0.1

Filip

On 07/16/2009 05:16 PM, Mitch Claborn wrote:
 

Not having much luck getting a simple cluster to work.   Using nginx as
a front end/load balancer against two tomcat instances on the same
machine (for now).  SuSE Linux 11.1.  I see this message in the startup
log, making me think the tomcat instances are not talking:

INFO: Manager [localhost#/Struts1]: skipping state transfer. No members
active in cluster group.

I have a simple test page in the web app that shows the session ID and
the instance of tomcat that it is hitting (by server port number) and
the session id changes whenever ngnix directs the request to a different
instance.

as far as I can tell, multicast is enabled on eth0:
eth0  Link encap:Ethernet  HWaddr 00:1D:09:C4:C2:9A
inet addr:192.168.3.5  Bcast:192.168.3.255
Mask:255.255.255.0
inet6 addr: fe80::21d:9ff:fec4:c29a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

I've added a route for the mulitcast address to eth0:
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
228.0.0.4   0.0.0.0 255.255.255.255 UH0  0
0 eth0
192.168.3.0 0.0.0.0 255.255.255.0   U 1  0
0 eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  0
0 lo
0.0.0.0 192.168.3.254   0.0.0.0 UG0  0
0 eth0

localhost is mapped to the eth0 interface:
ping localhost
PING mlcx300 (192.168.3.5) 56(84) bytes of data.
64 bytes from mlcx300 (192.168.3.5): icmp_seq=1 ttl=64 time=0.046 ms



I've tried the simple config:
Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/

as well as the detailed config below.  Any pointers or ideas are
welcome.

Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=6

  Manager
className=org.apache.catalina.ha.session.DeltaManager
   name=MMClusterManatger
   expireSessionsOnShutdown=false
   notifyListenersOnReplication=true/

  Channel
className=org.apache.catalina.tribes.group.GroupChannel
Membership
className=org.apache.catalina.tribes.membership.McastService
address=228.0.0.4
port=45564
frequency=500
dropTime=3000/
Receiver
className=org.apache.catalina.tribes.transport.nio.NioReceiver
  address=auto
  port=5000
  autoBind=100
  selectorTimeout=100
  minThreads=2
  maxThreads=6/

Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
  Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender

poolSize=25/
/Sender
Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/

Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/

Interceptor
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/

  /Channel

  Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;
 statistics=true
 /

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

  ClusterListener
className=org.apache.catalina.ha.session.ClusterSessionListener/


/Cluster



Here are the cluster related messages from the startup of instance 2:

INFO: Cluster is about to start
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/192.168.3.5:4001
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 

Re: Clustering help

2009-07-17 Thread Mitch Claborn
Yes to both questions.  What a bummer.  I'll try running the second
instance on a VM an see what happens.

Mitch


Filip Hanik - Dev Lists wrote:
 Wait a second, are both your instances on the same machine? Are you
 running Apache Tomcat 6.0.20
 there was a serious regression, with the loopback turned off.

 https://issues.apache.org/bugzilla/show_bug.cgi?id=47308

 Filip

 On 07/17/2009 08:54 AM, Mitch Claborn wrote:
 ping 224.0.0.1
 PING 224.0.0.1 (224.0.0.1) 56(84) bytes of data.
 64 bytes from 192.168.3.254: icmp_seq=1 ttl=255 time=0.895 ms
 64 bytes from 192.168.3.254: icmp_seq=2 ttl=255 time=0.693 ms
 64 bytes from 192.168.3.254: icmp_seq=3 ttl=255 time=0.686 ms


 Mitch


 Filip Hanik - Dev Lists wrote:
   
 correct, you're members are not discovering each other.
 and its purely multicast related.

 what do you get when you do

 ping 224.0.0.1

 Filip

 On 07/16/2009 05:16 PM, Mitch Claborn wrote:
 
 Not having much luck getting a simple cluster to work.   Using
 nginx as
 a front end/load balancer against two tomcat instances on the same
 machine (for now).  SuSE Linux 11.1.  I see this message in the
 startup
 log, making me think the tomcat instances are not talking:

 INFO: Manager [localhost#/Struts1]: skipping state transfer. No
 members
 active in cluster group.

 I have a simple test page in the web app that shows the session ID and
 the instance of tomcat that it is hitting (by server port number) and
 the session id changes whenever ngnix directs the request to a
 different
 instance.

 as far as I can tell, multicast is enabled on eth0:
 eth0  Link encap:Ethernet  HWaddr 00:1D:09:C4:C2:9A
 inet addr:192.168.3.5  Bcast:192.168.3.255
 Mask:255.255.255.0
 inet6 addr: fe80::21d:9ff:fec4:c29a/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 I've added a route for the mulitcast address to eth0:
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric Ref   
 Use
 Iface
 228.0.0.4   0.0.0.0 255.255.255.255 UH0  0
 0 eth0
 192.168.3.0 0.0.0.0 255.255.255.0   U 1  0
 0 eth0
 127.0.0.0   0.0.0.0 255.0.0.0   U 0  0
 0 lo
 0.0.0.0 192.168.3.254   0.0.0.0 UG0  0
 0 eth0

 localhost is mapped to the eth0 interface:
 ping localhost
 PING mlcx300 (192.168.3.5) 56(84) bytes of data.
 64 bytes from mlcx300 (192.168.3.5): icmp_seq=1 ttl=64 time=0.046 ms



 I've tried the simple config:
 Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/

 as well as the detailed config below.  Any pointers or ideas are
 welcome.

 Cluster
 className=org.apache.catalina.ha.tcp.SimpleTcpCluster
  channelSendOptions=6

   Manager
 className=org.apache.catalina.ha.session.DeltaManager
name=MMClusterManatger
expireSessionsOnShutdown=false
notifyListenersOnReplication=true/

   Channel
 className=org.apache.catalina.tribes.group.GroupChannel
 Membership
 className=org.apache.catalina.tribes.membership.McastService
 address=228.0.0.4
 port=45564
 frequency=500
 dropTime=3000/
 Receiver
 className=org.apache.catalina.tribes.transport.nio.NioReceiver
   address=auto
   port=5000
   autoBind=100
   selectorTimeout=100
   minThreads=2
   maxThreads=6/

 Sender
 className=org.apache.catalina.tribes.transport.ReplicationTransmitter

   Transport
 className=org.apache.catalina.tribes.transport.nio.PooledParallelSender


 poolSize=25/
 /Sender
 Interceptor
 className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/


 Interceptor
 className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/


 Interceptor
 className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/


   /Channel

   Valve
 className=org.apache.catalina.ha.tcp.ReplicationValve
 
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;
  statistics=true
  /

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

   ClusterListener
 className=org.apache.catalina.ha.session.ClusterSessionListener/


 /Cluster



 Here are the cluster related messages from the startup of instance 2:

 INFO: Cluster is about to start
 Jul 16, 2009 6:03:26 PM
 org.apache.catalina.tribes.transport.ReceiverBase bind
 INFO: Receiver Server Socket bound 

Clustering help

2009-07-16 Thread Mitch Claborn
Not having much luck getting a simple cluster to work.   Using nginx as
a front end/load balancer against two tomcat instances on the same
machine (for now).  SuSE Linux 11.1.  I see this message in the startup
log, making me think the tomcat instances are not talking:

INFO: Manager [localhost#/Struts1]: skipping state transfer. No members
active in cluster group.

I have a simple test page in the web app that shows the session ID and
the instance of tomcat that it is hitting (by server port number) and
the session id changes whenever ngnix directs the request to a different
instance.

as far as I can tell, multicast is enabled on eth0:
eth0  Link encap:Ethernet  HWaddr 00:1D:09:C4:C2:9A
  inet addr:192.168.3.5  Bcast:192.168.3.255  Mask:255.255.255.0
  inet6 addr: fe80::21d:9ff:fec4:c29a/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

I've added a route for the mulitcast address to eth0:
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
228.0.0.4   0.0.0.0 255.255.255.255 UH0  00 eth0
192.168.3.0 0.0.0.0 255.255.255.0   U 1  00 eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
0.0.0.0 192.168.3.254   0.0.0.0 UG0  00 eth0

localhost is mapped to the eth0 interface:
ping localhost
PING mlcx300 (192.168.3.5) 56(84) bytes of data.
64 bytes from mlcx300 (192.168.3.5): icmp_seq=1 ttl=64 time=0.046 ms



I've tried the simple config:
Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/

as well as the detailed config below.  Any pointers or ideas are welcome.

  Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
   channelSendOptions=6
   
Manager className=org.apache.catalina.ha.session.DeltaManager
 name=MMClusterManatger
 expireSessionsOnShutdown=false
 notifyListenersOnReplication=true/
   
Channel className=org.apache.catalina.tribes.group.GroupChannel
  Membership
className=org.apache.catalina.tribes.membership.McastService
  address=228.0.0.4
  port=45564
  frequency=500
  dropTime=3000/
  Receiver
className=org.apache.catalina.tribes.transport.nio.NioReceiver
address=auto
port=5000
autoBind=100
selectorTimeout=100
minThreads=2
maxThreads=6/
 
  Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender
poolSize=25/
  /Sender
  Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
  Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
  Interceptor
className=org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor/
/Channel
   
Valve className=org.apache.catalina.ha.tcp.ReplicationValve
   filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;
   statistics=true
   /
   
Deployer className=org.apache.catalina.ha.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
   
ClusterListener
className=org.apache.catalina.ha.session.ClusterSessionListener/
   
   
  /Cluster



Here are the cluster related messages from the startup of instance 2:

INFO: Cluster is about to start
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/192.168.3.5:4001
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
Jul 16, 2009 6:03:26 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start level:4
Jul 16, 2009 6:03:27 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:4
Jul 16, 2009 6:03:27 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start level:8
Jul 16, 2009 6:03:28 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:8
Jul 16, 2009 6:03:29 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager /Struts1 to cluster element Engine with name Catalina
Jul 16, 2009 6:03:29 PM org.apache.catalina.ha.session.DeltaManager