jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Young, Wayne" <WYo...@metasolv.com>
Subject remote cache scenario between 2 servers?
Date Wed, 02 Apr 2003 12:23:09 GMT

I've been trying unsuccessfully to get the following scenario to work
regarding remote caching.

srvplbeta1: local cache, remote cache at 1102
srvplbeta2: local cache, remote cache at 1102

Is it possible to have a remote caches on 2 different servers act as a
cluster. I've had success when both remote cache servers are on the same
server, but can't get this scenario to work correctly.

Here are some "snippets" from the cache.ccf & remote.cache.ccf on each
server. Is something misconfigured OR is this not even possible?

---- srvplbeta1 ----
srvplbeta1 cache.ccf (just a snippet)
# Remote RMI Cache set up to failover
jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.remote.RemoteCac
heAttributes
jcs.auxiliary.RFailover.attributes.RemoteTypeName=LOCAL
jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:1102,srvplbeta2
:1102
jcs.auxiliary.RFailover.attributes.GetOnly=false

srvplbeta1 remote.cache.ccf
registry.host=localhost
registry.port=1102
remote.cache.service.port=1102
remote.tomcat.on=false
remote.cluster.LocalClusterConsistency=true
## default cache region ##
jcs.default=DC,RCluster1
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=2000

# GROUP ATTRIBUTE LIST
jcs.system.groupIdCache=DC,RCluster1
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCache
Attributes
jcs.system.groupIdCache.cacheattributes.MaxObjects=1000

# PRE-DEFINED CACHE REGIONS
jcs.region.MSSCache=DC,RCluster1
jcs.region.MSSCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttr
ibutes
jcs.region.MSSCache.cacheattributes.MaxObjects=2000
jcs.region.MSSCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.me
mory.lru.LRUMemoryCache
jcs.region.MSSCache.cacheattributes.UseMemoryShrinker=true
jcs.region.MSSCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.MSSCache.cacheattributes.ShrinkerIntervalSeconds=60

# AUXILIARY CACHES
jcs.auxiliary.RCluster1=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RCluster1.attributes=org.apache.jcs.auxiliary.remote.RemoteCac
heAttributes
jcs.auxiliary.RCluster1.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RCluster1.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RCluster1.attributes.ClusterServers=srvplbeta2:1102
jcs.auxiliary.RCluster1.attributes.GetOnly=false
jcs.auxiliary.RCluster1.attributes.LocalClusterConsistency=true

# DISK CACHE
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=/opt/bea/temp/remote

---- srvplbeta2 ----
srvplbeta2 cache.ccf (just a snippet)
# Remote RMI Cache set up to failover
jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.remote.RemoteCac
heAttributes
jcs.auxiliary.RFailover.attributes.RemoteTypeName=LOCAL
jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:1102,srvplbeta1
:1102
jcs.auxiliary.RFailover.attributes.GetOnly=false

srvplbeta2 remote.cache.ccf
registry.host=localhost
registry.port=1102
remote.cache.service.port=1102
remote.tomcat.on=false
remote.cluster.LocalClusterConsistency=true
## default cache region ##
jcs.default=DC,RCluster1
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=2000

# GROUP ATTRIBUTE LIST
jcs.system.groupIdCache=DC,RCluster1
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCache
Attributes
jcs.system.groupIdCache.cacheattributes.MaxObjects=1000

# PRE-DEFINED CACHE REGIONS
jcs.region.MSSCache=DC,RCluster1
jcs.region.MSSCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttr
ibutes
jcs.region.MSSCache.cacheattributes.MaxObjects=2000
jcs.region.MSSCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.me
mory.lru.LRUMemoryCache
jcs.region.MSSCache.cacheattributes.UseMemoryShrinker=true
jcs.region.MSSCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.MSSCache.cacheattributes.ShrinkerIntervalSeconds=60

# AUXILIARY CACHES
jcs.auxiliary.RCluster1=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RCluster1.attributes=org.apache.jcs.auxiliary.remote.RemoteCac
heAttributes
jcs.auxiliary.RCluster1.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RCluster1.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RCluster1.attributes.ClusterServers=srvplbeta1:1102
jcs.auxiliary.RCluster1.attributes.GetOnly=false
jcs.auxiliary.RCluster1.attributes.LocalClusterConsistency=true

# DISK CACHE
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=/opt/bea/temp/remote


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message