jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Youngho Cho" <youn...@nannet.co.kr>
Subject Fw: Lateral TCP Cache config file for torque 3.1
Date Thu, 28 Jul 2005 00:15:59 GMT

----- Original Message ----- 
From: "Youngho Cho" <youngho@nannet.co.kr>
To: "Smuts, Aaron" <Aaron.Smuts@travelocity.com>
Sent: Thursday, July 28, 2005 8:24 AM
Subject: Re: Lateral TCP Cache config file for torque 3.1


> Hi Aaron,
> 
> Thank for your kind reply.
> 
> I should notice from jcs documents that 
> 
> jcs.auxiliary.LTCP.attributes.TcpServers=
>     localhost:1111,localhost:1112
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> 
> The two tcp severs is in same server not different sever !
> 
> I will try  UDP discovery mechanism.
> 
> Thanks a lot !.
> 
> Youngho
> 
> 
> ----- Original Message ----- 
> From: "Smuts, Aaron" <Aaron.Smuts@travelocity.com>
> To: "JCS Users List" <jcs-users@jakarta.apache.org>; "Youngho Cho" <youngho@nannet.co.kr>
> Sent: Wednesday, July 27, 2005 10:42 PM
> Subject: RE: Lateral TCP Cache config file for torque 3.1
> 
> 
> > If you use this same file on all the servers, the you are trying to
> > connect to servers on port 9112 but they are listening on port 9111.
> > 
> > >
> > jcs.auxiliary.LTCP.attributes.TcpServers=192.168.1.25:9112,192.168.1.12:
> > 91
> > > 12
> > > jcs.auxiliary.LTCP.attributes.TcpListenerPort=9111
> > 
> > That won't work.
> > 
> > Get the 1.2.6.5 version of JCS and use the UDP discovery mechanism.  It
> > allows you to use the same config file on multiple machines.
> > 
> > Ex.
> > 
> > 
> > # Lateral TCP Distribution with UDP Discovery
> > jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
> > jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCa
> > cheAttributes
> > jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> > jcs.auxiliary.LTCP.attributes.TcpListenerPort=9112
> > jcs.auxiliary.LTCP.attributes.PutOnlyMode=true
> > jcs.auxiliary.LTCP.attributes.Receive=true
> > jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true
> > jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.8
> > jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6780
> > 
> > Aaron
> > 
> > > -----Original Message-----
> > > From: Youngho Cho [mailto:youngho@nannet.co.kr]
> > > Sent: Wednesday, July 27, 2005 5:43 AM
> > > To: Turbine JCS Users List
> > > Subject: Lateral TCP Cache config file for torque 3.1
> > > 
> > > Hello,
> > > I.m using  torque-3.1.
> > > I would like to use Lateral TCP cache with at least  2 more servers.
> > > 
> > > My config file is following.
> > > But I couldn't sucessful to synchronize or invalidate the caches
> > between 2
> > > servers so far.
> > > 
> > > Is there something wrong in my configure file ?
> > > 
> > > If any one use Lateral Cache with torque, please post the config file.
> > > I'm very appreciated.
> > > 
> > > Thanks,
> > > 
> > > Youngho
> > > 
> > >
> > ------------------------------------------------------------------------
> > > 
> > > # DEFAULT CACHE REGION
> > > # sets the default aux value for any non configured caches
> > > jcs.default=LTCP
> > >
> > jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
> > es
> > > jcs.default.cacheattributes.MaxObjects=2000
> > >
> > jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> > .l
> > > ru.LRUMemoryCache
> > > 
> > > # this is copied from example, not sure of its utility
> > > # SYSTEM CACHE
> > > # should be defined for the storage of group attribute list
> > > jcs.system.groupIdCache=
> > >
> > jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC
> > ac
> > > heAttributes
> > > jcs.system.groupIdCache.cacheattributes.MaxObjects=2000
> > >
> > jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.e
> > ng
> > > ine.memory.lru.LRUMemoryCache
> > > 
> > > 
> > > # DEFINE Lateral TCP Auxiliary Cache
> > >
> > jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
> > >
> > jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCa
> > ch
> > > eAttributes
> > > jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> > >
> > jcs.auxiliary.LTCP.attributes.TcpServers=192.168.1.25:9112,192.168.1.12:
> > 91
> > > 12
> > > jcs.auxiliary.LTCP.attributes.TcpListenerPort=9111
> > > jcs.auxiliary.LTCP.attributes.PutOnlyMode=true
> > > # jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
> > > # jcs.auxiliary.LTCP.attributes.Receive=false
> > > 
> > > # CACHE REGIONS AVAILABLE
> > > # Regions preconfigured for caching
> > > jcs.region.com_nannet_jettiger_om_JettigerUser=LTCP
> > >
> > jcs.region.com_nannet_jettiger_om_JettigerUser.cacheattributes=org.apach
> > e.
> > > jcs.engine.CompositeCacheAttributes
> > >
> > jcs.region.com_nannet_jettiger_om_JettigerUser.cacheattributes.MaxObject
> > s=
> > > 1200
> > >
> > jcs.region.com_nannet_jettiger_om_JettigerUser.cacheattributes.MemoryCac
> > he
> > > Name=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> > > 
> > > jcs.region.com_nannet_jettiger_om_Preference=LTCP
> > >
> > jcs.region.com_nannet_jettiger_om_Preference.cacheattributes=org.apache.
> > jc
> > > s.engine.CompositeCacheAttributes
> > >
> > jcs.region.com_nannet_jettiger_om_Preference.cacheattributes.MaxObjects=
> > 12
> > > 00
> > >
> > jcs.region.com_nannet_jettiger_om_Preference.cacheattributes.MemoryCache
> > Na
> > > me=org.apache.jcs.engine.memory.lru.LRUMemoryCache
Mime
View raw message