Disabling Multicast within a Cluster

Now you can disable Multicast within a cluster. Here are the steps to do that:

1. Comment out the multicast portion of oware/jboss-3.2.7/owareconf/cluster-service.xml. Comment out the multicast PartitionConfig. The XML comment is framed with <!-- and -->. Here is what that portion of the file looks like:

<!-- ============================================================== -->

<!--The following section permits multicast. Comment this attribute and uncomment -->

<!--the Unicast Section to configure unicast-->

<!-- ============================================================ -->

 

<attribute name="PartitionConfig">

<Config>

<UDP mcast_addr="@MULTICAST_IP@" mcast_port="45566"

ip_ttl="64" ip_mcast="true"

mcast_send_buf_size="150000" mcast_recv_buf_size="80000"

ucast_send_buf_size="150000" ucast_recv_buf_size="80000"

loopback="@UDP_LOOPBACK_BOOL@"

bind_addr="@LOCAL_IP@" />

<PING timeout="3000" num_initial_members="3"

up_thread="true" down_thread="true" />

<MERGE2 min_interval="5000" max_interval="10000" />

<FD shun="true" up_thread="true" down_thread="true"

timeout="2500" max_tries="5" />

<VERIFY_SUSPECT timeout="3000" num_msgs="3"

up_thread="true" down_thread="true" />

<pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"

max_xmit_size="8192"

up_thread="true" down_thread="true" />

<UNICAST timeout="300,600,1200,2400,4800" down_thread="true" />

<pbcast.STABLE desired_avg_gossip="20000"

up_thread="true" down_thread="true" />

<FRAG frag_size="8192"

down_thread="true" up_thread="true" />

<pbcast.GMS join_timeout="5000" join_retry_timeout="2000"

shun="true" print_local_addr="true" />

<pbcast.STATE_TRANSFER up_thread="true" down_thread="true" />

</Config>

</attribute>

 

2. Uncomment the unicast portion of this file. Here is what that portion of the file looks like:

<!--=============================================================== -->

<!--The following section permits Unicast. Uncomment this and comment -->

<!--the Multicast Section above to configure unicast-->

<!--NOTE: You must add the servers in any cluster to the initial_hosts line-->

<!-- for example: <TCPPING initial_hosts="@LOCAL_IP@[7800],192.168.1.100[7800], 192.168.1.101[7800]"-->

<!--============================================================= -->

<!--attribute name="PartitionConfig">

<Config>

<TCP bind_addr="@LOCAL_IP@" start_port="7800"/>

<TCPPING initial_hosts="@LOCAL_IP@[7800]"

port_range="5" timeout="3000" num_initial_members="3"

up_thread="true" down_thread="true" />

<MERGE2 min_interval="5000" max_interval="100000" />

<FD up_thread="true" down_thread="true" timeout="5000" />

<VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />

<pbcast.NAKACK gc_lag="1000" retransmit_timeout="3000" up_thread="true" down_thread="true" />

<pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />

<pbcast.STATE_TRANSFER up_thread="true" down_thread="true" />

<pbcast.GMS join_timeout="30000" join_retry_timeout="10000" shun="false" print_local_addr="true" up_thread="true" down_thread="true"/>

</Config>

</attribute-->

3. The other modification needed for unicast is to add the other servers in the cluster to the TCPPING config within the above unicast portion:

<TCPPING initial_hosts="@LOCAL_IP@[7800]"

port_range="5" timeout="3000" num_initial_members="3"

up_thread="true" down_thread="true" />

becomes

<TCPPING initial_hosts="@LOCAL_IP@[7800],192.168.1.100[7800], 192.168.1.101[7800]"

port_range="5" timeout="3000" num_initial_members="3"

up_thread="true" down_thread="true" />

Do this for all clusters whether on application server or mediation server.