You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ankush (JIRA)" <ji...@apache.org> on 2014/09/17 07:11:33 UTC
[jira] [Created] (JCS-135) Remote JCS Implemented
Ankush created JCS-135:
--------------------------
Summary: Remote JCS Implemented
Key: JCS-135
URL: https://issues.apache.org/jira/browse/JCS-135
Project: Commons JCS
Issue Type: Question
Components: RMI Remote Cache
Affects Versions: jcs-1.3
Environment: Windows
Reporter: Ankush
HI I am using Remote JCS because of its client server arch. I am finding an wired issue on the server , when element are added , updated or deleted then changes are not reflected on clients i.e if I add a element on server then i can fetch on client but when i try to update or delete it then these changes are not reflected on server . Similarly when i add element from client then element are added on server and they are spooled to disk but i can't fetch them . But if I perform put ,remove operation form between clients
every thing is working fine but i can't access them on server as they are storing within disk of its .
# Registry used to register and provide the
# IRemoteCacheService service.
registry.host=10.71.71.18
registry.port=1111
# call back port to local caches.
remote.cache.service.port=1102
# rmi socket factory timeout
remote.cache.rmiSocketFactoryTimeoutMillis=5000
# cluster setting
remote.cluster.LocalClusterConsistency=true
remote.cluster.AllowClusterGet=true
#Define mp3Cache Region
jcs.region.mp3Cache=DC
jcs.region.mp3Cache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.mp3Cache.cacheattributes.MaxObjects=10
jcs.region.mp3Cache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.mp3Cache.cacheattributes.UseMemoryShrinker=true
jcs.region.mp3Cache.cacheattributes.MaxMemoryIdleTimeSeconds=5
jcs.region.mp3Cache.cacheattributes.ShrinkerIntervalSeconds=30
jcs.region.mp3Cache.cacheattributes.MaxSpoolPerRun=500
jcs.region.mp3Cache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.mp3Cache.elementattributes.IsEternal=true
jcs.region.mp3Cache.elementattributes.MaxLifeSeconds=7
jcs.region.mp3Cache.elementattributes.IdleTime=1
jcs.region.mp3Cache.elementattributes.IsSpool=true
jcs.region.mp3Cache.elementattributes.IsRemote=true
jcs.region.mp3Cache.elementattributes.IsLateral=true
#=============================================================================================================
# AVAILABLE AUXILIARY CACHES
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=e:/temp
jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000
jcs.auxiliary.DC.attributes.MaxKeySize=-1
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60
CLIENT CONFIGURATION
================================================
#Define mp3Cache Region
jcs.region.mp3Cache=DC,RFailover
jcs.region.mp3Cache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.mp3Cache.cacheattributes.MaxObjects=10
jcs.region.mp3Cache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.mp3Cache.cacheattributes.UseMemoryShrinker=true
jcs.region.mp3Cache.cacheattributes.MaxMemoryIdleTimeSeconds=5
jcs.region.mp3Cache.cacheattributes.ShrinkerIntervalSeconds=30
jcs.region.mp3Cache.cacheattributes.MaxSpoolPerRun=500
jcs.region.mp3Cache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.mp3Cache.elementattributes.IsEternal=true
jcs.region.mp3Cache.elementattributes.MaxLifeSeconds=7
jcs.region.mp3Cache.elementattributes.IdleTime=1
jcs.region.mp3Cache.elementattributes.IsSpool=true
jcs.region.mp3Cache.elementattributes.IsRemote=true
jcs.region.mp3Cache.elementattributes.IsLateral=true
#=============================================================================================================
# AVAILABLE AUXILIARY CACHES
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=c:/temp
jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000
jcs.auxiliary.DC.attributes.MaxKeySize=-1
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60
# Client configuration
===============================================
# 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.RemoteCacheAttributes
jcs.auxiliary.RFailover.attributes.FailoverServers=10.71.71.18:1111
jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=true
jcs.auxiliary.RFailover.attributes.GetOnly=false
Please guys let me know where i am going wrong.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)