jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smuts, Aaron" <Aaron.Sm...@travelocity.com>
Subject RE: Lateral TCP Cache config file for torque 3.1
Date Wed, 27 Jul 2005 13:42:07 GMT
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

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


Mime
View raw message