[Jboss-cvs] JBossAS SVN: r55858 - trunk/ejb3/src/resources
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Aug 13 17:31:23 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-08-13 17:31:22 -0400 (Sun, 13 Aug 2006)
New Revision: 55858
Modified:
trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml
trunk/ejb3/src/resources/ejb3-entity-cache-service.xml
Log:
Switch to mulitplexer
Modified: trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml
===================================================================
--- trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml 2006-08-13 20:45:31 UTC (rev 55857)
+++ trunk/ejb3/src/resources/ejb3-clustered-sfsbcache-service.xml 2006-08-13 21:31:22 UTC (rev 55858)
@@ -2,12 +2,15 @@
<server>
<mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=EJB3SFSBClusteredCache">
- <!--uncomment next three statements if using JGroups multiplexer -->
- <!--
+ <!--JGroups multiplexer configuration. Allows cache to use a shared
+ JGroups channel with other clustering services.
+ If you don't want to use the multiplexer, you can comment these
+ elements out and uncomment the ClusterConfig attribute below. -->
<depends>jgroups.mux:name=Multiplexer</depends>
<attribute name="MultiplexerService">jgroups.mux:name=Multiplexer</attribute>
<attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
- -->
+
+ <attribute name="ClusterName">SFSB-Cache</attribute>
<!--
Node locking level : SERIALIZABLE
@@ -24,35 +27,60 @@
-->
<attribute name="CacheMode">REPL_ASYNC</attribute>
- <attribute name="ClusterName">SFSB-Cache</attribute>
-
+ <!-- JGroups protocol stack config in XML format.
+ Not needed if multiplexer is used, so commented out by default.
+ If your CacheMode is set to REPL_SYNC we recommend you comment
+ out the FC (flow control) protocol
+
+ On Windows machines, because of the media sense feature
+ being broken with multicast (even after disabling media sense)
+ set the UDP.loopback attribute to true
+
<attribute name="ClusterConfig">
<config>
- <!-- UDP: if you have a multihomed machine,
- set the bind_addr attribute to the appropriate NIC IP address
- -->
- <!-- UDP: On Windows machines, because of the media sense feature
- being broken with multicast (even after disabling media sense)
- set the loopback attribute to true
- -->
- <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}" mcast_port="45551" 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="false"/>
- <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false"/>
- <MERGE2 min_interval="10000" max_interval="20000"/>
+ <UDP mcast_addr="${jboss.partition.udpGroup:238.1.2.3}"
+ mcast_port="45561"
+ ucast_recv_buf_size="20000000"
+ ucast_send_buf_size="640000"
+ mcast_recv_buf_size="25000000"
+ mcast_send_buf_size="640000"
+ loopback="false"
+ max_bundle_size="64000"
+ max_bundle_timeout="30"
+ use_incoming_packet_handler="true"
+ use_outgoing_packet_handler="false"
+ ip_ttl="2"
+ down_thread="false" up_thread="false"
+ enable_bundling="true"/>
+ <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 shun="true" up_thread="false" down_thread="false"
timeout="20000" max_tries="5"/>
- <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false"/>
- <pbcast.NAKACK gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" up_thread="false"
- down_thread="false"/>
- <UNICAST timeout="600,1200,2400" down_thread="false"/>
- <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false"/>
- <FRAG frag_size="8192" down_thread="false" up_thread="false"/>
- <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true"/>
- <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
- </config>
+ <VERIFY_SUSPECT timeout="1500"
+ up_thread="false" down_thread="false"/>
+ <pbcast.NAKACK max_xmit_size="60000"
+ use_mcast_xmit="false" gc_lag="50"
+ retransmit_timeout="100,200,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="2100000"/>
+ <pbcast.GMS print_local_addr="true" join_timeout="3000"
+ down_thread="false" up_thread="false"
+ join_retry_timeout="2000" shun="true"/>
+ <FC max_credits="10000000" down_thread="false" up_thread="false"
+ min_threshold="0.20"/>
+ <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
+ <pbcast.STATE_TRANSFER down_thread="false" up_thread="false"/>
+ </config>
</attribute>
+ -->
<!-- Number of milliseconds to wait until all responses for a
synchronous call have been received.
Modified: trunk/ejb3/src/resources/ejb3-entity-cache-service.xml
===================================================================
--- trunk/ejb3/src/resources/ejb3-entity-cache-service.xml 2006-08-13 20:45:31 UTC (rev 55857)
+++ trunk/ejb3/src/resources/ejb3-entity-cache-service.xml 2006-08-13 21:31:22 UTC (rev 55858)
@@ -8,13 +8,18 @@
<depends>jboss:service=Naming</depends>
<depends>jboss:service=TransactionManager</depends>
- <!--uncomment next three statements if using JGroups multiplexer -->
- <!--
+ <!--JGroups multiplexer configuration. Allows cache to use a shared
+ JGroups channel with other clustering services.
+ If you don't want to use the multiplexer, you can comment these
+ elements out and uncomment the ClusterConfig attribute below. -->
<depends>jgroups.mux:name=Multiplexer</depends>
<attribute name="MultiplexerService">jgroups.mux:name=Multiplexer</attribute>
<attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
- -->
+ <!-- Name of cluster. Needs to be the same for all clusters, in order
+ to find each other -->
+ <attribute name="ClusterName">EJB3-entity-cache</attribute>
+
<!-- Configure the TransactionManager -->
<attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
@@ -33,38 +38,61 @@
-->
<attribute name="CacheMode">REPL_SYNC</attribute>
- <!-- Name of cluster. Needs to be the same for all clusters, in order
- to find each other -->
- <attribute name="ClusterName">EJB3-entity-cache</attribute>
+ <!-- JGroups protocol stack config in XML format.
+ Not needed if multiplexer is used, so commented out by default.
+ If your CacheMode is set to REPL_SYNC we recommend you comment
+ out the FC (flow control) protocol
+
+ On Windows machines, because of the media sense feature
+ being broken with multicast (even after disabling media sense)
+ set the UDP.loopback attribute to true
+
+ <attribute name="ClusterConfig">
+ <config>
+ <UDP mcast_addr="${jboss.partition.udpGroup:238.1.2.3}"
+ mcast_port="44333"
+ ucast_recv_buf_size="20000000"
+ ucast_send_buf_size="640000"
+ mcast_recv_buf_size="25000000"
+ mcast_send_buf_size="640000"
+ loopback="false"
+ max_bundle_size="64000"
+ max_bundle_timeout="30"
+ use_incoming_packet_handler="true"
+ use_outgoing_packet_handler="false"
+ ip_ttl="2"
+ down_thread="false" up_thread="false"
+ enable_bundling="true"/>
+ <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 shun="true" up_thread="false" down_thread="false"
+ timeout="20000" max_tries="5"/>
+ <VERIFY_SUSPECT timeout="1500"
+ up_thread="false" down_thread="false"/>
+ <pbcast.NAKACK max_xmit_size="60000"
+ use_mcast_xmit="false" gc_lag="50"
+ retransmit_timeout="100,200,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="2100000"/>
+ <pbcast.GMS print_local_addr="true" join_timeout="3000"
+ down_thread="false" up_thread="false"
+ join_retry_timeout="2000" shun="true"/>
+ <FC max_credits="10000000" down_thread="false" up_thread="false"
+ min_threshold="0.20"/>
+ <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
+ <pbcast.STATE_TRANSFER down_thread="false" up_thread="false"/>
+ </config>
+ </attribute>
+ -->
- <attribute name="ClusterConfig">
- <config>
- <!-- UDP: if you have a multihomed machine,
- set the bind_addr attribute to the appropriate NIC IP address
- -->
- <!-- UDP: On Windows machines, because of the media sense feature
- being broken with multicast (even after disabling media sense)
- set the loopback attribute to true
- -->
- <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}" mcast_port="43333" ip_ttl="2" ip_mcast="true"
- mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000"
- ucast_recv_buf_size="80000" loopback="false" />
- <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
- <MERGE2 min_interval="10000" max_interval="20000" />
- <FD_SOCK down_thread="false" up_thread="false"/>
- <FD shun="true" up_thread="false" down_thread="false"
- timeout="20000" max_tries="5"/>
- <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
- <pbcast.NAKACK gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" up_thread="false"
- down_thread="false" />
- <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
- <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
- <FRAG frag_size="8192" down_thread="false" up_thread="false" />
- <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
- <pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
- </config>
- </attribute>
-
<!-- The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
More information about the jboss-cvs-commits
mailing list