jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: Latest JCS and Cocoon 2.1.5-dev - unable to connect to remotecache server
Date Thu, 27 May 2004 02:41:58 GMT
I see that you have localhost as the mchine name.  Are there multiple
cocoon instances trying to bind to the same callback port?  I thought
this would throw and error and not block.  What are you seeing?

If you need to run multiple instances on the same machine, they will
need separate config files to use the remote. 

I think the only way to use the same config file and connect cache
instances is to use the javagroups plugin for distribution.

If you want to use javagroups, (1) add this to your cache.ccf:

jcs.auxiliary.LJG=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LJG.attributes=org.apache.jcs.auxiliary.lateral.LateralCac
heAttributes
jcs.auxiliary.LJG.attributes.TransmissionTypeName=JAVAGROUPS
jcs.auxiliary.LJG.attributes.PutOnlyMode=true
jcs.auxiliary.LJG.attributes.JGChannelProperties =
UDP(mcast_addr=224.0.0.100;mcast_port=751):PING(timeout=3000):FD:STABLE:
NAKACK:UNICAST:FRAG:FLUSH:GMS:VIEW_ENFORCER:QUEUE


And (2) change the auxiliaries to javagroups: change "=RCache2" to
"=LJG"

I'm not sure this will meet all your needs.  It depends on the reasons
why you are using the remote cache.  

The alternative is to use a separate config file for each instance.  In
a way this might be preferable, since you can't have multiple instances
of the disk cache writing to the same files.  

(Perhaps the disk cache should try to get around this by using a file
name that incorporates something like the vmid?  There is no similar
alternative for ports, however.)

Cheers,

Aaron

> -----Original Message-----
> From: David Luk [mailto:David.Luk@tvnz.co.nz]
> Sent: Wednesday, May 26, 2004 5:23 PM
> To: Turbine JCS Users List
> Subject: RE: Latest JCS and Cocoon 2.1.5-dev - unable to connect to
> remotecache server
> 
> 
> This is the remote.cache.ccf that I am using.
> 
> There are multiple cocoon instances running, attempting to connect to
this
> remote cache instance.
> 
> Thanks for your help.
> 
> # registry used to register and provide the IRmiCacheService service.
> registry.host=localhost
> # 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
> # tomcat config
> remote.tomcat.on=false
> remote.tomcat.xml=remote.tomcat.xml
> # cluster setting
> remote.cluster.LocalClusterConsistency=true
> #not allowed -- remote.cluster.AllowClusterGet=false
> 
> 
> ##############################################################
> ################## DEFAULT CACHE REGION  #####################
> # sets the default aux value for any non configured caches
> jcs.default=DC
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
es
> jcs.default.cacheattributes.MaxObjects=1
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
.l
> ru.LRUMemoryCache
> jcs.default.cacheattributes.UseMemoryShrinker=true
> jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> jcs.default.elementattributes.IsEternal=true
> jcs.default.elementattributes.MaxLifeSeconds=7
> jcs.default.elementattributes.IdleTime=1800
> jcs.default.elementattributes.IsSpool=true
> jcs.default.elementattributes.IsRemote=true
> jcs.default.elementattributes.IsLateral=false
> 
> # SYSTEM CACHE
> # should be defined for the storage of group attribute list
> jcs.system.groupIdCache=DC
>
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC
ac
> heAttributes
> jcs.system.groupIdCache.cacheattributes.MaxObjects=10
> 
> ##############################################################
> ################## CACHE REGIONS AVAILABLE ###################
> jcs.region.main=DC
>
jcs.region.main.cacheattributes=org.apache.jcs.engine.CompositeCacheAttr
ib
> utes
> jcs.region.main.cacheattributes.MaxObjects=1
> 
> ##############################################################
> ################## AUXILIARY CACHES AVAILABLE ################
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF
ac
> tory
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
dD
> iskCacheAttributes
> jcs.auxiliary.DC.attributes.DiskPath=raf/remote
> 
> -----Original Message-----
> From: Aaron Smuts [mailto:aasmuts@wisc.edu]
> 
> Sent: Thursday, 27 May 2004 01:01
> To: 'Turbine JCS Users List'
> Subject: RE: Latest JCS and Cocoon 2.1.5-dev - unable to connect
> toremotecacheserver
> 
> 
> 
> Can you send the server cache.ccf.
> 
> Aaron
> 
> > -----Original Message-----
> > From: David Luk [mailto:David.Luk@tvnz.co.nz]
> > Sent: Monday, May 24, 2004 11:45 PM
> > To: turbine-jcs-user@jakarta.apache.org
> > Subject: Latest JCS and Cocoon 2.1.5-dev - unable to connect to
remote
> > cacheserver
> >
> 
> >
> 
> > Hi everyone,
> >
> 
> > Have anyone tried to use the latest cocoon & JCS code from CVS?
> > Apparently there are some code fixes for
> > -	JCS in related to cache persistence
> > -	cocoon.2.1.5-dev in related to the cache key creation
> >
> 
> > I have the JCS remote cache server up and running but I am unable to
> > configure my cocoon instance connecting to the remote JCS cache.
> > Are there any configuration changes in between cocoon 2.1.4 and
> 2.1.5-dev
> > that prevent the connection?
> >
> 
> > Appreciate your help.
> >
> 
> > Regards,
> > David Luk.
> >
> 
> > This is the cocoon JCS client log
> > 2004-05-25 10:53:53,387 [main] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Constructed cache
with
> name
> > main and cache attributes: [ useLateral = true, useRemote = true,
> useDisk
> > = true, maxObjs = 12, maxSpoolPerRun = -1 ]
> > 2004-05-25 10:53:53,387 [main] DEBUG
> > org.apache.jcs.engine.control.CompositeCacheConfigurator - Parsing
> region
> > name 'main', value 'RCache2'
> > 2004-05-25 10:53:53,387 [main] DEBUG
> > org.apache.jcs.engine.control.CompositeCacheConfigurator - Parsing
> > auxiliary named "RCache2".
> > 2004-05-25 10:53:53,388 [main] DEBUG
> > org.apache.jcs.engine.control.CompositeCacheConfigurator - Parsing
> options
> > for 'jcs.auxiliary.RCache2.attributes'
> > 2004-05-25 10:53:53,388 [main] DEBUG
> > org.apache.jcs.engine.control.CompositeCacheConfigurator - End of
> parsing
> > for 'jcs.auxiliary.RCache2.attributes'
> > 2004-05-25 10:53:53,388 [main] DEBUG
> > org.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade -
CONSTRUCTING
> NO
> > WAIT FAƇADE
> > ... and nothing afterwards
> >
> 
> > This is my default.ccf from cocoon
> > # Cache configuration defaults.
> >
> 
> > # DEFAULT CACHE REGION
> >
> 
> > jcs.default=RCache2
> >
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
> es
> > jcs.default.cacheattributes.MaxObjects=13
> >
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> .l
> > ru.LRUMemoryCache
> > jcs.default.cacheattributes.UseMemoryShrinker=false
> > jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> >
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> > jcs.default.elementattributes.IsEternal=true
> > jcs.default.elementattributes.MaxLifeSeconds=7
> > jcs.default.elementattributes.IdleTime=1800
> > jcs.default.elementattributes.IsSpool=true
> > jcs.default.elementattributes.IsRemote=true
> > jcs.default.elementattributes.IsLateral=false
> >
> 
> > # System CACHE REGION
> > jcs.system.groupIdCache=RCache2
> >
>
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC
> ac
> > heAttributes
> > jcs.system.groupIdCache.cacheattributes.MaxObjects=14
> >
> 
> > # PRE-DEFINED CACHE REGIONS
> >
> 
> > jcs.region.main=RCache2
> >
>
jcs.region.main.cacheattributes=org.apache.jcs.engine.CompositeCacheAttr
> ib
> > utes
> > jcs.region.main.cacheattributes.MaxObjects=9
> >
> 
> > # REMOTE CACHES
> >
>
jcs.auxiliary.RCache2=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
> >
>
jcs.auxiliary.RCache2.attributes=org.apache.jcs.auxiliary.remote.RemoteC
> ac
> > heAttributes
> > jcs.auxiliary.RCache2.attributes.FailoverServers=localhost:1102
> > jcs.auxiliary.RCache2.attributes.RemoveUponRemotePut=false
> > jcs.auxiliary.RCache2.attributes.GetOnly=false
> > jcs.auxiliary.RCache2.attributes.RemoteHost=localhost
> > jcs.auxiliary.RCache2.attributes.RemotePort=1102
> >
> 
> >
> 
> > TVNZ
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org
> 
> 
> ================================================================
> CAUTION: This e-mail and any attachment(s) contains information
> that is intended to be read only by the named recipient(s). It
> may contain information that is confidential, proprietary or the
> subject of legal privilege. This information is not to be used by
> any other person and/or organisation. If you are not the intended
> recipient, please advise us immediately and delete this e-mail
> from your system. Do not use any information contained in it.
> 
> ================================================================
> For more information on the Television New Zealand Group, visit
> us online at http://www.tvnz.co.nz
> ================================================================
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


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


Mime
View raw message