[jboss-cvs] JBossAS SVN: r68163 - trunk/cluster/src/resources/jgroups.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 11 19:04:23 EST 2007


Author: bstansberry at jboss.com
Date: 2007-12-11 19:04:23 -0500 (Tue, 11 Dec 2007)
New Revision: 68163

Modified:
   trunk/cluster/src/resources/jgroups/multiplexer-stacks.xml
Log:
Add nonconcurrent stacks for temporary JBM usage
Use MPING in tcp stacks
Minor cleanups

Modified: trunk/cluster/src/resources/jgroups/multiplexer-stacks.xml
===================================================================
--- trunk/cluster/src/resources/jgroups/multiplexer-stacks.xml	2007-12-11 23:36:23 UTC (rev 68162)
+++ trunk/cluster/src/resources/jgroups/multiplexer-stacks.xml	2007-12-12 00:04:23 UTC (rev 68163)
@@ -1,7 +1,6 @@
-
 <!--
-  Sample file that defines a number of stacks, used by the multiplexer
-  Author: Bela Ban
+  Standard JGroups protocol stacks definitions, used by the JChannelFactory bean.
+  Author: Bela Ban, Brian Stansberry
   Version: $Id$
 -->
 <protocol_stacks>
@@ -73,7 +72,7 @@
             run out of memory">
         <config>
             <UDP
-                 mcast_port="${jgroups.udp.mcast_port:45699}"
+                 mcast_port="${jgroups.udp_sync.mcast_port:45699}"
                  mcast_addr="${jgroups.udp.mcast_addr:229.11.11.11}"
                  tos="8"
                  ucast_recv_buf_size="20000000"
@@ -164,10 +163,19 @@
 		         oob_thread_pool.queue_enabled="false"
 		         oob_thread_pool.queue_max_size="100"
 		         oob_thread_pool.rejection_policy="run"/>
+		    <!-- Alternative 1: multicast-based automatic discovery. -->   
+            <MPING timeout="3000"
+                   num_initial_members="3"
+                   mcast_addr="${jgroups.udp.mcast_addr:230.11.11.11}"
+                   mcast_port="${jgroups.tcp_mping.mcast_port:45700}"
+                   ip_ttl="${jgroups.udp.ip_ttl:2}"/>            
+            <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
+                 of all possible cluster members.
             <TCPPING timeout="3000"
                      initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7600],localhost[7601]}"
                      port_range="1"
                      num_initial_members="3"/>
+             -->
             <MERGE2 max_interval="100000" min_interval="20000"/>
             <FD_SOCK/>
             <FD timeout="10000" max_tries="5" shun="true"/>
@@ -211,6 +219,8 @@
                  sock_conn_timeout="300"
                  skip_suspected_members="true"
                  
+                 use_concurrent_stack="true"
+                 
                  thread_pool.enabled="true"
 		         thread_pool.min_threads="1"
 		         thread_pool.max_threads="25"
@@ -226,10 +236,19 @@
 		         oob_thread_pool.queue_enabled="false"
 		         oob_thread_pool.queue_max_size="100"
 		         oob_thread_pool.rejection_policy="run"/>
+            <!-- Alternative 1: multicast-based automatic discovery. -->   
+            <MPING timeout="3000"
+                   num_initial_members="3"
+                   mcast_addr="${jgroups.udp.mcast_addr:231.11.11.11}"
+                   mcast_port="${jgroups.tcp_sync_mping.mcast_port:45701}"
+                   ip_ttl="${jgroups.udp.ip_ttl:2}"/>           
+            <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
+                 of all possible cluster members.
             <TCPPING timeout="3000"
                      initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7650],localhost[7651]}"
                      port_range="1"
                      num_initial_members="3"/>
+            -->
             <MERGE2 max_interval="100000" min_interval="20000"/>
             <FD_SOCK/>
             <FD timeout="10000" max_tries="5" shun="true"/>
@@ -280,7 +299,201 @@
             <pbcast.FLUSH timeout="0"/>
         </config>
     </stack>
+    
+    <stack name="udp-nonconcurrent"
+           description="UDP based stack with the concurrent stack disabled. Temporarily available until JBoss Messaging certifies usage of the concurrent stack.">
+        <config>
+          <UDP
+             mcast_port="${jgroups.udp_nonconcurrent.mcast_port:55688}"
+             mcast_addr="${jgroups.udp.mcast_addr:228.12.12.12}"
+             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"
+             max_bundle_size="64000"
+             max_bundle_timeout="30"
+             use_incoming_packet_handler="true"
+             ip_ttl="${jgroups.udp.ip_ttl:2}"
+             enable_bundling="false"                 
+             use_concurrent_stack="false"/>
+          <PING timeout="2000" num_initial_members="3"/>
+          <MERGE2 max_interval="100000" min_interval="20000"/>
+          <FD_SOCK/>
+          <FD timeout="10000" max_tries="5" shun="true"/>
+          <VERIFY_SUSPECT timeout="1500"/>
+          <pbcast.NAKACK max_xmit_size="60000"
+                   use_mcast_xmit="false" gc_lag="0"
+                   retransmit_timeout="300,600,1200,2400,4800"
+                   discard_delivered_msgs="true"/>
+          <UNICAST timeout="300,600,1200,2400,3600"/>
+          <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                   max_bytes="400000"/>
+          <pbcast.GMS print_local_addr="true" join_timeout="3000"
+                   join_retry_timeout="2000" shun="true"
+                   view_bundling="true"
+                   view_ack_collection_timeout="5000"/>
+          <FC max_credits="2000000" min_threshold="0.10"/>
+          <FRAG2 frag_size="60000"/>
+          <!-- pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/ -->
+          <pbcast.STATE_TRANSFER/>
+          <pbcast.FLUSH timeout="0"/>
+        </config>
+    </stack>
+    
 
+    <stack name="udp-sync-nonconcurrent"
+           description="UDP based stack for sycnhronous communication with the concurrent stack disabled. 
+                        Temporarily available until JBoss Messaging certifies usage of the concurrent stack.">
+        <config>
+            <UDP
+                 mcast_port="${jgroups.udp_sync_nonconcurrent.mcast_port:55699}"
+                 mcast_addr="${jgroups.udp.mcast_addr:229.12.12.12}"
+                 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"
+                 max_bundle_size="64000"
+                 max_bundle_timeout="30"
+                 use_incoming_packet_handler="true"
+                 ip_ttl="${jgroups.udp.ip_ttl:2}"
+                 enable_bundling="false"                 
+                 use_concurrent_stack="false"/>
+            <PING timeout="2000" num_initial_members="3"/>
+            <MERGE2 max_interval="100000" min_interval="20000"/>
+            <FD_SOCK/>
+            <FD timeout="10000" max_tries="5" shun="true"/>
+            <VERIFY_SUSPECT timeout="1500"/>
+            <pbcast.NAKACK max_xmit_size="60000"
+                    use_mcast_xmit="false" gc_lag="0"
+                    retransmit_timeout="300,600,1200,2400,4800"
+                    discard_delivered_msgs="true"/>
+            <UNICAST timeout="300,600,1200,2400,3600"/>
+            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                    max_bytes="400000"/>
+            <pbcast.GMS print_local_addr="true" join_timeout="3000"
+                    join_retry_timeout="2000" shun="true"
+                    view_bundling="true"
+                    view_ack_collection_timeout="5000"/>
+            <FRAG2 frag_size="60000"/>
+            <!--pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/ -->
+            <pbcast.STATE_TRANSFER/>
+            <pbcast.FLUSH timeout="0"/>
+        </config>
+    </stack>
+
+
+    <stack name="tcp-nonconcurrent"
+           description="TCP based stack, with flow control and message bundling but the concurrent stack disabled. 
+                        Temporarily available until JBoss Messaging certifies usage of the concurrent stack.">
+        <config>
+            <TCP start_port="7700"
+                 tcp_nodelay="true"
+                 loopback="false"
+                 recv_buf_size="20000000"
+                 send_buf_size="640000"
+                 discard_incompatible_packets="true"
+                 max_bundle_size="64000"
+                 max_bundle_timeout="30"
+                 use_incoming_packet_handler="true"
+                 enable_bundling="false"
+                 use_send_queues="false"
+                 sock_conn_timeout="300"
+                 skip_suspected_members="true"                 
+                 use_concurrent_stack="false"/>
+            <!-- Alternative 1: multicast-based automatic discovery. -->   
+            <MPING timeout="3000"
+                   num_initial_members="3"
+                   mcast_addr="${jgroups.udp.mcast_addr:230.12.12.12}"
+                   mcast_port="${jgroups.tcp_mping_nonconcurrent.mcast_port:55700}"
+                   ip_ttl="${jgroups.udp.ip_ttl:2}"/>           
+            <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
+                 of all possible cluster members.
+            <TCPPING timeout="3000"
+                     initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7600],localhost[7601]}"
+                     port_range="1"
+                     num_initial_members="3"/>
+            -->
+            <MERGE2 max_interval="100000" min_interval="20000"/>
+            <FD_SOCK/>
+            <FD timeout="10000" max_tries="5" shun="true"/>
+            <VERIFY_SUSPECT timeout="1500"/>
+            <pbcast.NAKACK max_xmit_size="60000"
+                           use_mcast_xmit="false" gc_lag="0"
+                           retransmit_timeout="300,600,1200,2400,4800"
+                           discard_delivered_msgs="true"/>
+            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                           max_bytes="400000"/>
+            <pbcast.GMS print_local_addr="true" join_timeout="3000"
+                        join_retry_timeout="2000" shun="true"
+                        view_bundling="true"
+                        view_ack_collection_timeout="5000"/>
+            <FC max_credits="2000000" min_threshold="0.10"/>
+            <FRAG2 frag_size="60000"/>
+            <!-- pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/ -->
+            <pbcast.STATE_TRANSFER/>
+            <pbcast.FLUSH timeout="0"/>
+        </config>
+    </stack>
+
+
+    <stack name="tcp-sync-nonconcurrent"
+           description="TCP based stack, without flow control and without message bundling and the concurrent stack disabled. 
+                        Temporarily available until JBoss Messaging certifies usage of the concurrent stack.">
+        <config>
+            <TCP start_port="7650"
+                 tcp_nodelay="true"
+                 loopback="false"
+                 recv_buf_size="20000000"
+                 send_buf_size="640000"
+                 discard_incompatible_packets="true"
+                 max_bundle_size="64000"
+                 max_bundle_timeout="30"
+                 use_incoming_packet_handler="true"
+                 enable_bundling="false"
+                 use_send_queues="false"
+                 sock_conn_timeout="300"
+                 skip_suspected_members="true"
+                 
+                 thread_pool.enabled="false"/>
+            <!-- Alternative 1: multicast-based automatic discovery. -->   
+            <MPING timeout="3000"
+                   num_initial_members="3"
+                   mcast_addr="${jgroups.udp.mcast_addr:231.12.12.12}"
+                   mcast_port="${jgroups.tcp_sync_nonconcurrent_mping.mcast_port:55701}"
+                   ip_ttl="${jgroups.udp.ip_ttl:2}"/>           
+            <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
+                 of all possible cluster members.
+            <TCPPING timeout="3000"
+                     initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7650],localhost[7651]}"
+                     port_range="1"
+                     num_initial_members="3"/>
+            -->
+            <MERGE2 max_interval="100000" min_interval="20000"/>
+            <FD_SOCK/>
+            <FD timeout="10000" max_tries="5" shun="true"/>
+            <VERIFY_SUSPECT timeout="1500"/>
+            <pbcast.NAKACK max_xmit_size="60000"
+                           use_mcast_xmit="false" gc_lag="0"
+                           retransmit_timeout="300,600,1200,2400,4800"
+                           discard_delivered_msgs="true"/>
+            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                           max_bytes="400000"/>
+            <pbcast.GMS print_local_addr="true" join_timeout="3000"
+                        join_retry_timeout="2000" shun="true"
+                        view_bundling="true"
+                        view_ack_collection_timeout="5000"/>
+            <!-- pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/ -->
+            <pbcast.STATE_TRANSFER/>
+            <pbcast.FLUSH timeout="0"/>
+        </config>
+    </stack>
+
 </protocol_stacks>
 
 




More information about the jboss-cvs-commits mailing list