Clustering troubles.

2005-04-27 Thread Rod Fitzsimmons Frey
I'm setting up a 2-node Tomcat cluster with jk_mod doing the 
loadbalancing.  The loadbalancing went without a hitch, or at least 
without hitches that maillist archives couldn't untie.  But now I'd like 
to have in-memory session replication between the two tomcat nodes.  I 
uncommented the cluster element in the server.xml file on each node, but 
clustering didn't magically happen as I hoped it would: no replication 
takes place.

I'm using a page in the jsp-examples webapp that sets a simple attribute 
on the session --  session.setAttribute(hello, howdy);

When starting up Tomcat on each node, I get these log entries:
Apr 27, 2005 12:30:28 PM 
org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager at /jsp-examples
Apr 27, 2005 12:30:28 PM 
org.apache.catalina.cluster.session.DeltaManager start
INFO: Manager [/jsp-examples]: skipping state transfer. No members 
active in cluster group.

I get this on both nodes, even if I start one node, create a session, 
then start node 2.

Multicast is enabled: at least, when I ping 224.0.0.1, I get responses 
from all my interfaces.  Do I need to do something to join 228.0.0.4, or 
is that a programmatic thing?

I've pasted my workers.properties below (minus comments), and the 
cluster element from my server.xml.  I've tried adding a name 
attribute to the cluster element and to each of its child elements in 
turn, without effect.

TIA!
Rod
# workers.properties -
workers.java_home=/usr/java/jre1.5.0_02
ps=/
#
#-- ADVANCED MODE 
#-
#
worker.list=realserver1, realserver2, realserver3, realserver4, 
loadbalancer, jkstatus

worker.realserver1.port=8009
worker.realserver1.host=localhost
worker.realserver1.type=ajp13
worker.realserver1.lbfactor=100
worker.realserver2.port=8010
worker.realserver2.host=localhost
worker.realserver2.type=ajp13
worker.realserver2.lbfactor=100
worker.realserver3.port=8009
worker.realserver3.host=marmot
worker.realserver3.type=ajp13
worker.realserver3.lbfactor=100
worker.realserver4.port=8010
worker.realserver4.host=marmot
worker.realserver4.type=ajp13
worker.realserver4.lbfactor=100
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=realserver1, realserver2, 
realserver3, realserver4

worker.jkstatus.type=status
# end workers.properties
!-- server.xml cluster element --
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/
 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/
/Cluster
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Clustering troubles.

2005-04-27 Thread Rod Fitzsimmons Frey
Forgot to mention:   Java runtime is jre1.5.0_02
Rod Fitzsimmons Frey wrote:
I'm setting up a 2-node Tomcat cluster with jk_mod doing the 
loadbalancing.  The loadbalancing went without a hitch, or at least 
without hitches that maillist archives couldn't untie.  But now I'd 
like to have in-memory session replication between the two tomcat 
nodes.  I uncommented the cluster element in the server.xml file on 
each node, but clustering didn't magically happen as I hoped it 
would: no replication takes place.
... etc

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: no host matches server name localhost

2005-04-27 Thread Rod Fitzsimmons Frey
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try to 
connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, so 
I'm not sure what to check.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: no host matches server name localhost

2005-04-27 Thread Rod Fitzsimmons Frey
I should have looked at your message more closely.
The error is probably with your default host.  Look in your 
{tomcat-home}/conf/server.xml file.  Look for something like

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
Post your server.xml file if you can't work it out.
Rod
Jonathan August wrote:
This is my /etc/hosts:
[jon ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain   localhost

On Apr 27, 2005, at 3:52 PM, Rod Fitzsimmons Frey wrote:
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try to 
connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, 
so I'm not sure what to check.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Jon August
Internection
1-866-345-HOST

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]