jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Vismans" <dav...@chello.nl>
Subject RE: Newbie: pulling my hair out with remote cache
Date Tue, 10 Aug 2004 08:47:05 GMT
I have not tried this, will do.
It shouldn't make a difference should it?

David

> -----Oorspronkelijk bericht-----
> Van: Hanson Char [mailto:hanson_char@yahoo.com] 
> Verzonden: dinsdag 10 augustus 2004 10:11
> Aan: Turbine JCS Developers List
> Onderwerp: RE: Newbie: pulling my hair out with remote cache
> 
> 
> Have you tried putting the remote CS on a different
> physical machine, instead of the same to see if it
> makes a difference ?
> 
> Hanson
> --- David Vismans <david4@chello.nl> wrote:
> 
> > > You have the remote server configured to
> > invalidate items on
> > > other local caches when something is put into the
> > originating
> > > local cache.  When an item is put in C1 it tells
> > CS, CS then
> > > tells all other registered caches, in this case
> > C2, to remove
> > > the item.  The setting is in this line.  If you
> > don't want
> > > this behavior, then set this to false.
> > > 
> > > 
> >
> jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=true
> > > 
> > > Having this set to true is recommended for
> > situations where
> > > the data on a particular machine may be somewhat
> > user
> > > specific.  There are some case, like this, where
> > you don't
> > > want the items stored in memory to be the same on
> > all machines.
> > > 
> > > Cheers,
> > > 
> > > Aaron
> > 
> > Thank you for the quick reply.
> > 
> > I know about this parameter, and eventhough it is
> > set to true now I've
> > tried it with both settings.
> > 
> > The thing is CS does also not message C2 to
> > invalidate the item. C2,
> > pulls the old version of the same key out of local
> > memory eventhough C1
> > has updated locally and propagated its new value to
> > CS. CS simply
> > doesn't talk to C2. When I start C2 up it does
> > however register it
> > listener with CS.
> > 
> > Any thoughts?
> > 
> > Thanks again.
> > 
> > David
> > 
> > Below are my config files again and my original
> > description of the
> > problem.
> > 
> > C1:
> > # PRE-DEFINED CACHE REGIONS   
> > jcs.region.Tasks=DC,RFailover
> >
> jcs.region.Tasks.cacheattributes=org.apache.jcs.engine.Composi
> teCacheAtt
> > ributes
> > jcs.region.Tasks.cacheattributes.MaxObjects=1000
> >
> jcs.region.Tasks.cacheattributes.MemoryCacheName=org.apache.jc
> s.engine.m
> > emory.lru.LRUMemoryCache
> >
> jcs.region.Tasks.cacheattributes.UseMemoryShrinker=false
> >
> jcs.region.Tasks.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> >
> jcs.region.Tasks.cacheattributes.ShrinkerIntervalSeconds=60
> >
> jcs.region.Tasks.elementattributes=org.apache.jcs.engine.Eleme
> ntAttribut
> > es
> > jcs.region.Tasks.elementattributes.IsEternal=false
> > jcs.region.Tasks.elementattributes.IdleTime=1800
> > jcs.region.Tasks.elementattributes.IsSpool=true
> > jcs.region.Tasks.elementattributes.IsRemote=true
> > jcs.region.Tasks.elementattributes.IsLateral=false
> > 
> >
> jcs.system.groupIdCache=jcs.system.groupIdCache.cacheattribute
> s=org.apac
> > he.jcs.engine.CompositeCacheAttributes
> >
> jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
> >
> jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.ap
> ache.jcs.e
> > ngine.memory.lru.LRUMemoryCache
> > 
> > # Remote RMI Cache set up to failover
> >
> jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.Remote
> CacheFacto
> > ry
> >
> jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.re
> mote.Remot
> > eCacheAttributes
> >
> jcs.auxiliary.RFailover.attributes.RemoteHost=localhost
> > jcs.auxiliary.RFailover.attributes.RemotePort=2099
> > jcs.auxiliary.RFailover.attributes.LocalPort=2103
> >
> #jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:2099
> >
> jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=true
> > jcs.auxiliary.RFailover.attributes.GetOnly=false
> >
> #jcs.auxiliary.RFailover.attributes.RemoteTypeName=REMOTE
> > 
> > # AVAILABLE AUXILIARY CACHES   
> >
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.Indexed
> DiskCacheF
> > actory
> >
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.inde
> xed.Indexe
> > dDiskCacheAttributes
> >
> jcs.auxiliary.DC.attributes.DiskPath=C:/Temp/diskcachelocal
> > jcs.auxiliary.DC.attributes.maxKeySize=1000
> > 
> > ------------------
> > C2:
> > 
> > # PRE-DEFINED CACHE REGIONS   
> > jcs.region.Tasks=DC,RFailover
> >
> jcs.region.Tasks.cacheattributes=org.apache.jcs.engine.Composi
> teCacheAtt
> > ributes
> > jcs.region.Tasks.cacheattributes.MaxObjects=1000
> >
> jcs.region.Tasks.cacheattributes.MemoryCacheName=org.apache.jc
> s.engine.m
> > emory.lru.LRUMemoryCache
> >
> jcs.region.Tasks.cacheattributes.UseMemoryShrinker=false
> >
> jcs.region.Tasks.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> >
> jcs.region.Tasks.cacheattributes.ShrinkerIntervalSeconds=60
> >
> jcs.region.Tasks.elementattributes=org.apache.jcs.engine.Eleme
> ntAttribut
> > es
> > jcs.region.Tasks.elementattributes.IsEternal=false
> > jcs.region.Tasks.elementattributes.IdleTime=1800
> > jcs.region.Tasks.elementattributes.IsSpool=true
> > jcs.region.Tasks.elementattributes.IsRemote=true
> > jcs.region.Tasks.elementattributes.IsLateral=false
> > 
> >
> jcs.system.groupIdCache=jcs.system.groupIdCache.cacheattribute
> s=org.apac
> > he.jcs.engine.CompositeCacheAttributes
> >
> jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
> >
> jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.ap
> ache.jcs.e
> > ngine.memory.lru.LRUMemoryCache
> > 
> > # Remote RMI Cache set up to failover
> >
> jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.Remote
> CacheFacto
> > ry
> >
> jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.re
> mote.Remot
> > eCacheAttributes
> >
> jcs.auxiliary.RFailover.attributes.RemoteHost=localhost
> > jcs.auxiliary.RFailover.attributes.RemotePort=2099
> > jcs.auxiliary.RFailover.attributes.LocalPort=2102
> >
> #jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:2099
> >
> jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=true
> >
> #jcs.auxiliary.RFailover.attributes.RemoteTypeName=REMOTE
> > jcs.auxiliary.RFailover.attributes.GetOnly=false
> > #jcs.auxiliary.RFailover.attributes.GetOnly=false
> >
> #jcs.auxiliary.RFailover.attributes.RemoteServiceName=RemoteCache
> > 
> > # AVAILABLE AUXILIARY CACHES   
> >
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.Indexed
> DiskCacheF
> > actory
> >
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.inde
> xed.Indexe
> > dDiskCacheAttributes
> >
> jcs.auxiliary.DC.attributes.DiskPath=C:/Temp/updateclient1
> > jcs.auxiliary.DC.attributes.maxKeySize=1000
> > 
> > --------------
> > CS:
> > registry.host=localhost
> > registry.port=2099
> > remote.cache.service.port=2099
> > remote.tomcat.on=false remote.cluster.LocalClusterConsistency=true
> > 
> > jcs.system.groupIdCache=DC
> >
> jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.
> CompositeC
> > acheAttributes
> >
> jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
> >
> jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.ap
> ache.jcs.e
> > ngine.memory.lru.LRUMemoryCache
> >
> jcs.system.groupIdCache.elementattributes=org.apache.jcs.engin
> e.ElementA
> > ttributes
> >
> jcs.system.groupIdCache.elementattributes.IsEternal=true
> >
> jcs.system.groupIdCache.elementattributes.MaxLifeSeconds=3600
> >
> jcs.system.groupIdCache.elementattributes.IdleTime=1800
> >
> jcs.system.groupIdCache.elementattributes.IsSpool=true
> >
> jcs.system.groupIdCache.elementattributes.IsRemote=false
> >
> jcs.system.groupIdCache.elementattributes.IsLateral=false
> > 
> > # DEFAULT CACHE REGION   
> > jcs.default=DC
> >
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCac
> heAttribut
> > es
> > jcs.default.cacheattributes.MaxObjects=10000
> >
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.eng
> ine.memory
> > .lru.LRUMemoryCache jcs.default.elementattributes.IsEternal=false
> > jcs.default.elementattributes.MaxLifeSeconds=3600
> > jcs.default.elementattributes.IdleTime=1800
> > jcs.default.elementattributes.IsSpool=true
> > jcs.default.elementattributes.IsRemote=true
> > jcs.default.elementattributes.IsLateral=false
> > 
> > # PRE-DEFINED CACHE REGIONS   
> > jcs.region.Tasks=DC
> >
> jcs.region.Tasks.cacheattributes=org.apache.jcs.engine.Composi
> teCacheAtt
> > ributes
> > jcs.region.Tasks.cacheattributes.MaxObjects=1000
> >
> jcs.region.Tasks.cacheattributes.MemoryCacheName=org.apache.jc
> s.engine.m
> > emory.lru.LRUMemoryCache
> >
> jcs.region.Tasks.cacheattributes.UseMemoryShrinker=false
> >
> jcs.region.Tasks.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> >
> jcs.region.Tasks.cacheattributes.ShrinkerIntervalSeconds=60
> >
> jcs.region.Tasks.elementattributes=org.apache.jcs.engine.Eleme
> ntAttribut
> > es
> > jcs.region.Tasks.elementattributes.IsEternal=true
> > jcs.region.Tasks.elementattributes.IdleTime=1800
> > jcs.region.Tasks.elementattributes.IsSpool=true
> > jcs.region.Tasks.elementattributes.IsRemote=true
> > jcs.region.Tasks.elementattributes.IsLateral=false
> > 
> > # AVAILABLE AUXILIARY CACHES   
> >
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.Indexed
> DiskCacheF
> > actory
> >
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.inde
> xed.Indexe
> > dDiskCacheAttributes
> >
> jcs.auxiliary.DC.attributes.DiskPath=C:/Temp/diskcacheremote/
> > jcs.auxiliary.DC.attributes.maxKeySize=100000
> >
> jcs.auxiliary.DC.elementattributes=org.apache.jcs.engine.Eleme
> ntAttribut
> > es
> > jcs.auxiliary.DC.elementattributes.IsEternal=true
> > jcs.auxiliary.DC.elementattributes.IdleTime=1800
> > jcs.auxiliary.DC.elementattributes.IsSpool=true
> > jcs.auxiliary.DC.elementattributes.IsRemote=true
> > jcs.auxiliary.DC.elementattributes.IsLateral=false
> > > 
> > > 
> > > -----Original Message-----
> > > From: David Vismans [mailto:david4@chello.nl]
> > > Sent: Monday, August 09, 2004 5:13 AM
> > > To: turbine-jcs-dev@jakarta.apache.org
> > > Subject: Newbie: pulling my hair out with remote
> > cache
> > > 
> > > Hi everyone,
> > > 
> > > First, JCS looks great! Looking forward to some
> > extensive
> > > usage. However, I have been trying to get the
> > remote cache
> > > working for about a week now, and I am not
> > succeeding.
> > > 
> > > Here's the setup:
> > > 
> > > C1 (client 1) pushes an element E in it's local
> > cache.
> > > CS (server) receives (the update of) this object
> > and does store it.
> > > 
> > > C2 (client 2) is able to retrieve the cached
> > element E from CS.
> > > 
> > > so far so good,
> > > 
> > > but when C1 repetitively updates E (named "test")
> > with a
> > > random integer value, C2 is not notified of the
> > new value for
> > > this key. CS DOES receive the element, but does
> > not propagate to C2.
> > > 
> > > I have read through every example and also
> > mailinglist
> > > messages I still have not found the solution.
> > > 
> > > I got JCS from the CVS and RMI is working, I
> > created the
> > > stubs etc. I am using the latest jdk on windows xp
> > home edition.
> > > 
> > > Perhaps an interesting detail: I did not get the
> > lateral
> > > cache to propagate either (there is no firewall
> > running). All
> > > clients and the server run on the same machine.
> > > 
> > > If anyone could help me out here I would really
> > appreciate it!
> > > 
> > > Thanks in advance,
> > > 
> > > David
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> turbine-jcs-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > turbine-jcs-dev-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages! 
http://promotions.yahoo.com/new_mail 

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


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


Mime
View raw message