[jboss-user] [Clustering/JBoss] - Re: JBossAS 4.2.0, TCP Stack, Segmenting Partitions
nhelder
do-not-reply at jboss.com
Wed Jul 11 12:09:28 EDT 2007
Thanks for the tip, but changing the TCP start_port (along with changing the partition name) doesn't seem to do the trick... I still see messages along the lines of:
anonymous wrote : 2007-07-11 10:44:15,658 WARN [org.jgroups.protocols.UDP] discarded message from different group "DefaultPartition-EntityCache" (our group is "xyz_partition-EntityCache"). Sender was xxx.xxx.12.185:2961
>From this (older) thread http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840501#3840501 I'm led to believe these are legitimate WARN messages - that the partition I'm creating is not "validly" unique.
So, I guess I'm still wondering how to properly segment my partition from the other one... any additional suggestions would be greatly appreciated.
Thanks,
- Nathan
PS. The "other one" in this case is another developer's machine - interestingly, one that isn't using the TCP stack at all, just the default UDP stack. And when I don't specify a different partition name on my machine, the two JBoss servers actually do appear to cluster successfully... which is somewhat surprising to me. I wouldn't have thought a TCP based server would accept views from a UDP based server. But anyway.
PPS. For reference, here's the JGroups section of my cluster-service.xml file:
<!-- The JGroups protocol configuration -->
| <attribute name="PartitionConfig">
| <!--
| The default UDP stack:
| - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
| appropriate NIC IP address, e.g bind_addr="192.168.0.2".
| - On Windows machines, because of the media sense feature being broken with multicast
| (even after disabling media sense) set the UDP protocol's loopback attribute to true
| <Config>
| <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}"
| mcast_port="${jboss.hapartition.mcast_port:45566}"
| tos="8"
| ucast_recv_buf_size="20000000"
| ucast_send_buf_size="640000"
| mcast_recv_buf_size="25000000"
| mcast_send_buf_size="640000"
| loopback="false"
| discard_incompatible_packets="true"
| enable_bundling="false"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false"
| ip_ttl="${jgroups.udp.ip_ttl:2}"
| down_thread="false" up_thread="false"/>
| <PING timeout="2000"
| down_thread="false" up_thread="false" num_initial_members="3"/>
| <MERGE2 max_interval="100000"
| down_thread="false" up_thread="false" min_interval="20000"/>
| <FD_SOCK down_thread="false" up_thread="false"/>
| <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| down_thread="false" up_thread="false"
| discard_delivered_msgs="true"/>
| <UNICAST timeout="300,600,1200,2400,3600"
| down_thread="false" up_thread="false"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| down_thread="false" up_thread="false"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="3000"
| down_thread="false" up_thread="false"
| join_retry_timeout="2000" shun="true"
| view_bundling="true"/>
| <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
| <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
| </Config>
| -->
|
| <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
| <Config>
| <TCP bind_addr="nhelder07l" start_port="7850" loopback="true"
| tcp_nodelay="true"
| recv_buf_size="20000000"
| send_buf_size="640000"
| discard_incompatible_packets="true"
| enable_bundling="false"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false"
| down_thread="false" up_thread="false"
| use_send_queues="false"
| sock_conn_timeout="300"
| skip_suspected_members="true"/>
| <TCPPING initial_hosts="nhelder07l[7850]" port_range="3"
| timeout="3000"
| down_thread="false" up_thread="false"
| num_initial_members="1"/>
| <MERGE2 max_interval="100000"
| down_thread="false" up_thread="false" min_interval="20000"/>
| <FD_SOCK down_thread="false" up_thread="false"/>
| <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| down_thread="false" up_thread="false"
| discard_delivered_msgs="true"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| down_thread="false" up_thread="false"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="3000"
| down_thread="false" up_thread="false"
| join_retry_timeout="2000" shun="true"
| view_bundling="true"/>
| <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
| </Config>
| </attribute>
| <depends>jboss:service=Naming</depends>
| </mbean>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063081#4063081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063081
More information about the jboss-user
mailing list