[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Shared Transport in JGroups

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Mar 26 11:20:33 EDT 2008


We plan to use JGroups 2.6.2 on Branch_Stable.

JBossMessaging currently requires an application server... 
The only standalone ATM is our testsuite.


This is the UDP stack we have successfully tested:

         <config>
  |             <UDP
  |                  mcast_addr="${jboss.messaging.controlchanneludpaddress,jboss.partition.udpGroup:228.7.7.7}"
  |                  mcast_port="${jboss.messaging.controlchanneludpport:45568}"
  |                  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="${jboss.messaging.ipttl:8}"
  |                  enable_bundling="false"
  |                  enable_diagnostics="true"
  |                  thread_naming_pattern="cl"
  | 
  |                  use_concurrent_stack="true"
  | 
  |                  thread_pool.enabled="true"
  |                  thread_pool.min_threads="1"
  |                  thread_pool.max_threads="200"
  |                  thread_pool.keep_alive_time="5000"
  |                  thread_pool.queue_enabled="true"
  |                  thread_pool.queue_max_size="1000"
  |                  thread_pool.rejection_policy="Run"
  | 
  |                  oob_thread_pool.enabled="true"
  |                  oob_thread_pool.min_threads="1"
  |                  oob_thread_pool.max_threads="8"
  |                  oob_thread_pool.keep_alive_time="5000"
  |                  oob_thread_pool.queue_enabled="false"
  |                  oob_thread_pool.queue_max_size="100"
  |                  oob_thread_pool.rejection_policy="Run"/>
  |             <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" />
  |             <BARRIER />
  |             <pbcast.NAKACK use_stats_for_retransmission="false"
  |                    exponential_backoff="150"
  |                    use_mcast_xmit="true" gc_lag="0"
  |                    retransmit_timeout="50,300,600,1200"
  |                    discard_delivered_msgs="true"/>
  |             <UNICAST timeout="300,600,1200,2400,3600"/>
  |             <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
  |                            max_bytes="400000"/>
  |             <VIEW_SYNC avg_send_interval="10000"/>
  |             <pbcast.GMS print_local_addr="true" join_timeout="3000"
  |                 shun="false"
  |                 view_bundling="true"/>
  |             <FC max_credits="500000"
  |                     min_threshold="0.20"/>
  |             <FRAG2 frag_size="60000"  />
  |             <pbcast.STATE_TRANSFER/>
  |             <pbcast.FLUSH timeout="20000"/>
  |         </config>
  |  

And this is our TCP stack:

         <config>
  |             <TCP start_port="7900"
  |                  loopback="true"
  |                  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="true" 
  |                  thread_pool.enabled="true"
  |                  thread_pool.min_threads="1"
  |                  thread_pool.max_threads="200"
  |                  thread_pool.keep_alive_time="5000"
  |                  thread_pool.queue_enabled="true" 
  |                  thread_pool.queue_max_size="500"
  |                  thread_pool.rejection_policy="run"
  |                  oob_thread_pool.enabled="true"
  |                  oob_thread_pool.min_threads="1"
  |                  oob_thread_pool.max_threads="100" 
  |                  oob_thread_pool.keep_alive_time="5000"
  |                  oob_thread_pool.queue_enabled="false"
  |                  oob_thread_pool.queue_max_size="100"
  |                  oob_thread_pool.rejection_policy="run"/>
  |             <MPING timeout="5000"
  | 		         mcast_addr="${jboss.messaging.datachanneludpaddress,jboss.partition.udpGroup:228.6.6.6}"
  | 		         mcast_port="${jboss.messaging.datachanneludpport:45567}"
  | 		         ip_ttl="${jboss.messaging.ipttl:8}"
  | 		         num_initial_members="5"
  | 		         num_ping_requests="3"/>
  |             <MERGE2 max_interval="100000" min_interval="20000"/>
  |             <FD_SOCK/>
  |             <VERIFY_SUSPECT timeout="1500"/>
  |             <BARRIER/>
  |             <pbcast.NAKACK 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"/>
  |             <VIEW_SYNC avg_send_interval="10000"/>
  | 
  |             <pbcast.GMS print_local_addr="true" join_timeout="3000"
  |                 shun="false" view_bundling="true"/>
  |         </config>
  | 


We really need UNICAST on tcp, and pbcast.STATE_TRANSAFER and pbcast.FLUSH. As far as I remember these items are not described on the MUX channel at JBoss5.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139019#4139019

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139019



More information about the jboss-dev-forums mailing list