[jboss-user] [JBossCache] - Re: who can help me? something about treecache.
neddy
do-not-reply at jboss.com
Thu Jan 18 21:13:33 EST 2007
OK, so please see my treecache.xml:
<?xml version="1.0" encoding="UTF-8" ?>
jboss:service=Naming
jboss:service=TransactionManager
JBoss-Cache-Cluster
<UDP mcast_addr="228.1.2.3" mcast_port="48866"
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"/>
<FD_SOCK/>
<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="true" down_thread="true"/>
<!--
Valid modes are LOCAL
REPL_ASYNC
REPL_SYNC
INVALIDATION_ASYNC
INVALIDATION_SYNC
-->
LOCAL
<!--
Node locking scheme :
PESSIMISTIC (default)
OPTIMISTIC
-->
PESSIMISTIC
REPEATABLE_READ
org.jboss.cache.DummyTransactionManagerLookup
<!-- Whether each interceptor should have an mbean
registered to capture and display its statistics. -->
true
<!-- Buddy Replication config -->
<!-- Enables buddy replication. This is the ONLY-->
true
<!-- These are the default values anyway -->
org.jboss.cache.buddyreplication.NextMemberBuddyLocator
<!-- numBuddies is the number of backup nodes each each node will *try* to select a buddy on a different physical host. If it will fall back to colocated nodes. -->
numBuddies = 1
ignoreColocatedBuddies = true
<!--
A way to specify a preferred replication group. the same pool name (falling back to other buddies if not available).
This allows backup buddies are picked, so for example, nodes may be hinted topick buddies or power supply for added fault tolerance.
-->
myBuddyPoolReplicationGroup
<!-- Communication timeout for inter-buddy group from groups, defaults to 1000. -->
2000
<!-- Whether data is removed from old owners when-->
true
<!-- Whether backup nodes can respond to data gravitation defaults to true. -->
true
<!-- Whether all cache misses result in a data gravitation enable data gravitation on a per-invocation-->
false
<!-- 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
-->
5000
<!-- Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
10000
<!-- Max number of milliseconds to wait for a lock acquisition -->
15000
<!--
5
5000
1000
5000
10000
10000
8
10
-->
org.jboss.cache.eviction.LRUPolicy
false
/
true
org.jboss.cache.loader.FileCacheLoader
location=c:\\temp\\myFileStore
true
false
false
false
<!--
org.jboss.cache.loader.JDBCCacheLoader
cache.jdbc.table.name=jbosscache
cache.jdbc.table.create=true
cache.jdbc.table.drop=true
cache.jdbc.table.primarykey=jbosscache_pk
cache.jdbc.fqn.column=fqn
cache.jdbc.fqn.type=varchar(255)
cache.jdbc.node.column=node
cache.jdbc.node.type=longblob
cache.jdbc.parent.column=parent
cache.jdbc.driver=com.mysql.jdbc.Driver
cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb
cache.jdbc.user=root
cache.jdbc.password=
true
false
false
-->
now I put it in the folder which called "resources"
so when I start the service I use
tree.setClusterProperties("resources/treecache.xml");
but how I to know the xml file already be read;can you tell me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003602#4003602
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003602
More information about the jboss-user
mailing list