jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick.Franci...@kohls.com
Subject RMI Server failover
Date Tue, 13 May 2008 14:56:54 GMT
I have 2 servers set up, one as a primary and the other as a backup.  When 
I try to simulate a failure of the primary server, caching is working 
fine.  But when I try to restore the primary server, the objects taht were 
cached on backup don't seem to get carried over to the primary. 

I have a feeling this is a set up thing and want to know if the cache.ccf 
files are set up correctly.  The goal is to have 2 JCS servers, one 
primary and one backup.  The primary and backup servers should stay in 
sync.  Once the primary comes back up, the backup should then revert to 
the primary and get in sync with the cached objects.  I'm new to JCS, but 
if anyone is able to help out, it would be great.  Thanks!

Client config.

# PRE-DEFINED CACHE REGIONS
jcs.region.leaseCache=RemoteFailoverCache
jcs.region.leaseCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.leaseCache.cacheattributes.MaxObjects=100000
jcs.region.leaseCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.leaseCache.cacheattributes.UseMemoryShrinker=false
jcs.region.leaseCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.leaseCache.elementattributes.IsEternal=true
jcs.default.elementattributes.IsSpool=false
jcs.default.elementattributes.IsRemote=true
jcs.default.elementattributes.IsLateral=false

# AUXILIARY CACHES
jcs.auxiliary.RemoteFailoverCache=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RemoteFailoverCache.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
jcs.auxiliary.RemoteFailoverCache.attributes.FailoverServers=a09050b4.tst.kohls.com:18352,a09050b3.tst.kohls.com:18352
jcs.auxiliary.RemoteFailoverCache.attributes.RmiSocketFactoryTimeoutMillis=600000
jcs.auxiliary.RemoteFailoverCache.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RemoteFailoverCache.attributes.GetOnly=false
jcs.auxiliary.RemoteFailoverCache.attributes.Receive=true

#############################################################################################
#PRIMARY SERVER:

# Registry used to register and provide the IRemoteCacheService service.
registry.host=localhost
registry.port=18352

# Call back port to local caches.
remote.cache.service.port=1102

# Cluster setting
remote.cluster.LocalClusterConsistency=true
remote.cluster.AllowClusterGet=false

jcs.default=RemoteClusterCache
#jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=false
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=true

jcs.auxiliary.RemoteClusterCache=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
jcs.auxiliary.RemoteClusterCache.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
jcs.auxiliary.RemoteClusterCache.attributes.RemoteTypeName=CLUSTER
jcs.auxiliary.RemoteClusterCache.attributes.RemoveUponRemotePut=false
jcs.auxiliary.RemoteClusterCache.attributes.ClusterServers=a09050b3.tst.kohls.com:18352
jcs.auxiliary.RemoteClusterCache.attributes.GetOnly=false

#############################################################################################
#BACKUP SERVER

# Registry used to register and provide the IRemoteCacheService service.
registry.host=localhost
registry.port=18352

# Call back port to local caches.
remote.cache.service.port=1102

# Cluster setting
#remote.cluster.LocalClusterConsistency=true
#remote.cluster.AllowClusterGet=true

#jcs.default=RemoteClusterCache
jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=false
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=true

#jcs.auxiliary.RemoteClusterCache=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
#jcs.auxiliary.RemoteClusterCache.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
#jcs.auxiliary.RemoteClusterCache.attributes.RemoteTypeName=CLUSTER
#jcs.auxiliary.RemoteClusterCache.attributes.RemoveUponRemotePut=false
#jcs.auxiliary.RemoteClusterCache.attributes.ClusterServers=a09050b4.tst.kohls.com:18352
#jcs.auxiliary.RemoteClusterCache.attributes.GetOnly=false


Rick Francisco
Programmer Analyst - Information Services 
Kohl's Department Stores
(262) 703 - 6790
rick.francisco@kohls.com

CONFIDENTIALITY NOTICE: 
This is a transmission from Kohl's Department Stores, Inc.
and may contain information which is confidential and proprietary.
If you are not the addressee, any disclosure, copying or distribution or use of the contents
of this message is expressly prohibited.
If you have received this transmission in error, please destroy it and notify us immediately
at 262-703-7000.

CAUTION:
Internet and e-mail communications are Kohl's property and Kohl's reserves the right to retrieve
and read any message created, sent and received.  Kohl's reserves the right to monitor messages
by authorized Kohl's Associates at any time
without any further consent.

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