[jboss-user] [Clustering/JBoss] - Re: :: Question On JBoss Clustering with Hibernate Second Le

BhaktavatsalamReddy do-not-reply at jboss.com
Fri Jul 6 17:56:00 EDT 2007


Here is the treecache.xml
=================
<?xml version="1.0" encoding="UTF-8" ?>
  | <server>
  |   <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar" />
  |   
  |   <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache">
  |     <depends>jboss:service=Naming</depends>
  |     <depends>jboss:service=TransactionManager</depends>
  | 
  |     <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
  |     
  | 	<attribute name="NodeLockingScheme">PESSIMISTIC</attribute>	
  | 		
  |     <attribute name="IsolationLevel">NONE</attribute>
  | 
  |     <attribute name="CacheMode">REPL_SYNC</attribute>
  |     
  |     <!--  Clustering Related when the Second Level Cache Is Enabled -->
  |     <attribute name="ReplQueueInterval">0</attribute>
  |     
  |     <attribute name="ReplQueueMaxElements">0</attribute>
  |     
  |      <attribute name="UseReplQueue">false</attribute>
  |      
  |      <attribute name="UseRegionBasedMarshalling">true</attribute>
  |     
  |     <attribute name="UseInterceptorMbeans">false</attribute>
  |     
  |     <attribute name="InitialStateRetrievalTimeout">20000</attribute>    
  |     
  |     <attribute name="SyncReplTimeout">30000</attribute>    
  |         
  |     <attribute name="FetchInMemoryState">false</attribute>
  |     
  |     <attribute name="LockAcquisitionTimeout">40000</attribute>
  |     
  |     <attribute name="ClusterName">${jboss.partition.name:DefaultPartition}</attribute>
  | 
  |    <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
  | 
  |     <attribute name="EvictionPolicyConfig">
  |       <config>
  |         <attribute name="wakeUpIntervalSeconds">5</attribute>
  |         <region name="/_default_">
  |          <attribute name="maxNodes">10000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">86400</attribute>
  |        </region>
  |        <region name="/CompanyImpl">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |        <region name="/LicenseImpl">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |        <region name="/CompanyImpl.licenses">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |        <region name="/LicenseImpl.accounts">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |        <region name="/AccountImpl">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |        <region name="/AccountImpl.folderList">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |        <region name="/AccountAccessPlanImpl">
  |          <attribute name="maxNodes">5000</attribute>
  |          <attribute name="timeToLiveSeconds">3600</attribute>
  |          <attribute name="maxAgeSeconds">3600</attribute>
  |        </region>
  |       </config>
  |     </attribute>
  |  
  | 	<attribute name="CacheLoaderConfiguration">
  | 	    <config>
  | 	        <passivation>false</passivation>
  | 	        <shared>false</shared>
  | 	
  | 	        <cacheloader>
  | 	            <class>org.jboss.cache.loader.FileCacheLoader</class>
  | 	            <properties>
  | 	                location=treecache
  | 	            </properties>
  | 	            <async>false</async>
  | 	            <fetchPersistentState>true</fetchPersistentState>
  | 	            <ignoreModifications>false</ignoreModifications>
  | 	            <purgeOnStartup>true</purgeOnStartup>
  | 	        </cacheloader>
  | 	    </config>
  | 	</attribute> 
  | 
  | 	<attribute name="ClusterConfig">
  | 	     <config>
  |             <TCP bind_addr="10.5.1.231" start_port="7800" loopback="true"
  |                  tcp_nodelay="true"
  |                  recv_buf_size="640000"
  |                  send_buf_size="640000"
  |                  discard_incompatible_packets="true"
  |                  enable_bundling="false"
  |                  max_bundle_size="64000"
  |                  max_bundle_timeout="30"
  |                  use_incoming_packet_handler="true"
  |                  use_outgoing_packet_handler="false"
  |                  down_thread="false" up_thread="false"
  |                  use_send_queues="false"
  |                  sock_conn_timeout="300"
  |                  skip_suspected_members="true"/>
  |             <TCPPING initial_hosts="10.5.1.231[7800]" port_range="3"
  |                      timeout="3000"
  |                      down_thread="false" up_thread="false"
  |                      num_initial_members="1"/>
  |             <MERGE2 max_interval="100000"
  |                     down_thread="false" up_thread="false" min_interval="20000"/>
  |             <FD_SOCK down_thread="false" up_thread="false"/>
  |             <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
  |             <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
  |             <pbcast.NAKACK max_xmit_size="60000"
  |                            use_mcast_xmit="false" gc_lag="0"
  |                            retransmit_timeout="300,600,1200,2400,4800"
  |                            down_thread="false" up_thread="false"
  |                            discard_delivered_msgs="true"/>
  |             <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
  |                            down_thread="false" up_thread="false"
  |                            max_bytes="400000"/>
  |             <pbcast.GMS print_local_addr="true" join_timeout="3000"
  |                         down_thread="false" up_thread="false"
  |                         join_retry_timeout="2000" shun="true"
  |                         view_bundling="true"/>
  |             <pbcast.STATE_TRANSFER down_thread="true" up_thread="true" use_flush="true"/>
  |          </config>
  |      </attribute>
  |   </mbean>
  | </server>


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

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



More information about the jboss-user mailing list