jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smuts, Aaron" <aaro...@amazon.com>
Subject RE: jcs lateral tcp cache config
Date Wed, 09 Mar 2005 17:41:43 GMT

I'm not sure what version you are using.  You should set the default element attributes to
allow items to go laterally if a lateral is available.  

You had "ProductCache.cacheattributes.IsLateral"  it should have been "ProductCache.elementattributes.IsLateral".

You should have seen a message in the logs.

Try this for your cache.ccf:


# DEFAULT CACHE REGION 

jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=true
#jcs.default.elementattributes.MaxLifeSeconds=3600
#jcs.default.elementattributes.IdleTime=1800
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true

#############################################################################
# CACHE REGIONS AVAILABLE
# Regions preconfigured for caching

#PRODUCTCACHE
jcs.region.ProductCache=LTCP
jcs.region.ProductCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.ProductCache.cacheattributes.MaxObjects=4000
jcs.region.ProductCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.ProductCache.cacheattributes.UseMemoryShrinker=false
jcs.region.ProductCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.ProductCache.cacheattributes.ShrinkerIntervalSeconds=60
jcs.region.ProductCache.elementattributes.IsSpool=true
jcs.region.ProductCache.elementattributes.IsRemote=true
jcs.region.ProductCache.elementattributes.IsLateral=true

#############################################################################
#AUX CACHES

#LATERAL
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
jcs.auxiliary.LTCP.attributes.TcpServers=192.168.0.3:1110
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory

#DISK
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=c:/
jcs.auxiliary.DC.attributes.maxKeySize=100000

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org


Mime
View raw message