############################################################## | |
################## DEFAULT CACHE REGION ##################### | |
# sets the default aux value for any non configured caches | |
jcs.default=DC,RC | |
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes | |
jcs.default.cacheattributes.MaxObjects=250000 | |
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache | |
jcs.default.cacheattributes.UseMemoryShrinker=false | |
jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600 | |
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60 | |
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes | |
jcs.default.elementattributes.IsEternal=false | |
jcs.default.elementattributes.MaxLifeSeconds=700 | |
jcs.default.elementattributes.IdleTime=1800 | |
jcs.default.elementattributes.IsSpool=true | |
jcs.default.elementattributes.IsRemote=true | |
jcs.default.elementattributes.IsLateral=true | |
############################################################## | |
################## CACHE REGIONS AVAILABLE ################### | |
# Regions preconfirgured for caching | |
jcs.region.testCache1=DC,RC | |
jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes | |
jcs.region.testCache1.cacheattributes.MaxObjects=250000 | |
jcs.region.testCache1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache | |
jcs.region.testCache1.cacheattributes.UseMemoryShrinker=false | |
jcs.region.testCache1.cacheattributes.ShrinkerIntervalSeconds=30 | |
jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=300 | |
jcs.region.testCache1.cacheattributes.MaxSpoolPerRun=100 | |
jcs.region.testCache1.elementattributes=org.apache.jcs.engine.ElementAttributes | |
jcs.region.testCache1.elementattributes.IsEternal=false | |
jcs.region.testCache1.elementattributes.MaxLifeSeconds=60000 | |
jcs.region.testCache1.elementattributes.IsLateral=true | |
jcs.region.testCache1.elementattributes.IsRemote=true | |
jcs.region.testCache1.elementattributes.IsSpool=true | |
############################################################## | |
################## AUXILIARY CACHES AVAILABLE ################ | |
# Primary Disk Cache-- faster than the rest because of memory key storage | |
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory | |
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes | |
jcs.auxiliary.DC.attributes.DiskPath=logs/rafNA | |
jcs.auxiliary.DC.attributes.MaxPurgatorySize=100000 | |
jcs.auxiliary.DC.attributes.MaxKeySize=500000 | |
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=50000 | |
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=-1 | |
# REMOTE SERVER RS1 | |
jcs.auxiliary.RC=org.apache.jcs.auxiliary.remote.RemoteCacheFactory | |
jcs.auxiliary.RC.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes | |
# First server is primary, the rest will be tried in order if the primary fails | |
jcs.auxiliary.RC.attributes.FailoverServers=localhost:1101,localhost:1102 | |
jcs.auxiliary.RC.attributes.LocalPort=1201 | |
jcs.auxiliary.RC.attributes.RemoveUponRemotePut=false | |
#-1 means no timeout, this is the default | |
# if the timeout is -1, no threadpool will be used. | |
jcs.auxiliary.RC.attributes.GetTimeoutMillis=-1 | |
jcs.auxiliary.RC.attributes.ThreadPoolName=remote_cache_client | |
jcs.auxiliary.RC.attributes.GetOnly=false | |
############################################################## | |
################## OPTIONAL THREAD POOL CONFIGURATION ################### | |
# Default thread pool config | |
thread_pool.default.boundarySize=2000 | |
thread_pool.default.maximumPoolSize=150 | |
thread_pool.default.minimumPoolSize=4 | |
thread_pool.default.keepAliveTime=350000 | |
#RUN ABORT WAIT BLOCK DISCARDOLDEST | |
thread_pool.default.whenBlockedPolicy=RUN | |
thread_pool.default.startUpSize=4 | |
# Remote cache client thread pool config | |
thread_pool.remote_cache_client.boundarySize=75 | |
thread_pool.remote_cache_client.maximumPoolSize=150 | |
thread_pool.remote_cache_client.minimumPoolSize=25 | |
thread_pool.remote_cache_client.keepAliveTime=350000 | |
thread_pool.remote_cache_client.whenBlockedPolicy=RUN | |
thread_pool.remote_cache_client.startUpSize=4 | |