[Jboss-cvs] JBossAS SVN: r56084 - trunk/cluster/src/etc
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 18 18:58:13 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-08-18 18:58:13 -0400 (Fri, 18 Aug 2006)
New Revision: 56084
Modified:
trunk/cluster/src/etc/cluster-service.xml
Log:
[JBAS-3531] Inject ClusterTreeCache into ClusterPartition
[JBAS-3533] HAJNDI gets its cache via ClusterPartition
Modified: trunk/cluster/src/etc/cluster-service.xml
===================================================================
--- trunk/cluster/src/etc/cluster-service.xml 2006-08-18 21:49:44 UTC (rev 56083)
+++ trunk/cluster/src/etc/cluster-service.xml 2006-08-18 22:58:13 UTC (rev 56084)
@@ -7,7 +7,76 @@
<!-- ===================================================================== -->
<server>
+
+ <!-- ==================================================================== -->
+ <!-- Shared cache for JBoss cluster services -->
+ <!-- ==================================================================== -->
+ <!-- The ClusterTreeCache instance defined here is shared by JBoss cluster services that
+ use JBossCache as their underlying data store. Currently the services that share this
+ cache are HAJNDI and DistributedState. The mbean name should not be modified as
+ the cluster services locate this mbean by name. Valid changes to the JGroups configuration
+ shouldn't cause any problems; it should also be possible to change the cluster name but this
+ isn't recommended since it will be more difficult for others to recognize that the renamed
+ cluster is the one used by JBoss cluster services.
+ -->
+
+ <mbean code="org.jboss.cache.TreeCache"
+ name="jboss:service=ClusterTreeCache,partition=${jboss.partition.name:DefaultPartition}">
+ <depends>jboss:service=Naming</depends>
+ <depends>jboss:service=TransactionManager</depends>
+
+ <!--JGroups multiplexer is required for this cache -->
+ <depends>jgroups.mux:name=Multiplexer</depends>
+ <attribute name="MultiplexerService">jgroups.mux:name=Multiplexer</attribute>
+ <attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
+ <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
+
+ <!-- Valid isolation levels are
+ SERIALIZABLE
+ REPEATABLE_READ (default)
+ READ_COMMITTED
+ READ_UNCOMMITTED
+ NONE
+ -->
+ <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
+
+ <!-- Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC -->
+ <attribute name="CacheMode">REPL_SYNC</attribute>
+
+ <!-- Just used for async repl: use a replication queue -->
+ <attribute name="UseReplQueue">false</attribute>
+
+ <!-- Replication interval for replication queue (in ms) -->
+ <attribute name="ReplQueueInterval">0</attribute>
+
+ <!-- Max number of elements which trigger replication -->
+ <attribute name="ReplQueueMaxElements">0</attribute>
+
+ <!-- Name of cluster. Needs to be the same for all nodes in clusters,
+ in order to find each other -->
+ <attribute name="ClusterName">${jboss.partition.name:DefaultPartition}-TreeCache</attribute>
+
+ <!-- Whether or not to fetch state on joining a cluster -->
+ <attribute name="FetchInMemoryState">true</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 -->
+ <attribute name="InitialStateRetrievalTimeout">5000</attribute>
+
+ <!-- Number of milliseconds to wait until all responses for a
+ synchronous call have been received. -->
+ <attribute name="SyncReplTimeout">10000</attribute>
+
+ <!-- Max number of milliseconds to wait for a lock acquisition -->
+ <attribute name="LockAcquisitionTimeout">15000</attribute>
+
+ <!-- Name of the eviction policy class. Not supported now. -->
+ <attribute name="EvictionPolicyClass"></attribute>
+
+ </mbean>
+
<!-- ==================================================================== -->
<!-- Cluster Partition: defines cluster -->
<!-- ==================================================================== -->
@@ -15,13 +84,12 @@
<mbean code="org.jboss.ha.framework.server.ClusterPartition"
name="jboss:service=${jboss.partition.name:DefaultPartition}">
- <!-- Inject the JGroups multiplexed channel into the ClusterPartition service -->
- <!-- comment out to disable multiplexer-->
- <depends optional-attribute-name="Multiplexer"
- proxy-type="attribute">jgroups.mux:name=Multiplexer</depends>
-
- <!-- Stack for the multiplexer channel -->
- <attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
+ <!-- ClusterPartition requires a TreeCache for state management -->
+ <depends optional-attribute-name="TreeCache"
+ proxy-type="attribute">jboss:service=ClusterTreeCache,partition=${jboss.partition.name:DefaultPartition}</depends>
+
+ <depends optional-attribute-name="DistributedState"
+ proxy-type="attribute">jboss:service=DistributedState,partition=${jboss.partition.name:DefaultPartition}</depends>
<!-- Name of the partition being built -->
<attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute>
@@ -35,51 +103,26 @@
<!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
<attribute name="StateTransferTimeout">30000</attribute>
- <!-- The JGroups protocol configuration -->
- <attribute name="PartitionConfig">
- <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="45566"
- ip_ttl="8" ip_mcast="true"
- mcast_send_buf_size="800000" mcast_recv_buf_size="150000"
- ucast_send_buf_size="800000" ucast_recv_buf_size="150000"
- loopback="false"/>
- <PING timeout="2000" num_initial_members="3"
- up_thread="true" down_thread="true"/>
- <MERGE2 min_interval="10000" max_interval="20000"/>
- <FD_SOCK down_thread="false" up_thread="false"/>
- <FD shun="true" up_thread="true" down_thread="true"
- timeout="20000" 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>
-
</mbean>
<!-- ==================================================================== -->
+ <!-- DistributedState Service -->
+ <!-- ==================================================================== -->
+
+ <mbean code="org.jboss.ha.framework.server.DistributedStateImpl"
+ name="jboss:service=DistributedState,partition=${jboss.partition.name:DefaultPartition}">
+
+ <depends optional-attribute-name="TreeCache"
+ proxy-type="attribute">jboss:service=ClusterTreeCache,partition=${jboss.partition.name:DefaultPartition}</depends>
+ </mbean>
+
+ <!-- ==================================================================== -->
<!-- HA Session State Service for SFSB -->
<!-- ==================================================================== -->
<mbean code="org.jboss.ha.hasessionstate.server.HASessionStateService"
name="jboss:service=HASessionState">
- <!-- We now inject the partition into the HAJNDI service instead
+ <!-- We now inject the partition into the HA Session State service instead
of requiring that the partition name be passed -->
<depends optional-attribute-name="ClusterPartition"
proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends>
@@ -100,9 +143,6 @@
of requiring that the partition name be passed -->
<depends optional-attribute-name="ClusterPartition"
proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends>>
- <!-- Inject the cache into the HAJNDI service -->
- <depends optional-attribute-name="ClusterCache"
- proxy-type="attribute">jboss.cache:service=ClusterTreeCache</depends>
<!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
<attribute name="BindAddress">${jboss.bind.address}</attribute>
<!-- Port on which the HA-JNDI stub is made available -->
@@ -172,111 +212,5 @@
<attribute name="InvalidationManager">jboss.cache:service=InvalidationManager</attribute>
<attribute name="BridgeName">DefaultJGBridge</attribute>
</mbean>
-
- <!-- ==================================================================== -->
- <!-- Shared cache for JBoss cluster services -->
- <!-- ==================================================================== -->
- <!-- The ClusterTreeCache instance defined here is shared by JBoss cluster services that
- use JBossCache as their underlying data store. Currently the services that share this
- cache are HAJNDI and DistributedState. The mbean name should not be modified as
- the cluster services locate this mbean by name. Valid changes to the JGroups configuration
- shouldn't cause any problems; it should also be possible to change the cluster name but this
- isn't recommended since it will be more difficult for others to recognize that the renamed
- cluster is the one used by JBoss cluster services.
- -->
-
- <mbean code="org.jboss.cache.TreeCache"
- name="jboss.cache:service=ClusterTreeCache">
- <depends>jboss:service=Naming</depends>
- <depends>jboss:service=TransactionManager</depends>
-
- <!--comment next three statements to disable JGroups multiplexer -->
- <depends>jgroups.mux:name=Multiplexer</depends>
- <attribute name="MultiplexerService">jgroups.mux:name=Multiplexer</attribute>
- <attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
- <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
-
- <!-- Valid isolation levels are
- SERIALIZABLE
- REPEATABLE_READ (default)
- READ_COMMITTED
- READ_UNCOMMITTED
- NONE
- -->
- <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
-
- <!-- Valid modes are LOCAL, REPL_ASYNC and REPL_SYNC -->
- <attribute name="CacheMode">REPL_SYNC</attribute>
-
- <!-- Just used for async repl: use a replication queue -->
- <attribute name="UseReplQueue">false</attribute>
-
- <!-- Replication interval for replication queue (in ms) -->
- <attribute name="ReplQueueInterval">0</attribute>
-
- <!-- Max number of elements which trigger replication -->
- <attribute name="ReplQueueMaxElements">0</attribute>
-
- <!-- Name of cluster. Needs to be the same for all nodes in clusters,
- in order to find each other -->
- <attribute name="ClusterName">TreeCache-Cluster</attribute>
-
- <!-- JGroups protocol stack properties. Can also be a URL,
- e.g. file:/home/bela/default.xml
- <attribute name="ClusterProperties"></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="230.1.3.5" mcast_port="53617"
- ip_ttl="32" ip_mcast="true"
- mcast_send_buf_size="80000" mcast_recv_buf_size="150000"
- ucast_send_buf_size="80000" ucast_recv_buf_size="150000"
- 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="true" down_thread="true"
- timeout="20000" max_tries="5"/>
- <VERIFY_SUSPECT timeout="1500"
- up_thread="false" down_thread="false"/>
- <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
- max_xmit_size="8192" 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>
-
- <!-- Whether or not to fetch state on joining a cluster -->
- <attribute name="FetchInMemoryState">true</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 -->
- <attribute name="InitialStateRetrievalTimeout">5000</attribute>
-
- <!-- Number of milliseconds to wait until all responses for a
- synchronous call have been received. -->
- <attribute name="SyncReplTimeout">10000</attribute>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
- <attribute name="LockAcquisitionTimeout">15000</attribute>
-
- <!-- Name of the eviction policy class. Not supported now. -->
- <attribute name="EvictionPolicyClass"></attribute>
-
- </mbean>
-
</server>
More information about the jboss-cvs-commits
mailing list