Hello I have the following:
node1=host1 (runnning jboss webapp)
node2=host2 which is VM (duplicate of host1 running jboss webapp)
I following all the instructions per:
http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2.0.cp06/html/Server_Configuration_Guide/clustering-http.html#d0e20564
and when I startup apache/jboss on host2 I get see the following:
1. Notice how initially mcast_addr=228.2.1.1 as it should per $JBOSS_HOME/bin/run.conf then it changes after Cache is starts to mcast_addr=228.1.2.30 :
JAVA_OPTS="-Djava.awt.headless=true -server -Xms1000m -Xmx1050m -XX:MaxPermSize=256m -Djboss.partition.name=AuthoringPartition -Djboss.partition.udpGroup=228.2.1.1 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true"
JBoss log:
2009-04-09 14:52:49,579 INFO [org.jboss.remoting.transport.socket.SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://10.56.22.234:3873/]
2009-04-09 14:52:53,915 INFO [org.jboss.ws.server.ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
2009-04-09 14:52:54,529 INFO [org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] SNMP agent going active
2009-04-09 14:52:54,733 INFO [org.jboss.cache.TreeCache] setting cluster properties from xml to: UDP(down_thread=false;enable_bundling=true;ip_ttl=2;loopback=false;max_bundle_size=64000;max_bundle_timeout=30;
mcast_addr=228.2.1.1;mcast_port=45577;mcast_recv_buf_size=25000000;mcast_send_buf_size=640000;ucast_recv_buf_size=20000000;ucast_send_buf_size=640000;up_thread=false;use_incoming_packet_handler=true;use_outgoing_packet_handler=true):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(down_thread=false;max_interval=100000;min_interval=20000;up_thread=false):FD_SOCK(down_thread=false;up_thread=false):FD(down_thread=false;max_tries=5;shun=true;timeout=20000;up_thread=false):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(discard_delivered_msgs=true;down_thread=false;gc_lag=50;max_xmit_size=60000;retransmit_timeout=300,600,1200,2400,4800;up_thread=false;use_mcast_xmit=false):UNICAST(down_thread=false;timeout=300,600,1200,2400,3600;up_thread=false):pbcast.STABLE(desired_avg_gossip=50000;down_thread=false;max_bytes=400000;stability_delay=1000;up_thread=false):pbcast.GMS(down_thread=false;join_retry_timeout=2000;join_timeout=3000;print_local_addr=true;shun=true;up_thread=false):FC(down_thread=false;max_credits=2000000;min_threshold=0.10;up_thread=false):FRAG2(down_thread=false;frag_size=60000;up_thread=false):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
2009-04-09 14:52:54,747 INFO [org.jboss.cache.TreeCache] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
2009-04-09 14:52:54,747 INFO [org.jboss.cache.TreeCache] cache mode is REPL_ASYNC
2009-04-09 14:52:54,942 WARN [org.jgroups.JChannel] option GET_STATE_EVENTS has been deprecated (it is always true now); this option is ignored
2009-04-09 14:52:54,980 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 10.56.22.234:39348
-------------------------------------------------------
2009-04-09 14:52:56,998 INFO [org.jboss.cache.TreeCache] viewAccepted(): [IP_node2:39348|0] [IP_node2:39348]
2009-04-09 14:52:57,007 INFO [org.jboss.cache.TreeCache] my local address is IP_node2:39348
2009-04-09 14:52:57,007 INFO [org.jboss.cache.TreeCache] state could not be retrieved (must be first member in group)
2009-04-09 14:52:57,007 INFO [org.jboss.cache.TreeCache] Cache is started!!
2009-04-09 14:52:57,169 INFO [org.jboss.cache.TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;
mcast_addr=228.1.2.30;mcast_port=17733;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=false;max_tries=3;shun=true;timeout=2000;up_thread=false):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2009-04-09 14:52:57,180 INFO [org.jboss.cache.TreeCache] setEvictionPolicyConfig(): [config: null]
2009-04-09 14:52:57,181 WARN [org.jboss.cache.TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
2009-04-09 14:52:57,181 INFO [org.jboss.cache.TreeCache] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
2009-04-09 14:52:57,193 INFO [org.jboss.cache.TreeCache] cache mode is local, will not create the channel
2009-04-09 14:52:57,194 INFO [org.jboss.cache.eviction.LRUPolicy] Starting eviction policy using the provider: org.jboss.cache.eviction.LRUPolicy
2009-04-09 14:52:57,194 INFO [org.jboss.cache.eviction.LRUPolicy] Starting a eviction timer with wake up interval of (secs) 5
2009-04-09 14:52:57,195 INFO [org.jboss.cache.TreeCache] Cache is started!!
2. Seeing the following in my apache error log:
[Thu Apr 09 14:52:24.593 2009] [3690:3097320544] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'localhost' in uri map post processing.
[Thu Apr 09 14:52:24.593 2009] [3690:3097320544] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'localhost' in uri map post processing.
3. When I attempt starting up the other node, node1, its doesnt see node2...I would expect to see after "viewAccepted():" the following
INFO [org.jboss.cache.TreeCache] viewAccepted(): [IP_node1:32963|1] [IP_node1:32963, IP_node2:35451]
but I see the following:
INFO [org.jboss.cache.TreeCache] viewAccepted(): [IP_node1:32963|1] [IP_node1:32963]
Any help would be much appreciated!! Thanks