jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristian Retegan <crete...@nl.swets.com>
Subject RE: remote cache server don't add any object in the cache
Date Fri, 22 Jul 2005 06:24:46 GMT
Sorry, in my preview email I attached the file and not included in the body
of the email.

Cache.ccf  -- JCS Client

# DEFAULT CACHE REGION

# sets the default aux value for any non configured caches
jcs.default= RC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru
.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=600
jcs.default.elementattributes.IdleTime=1
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=true


# generic object Cache
jcs.region.genericObjectCache= RC
jcs.region.genericObjectCache.cacheattributes=org.apache.jcs.engine.Composit
eCacheAttributes
jcs.region.genericObjectCache.cacheattributes.MaxObjects=1000
jcs.region.genericObjectCache.cacheattributes.MemoryCacheName=org.apache.jcs
.engine.memory.lru.LRUMemoryCache
jcs.region.genericObjectCache.elementattributes=org.apache.jcs.engine.Elemen
tAttributes
jcs.region.genericObjectCache.elementattributes.IsEternal=false
jcs.region.genericObjectCache.elementattributes.MaxLifeSeconds=604800
jcs.region.genericObjectCache.elementattributes.IdleTime=1
jcs.region.genericObjectCache.elementattributes.IsSpool=true
jcs.region.genericObjectCache.elementattributes.IsRemote=true
jcs.region.genericObjectCache.elementattributes.IsLateral=true


# dbSubscriptions Cache
jcs.region.dbSubscriptionsCache=RC
jcs.region.dbSubscriptionsCache.cacheattributes=org.apache.jcs.engine.Compos
iteCacheAttributes
jcs.region.dbSubscriptionsCache.cacheattributes.MaxObjects=1000
jcs.region.dbSubscriptionsCache.cacheattributes.MemoryCacheName=org.apache.j
cs.engine.memory.lru.LRUMemoryCache
jcs.region.dbSubscriptionsCache.elementattributes=org.apache.jcs.engine.Elem
entAttributes
jcs.region.dbSubscriptionsCache.elementattributes.IsEternal=false
jcs.region.dbSubscriptionsCache.elementattributes.MaxLifeSeconds=43200
jcs.region.dbSubscriptionsCache.elementattributes.IdleTime=1
jcs.region.dbSubscriptionsCache.elementattributes.IsSpool=true
jcs.region.dbSubscriptionsCache.elementattributes.IsRemote=true
jcs.region.dbSubscriptionsCache.elementattributes.IsLateral=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.IndexedDiskCacheFacto
ry
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDis
kCacheAttributes
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.RemoteCacheAttri
butes
# 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



remote.CacheRS1.ccf -- JCS primary server

##############################################################
################## REMOTE SERVER CONFIG  RS1 #################
# Registry used to register and provide the IRmiCacheService service.
registry.host=localhost
registry.port=1101
# call back port to local caches.
remote.cache.service.port=1101
# cluster setting
remote.cluster.LocalClusterConsistency=true


##############################################################
################## DEFAULT CACHE REGION  #####################
# sets the default aux value for any non configured caches
jcs.default=DC,RCluster
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru
.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=600
jcs.default.elementattributes.IdleTime=1
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true


##############################################################
################## CACHE REGIONS AVAILABLE ###################
# Regions preconfirgured for caching

################## genericObjectCache ########################
jcs.region.genericObjectCache=DC,RCluster
jcs.region.genericObjectCache.cacheattributes=org.apache.jcs.engine.Composit
eCacheAttributes
jcs.region.genericObjectCache.cacheattributes.MaxObjects=1000
jcs.region.genericObjectCache.cacheattributes.MemoryCacheName=org.apache.jcs
.engine.memory.lru.LRUMemoryCache
jcs.region.genericObjectCache.elementattributes=org.apache.jcs.engine.Elemen
tAttributes
jcs.region.genericObjectCache.elementattributes.IsEternal=false
jcs.region.genericObjectCache.elementattributes.MaxLifeSeconds=604800
jcs.region.genericObjectCache.elementattributes.IsLateral=true
jcs.region.genericObjectCache.elementattributes.IsRemote=true
jcs.region.genericObjectCache.elementattributes.IsSpool=true

################## dbSubscriptionsCache ########################
jcs.region.dbSubscriptionsCache=DC,RCluster
jcs.region.dbSubscriptionsCache.cacheattributes=org.apache.jcs.engine.Compos
iteCacheAttributes
jcs.region.dbSubscriptionsCache.cacheattributes.MaxObjects=1000
jcs.region.dbSubscriptionsCache.cacheattributes.MemoryCacheName=org.apache.j
cs.engine.memory.lru.LRUMemoryCache
jcs.region.dbSubscriptionsCache.elementattributes=org.apache.jcs.engine.Elem
entAttributes
jcs.region.dbSubscriptionsCache.elementattributes.IsEternal=false
jcs.region.dbSubscriptionsCache.elementattributes.MaxLifeSeconds=43200
jcs.region.dbSubscriptionsCache.elementattributes.IsLateral=true
jcs.region.dbSubscriptionsCache.elementattributes.IsRemote=true
jcs.region.dbSubscriptionsCache.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.IndexedDiskCacheFacto
ry
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDis
kCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=logs/rafRS1
jcs.auxiliary.DC.attributes.MaxPurgatorySize=100000
jcs.auxiliary.DC.attributes.MaxKeySize=500000
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=50000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=-1

# RS2 SERVER to update for clustering 
jcs.auxiliary.RCluster=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RCluster.attributes=org.apache.jcs.auxiliary.remote.RemoteCach
eAttributes
jcs.auxiliary.RCluster.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RCluster.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RCluster.attributes.ClusterServers=localhost:1102
jcs.auxiliary.RCluster.attributes.GetOnly=false
jcs.auxiliary.RCluster.attributes.LocalClusterConsistency=true



remote.CacheRS2.ccf -- JCS failover server

##############################################################
################## REMOTE SERVER CONFIG  RS2 #################
# Registry used to register and provide the IRmiCacheService service.
registry.host=localhost
registry.port=1102
# call back port to local caches.
remote.cache.service.port=1102
# cluster setting
remote.cluster.LocalClusterConsistency=true


##############################################################
################## DEFAULT CACHE REGION  #####################
# sets the default aux value for any non configured caches
jcs.default=DC,RCluster
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru
.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.MaxLifeSeconds=600
jcs.default.elementattributes.IdleTime=1
jcs.default.elementattributes.IsSpool=true
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=true


##############################################################
################## CACHE REGIONS AVAILABLE ###################
# Regions preconfirgured for caching

################## genericObjectCache ########################
jcs.region.genericObjectCache=DC,RCluster
jcs.region.genericObjectCache.cacheattributes=org.apache.jcs.engine.Composit
eCacheAttributes
jcs.region.genericObjectCache.cacheattributes.MaxObjects=1000
jcs.region.genericObjectCache.cacheattributes.MemoryCacheName=org.apache.jcs
.engine.memory.lru.LRUMemoryCache
jcs.region.genericObjectCache.elementattributes=org.apache.jcs.engine.Elemen
tAttributes
jcs.region.genericObjectCache.elementattributes.IsEternal=false
jcs.region.genericObjectCache.elementattributes.MaxLifeSeconds=604800
jcs.region.genericObjectCache.elementattributes.IsLateral=true
jcs.region.genericObjectCache.elementattributes.IsRemote=true
jcs.region.genericObjectCache.elementattributes.IsSpool=true

################## dbSubscriptionsCache ########################
jcs.region.dbSubscriptionsCache=DC,RCluster
jcs.region.dbSubscriptionsCache.cacheattributes=org.apache.jcs.engine.Compos
iteCacheAttributes
jcs.region.dbSubscriptionsCache.cacheattributes.MaxObjects=1000
jcs.region.dbSubscriptionsCache.cacheattributes.MemoryCacheName=org.apache.j
cs.engine.memory.lru.LRUMemoryCache
jcs.region.dbSubscriptionsCache.elementattributes=org.apache.jcs.engine.Elem
entAttributes
jcs.region.dbSubscriptionsCache.elementattributes.IsEternal=false
jcs.region.dbSubscriptionsCache.elementattributes.MaxLifeSeconds=43200
jcs.region.dbSubscriptionsCache.elementattributes.IsLateral=true
jcs.region.dbSubscriptionsCache.elementattributes.IsRemote=true
jcs.region.dbSubscriptionsCache.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.IndexedDiskCacheFacto
ry
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDis
kCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=logs/rafRS1
jcs.auxiliary.DC.attributes.MaxPurgatorySize=100000
jcs.auxiliary.DC.attributes.MaxKeySize=500000
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=50000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=-1

# RS1 SERVER to update for clustering 
jcs.auxiliary.RCluster=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RCluster.attributes=org.apache.jcs.auxiliary.remote.RemoteCach
eAttributes
jcs.auxiliary.RCluster.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RCluster.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RCluster.attributes.ClusterServers=localhost:1101
jcs.auxiliary.RCluster.attributes.GetOnly=false
jcs.auxiliary.RCluster.attributes.LocalClusterConsistency=true



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


Mime
View raw message