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 Cache with JavaGroups and TCP
Date Wed, 27 Jul 2005 13:47:45 GMT
I've been having trouble with Javagroups after I upgraded the version.

 

If you can't figure out how to configure the javagroups stack given
their documentation, then you might want to try TCP with UDP discovery.
It's a poor man's javagroups of sorts.

 

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

 

________________________________

From: Siefker, Adam [mailto:siefker@amazon.com] 
Sent: Tuesday, July 26, 2005 7:46 PM
To: jcs-users@jakarta.apache.org
Subject: Lateral Cache with JavaGroups and TCP

 

<<cache.ccf>> 
I am trying to get lateral caching to work with JavaGroups. I have my
code on 2 computers. Each instance starts up OK, but an object put on
one server is never available on the other. Multicase is not an options
for me, and I don't want to deal with different config files on
different machines, so JavaGroups over TCP seems like the best way to
go.






Log output:Server 1 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
setDefaultAuxValues 
INFO: setting defaults to null 
Jul 26, 2005 4:39:47 PM org.apache.jcs.config.OptionConverter
instantiateByKey 
WARNING: Could not find value for key jcs.default.cacheattributes 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
parseCompositeCacheAttributes 
WARNING: Could not instantiate ccAttr named
'jcs.default.cacheattributes', using defaults. 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
setDefaultCompositeCacheAttributes 
INFO: setting defaultCompositeCacheAttributes to [ useLateral = true,
useRemote = true, useDisk = true, maxObjs = 100, m

axSpoolPerRun = -1 ] 
Jul 26, 2005 4:39:47 PM org.apache.jcs.config.OptionConverter
instantiateByKey 
WARNING: Could not find value for key jcs.default.elementattributes 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
parseElementAttributes 
WARNING: Could not instantiate eAttr named
'jcs.default.elementattributes', using defaults. 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
setDefaultElementAttributes 
INFO: setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL
= true, IS_REMOTE = true, IS_ETERNAL = true, Max

LifeSeconds = -1, IdleTime = -1, CreateTime = 1122421187465,
LastAccessTime = 1122421187465, getTimeToLiveSeconds() = -1

000, createTime = 1122421187465 ] 
Jul 26, 2005 4:39:47 PM org.apache.jcs.engine.memory.lru.LRUMemoryCache
initialize 
INFO: initialized LRUMemoryCache for fijiSearchBlendedResults 
Jul 26, 2005 4:39:47 PM org.apache.jcs.engine.control.CompositeCache
<init> 
INFO: Constructed cache with name: fijiSearchBlendedResults 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.auxiliary.lateral.LateralCacheManager getInstance 
INFO: Instance for [JAVAGROUPS228.5.6.76789] is null, creating 
Jul 26, 2005 4:39:47 PM org.jgroups.blocks.ConnectionTable start 
INFO: server socket created on 10.21.210.56:7800 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.auxiliary.lateral.LateralCacheManager getCache 
INFO: craeted LateralCacheNoWait for JAVAGROUPS228.5.6.76789 
Jul 26, 2005 4:39:47 PM
org.apache.jcs.auxiliary.lateral.javagroups.LateralCacheJGListener
getInstance 
INFO: created new listener
TCP(start_port=7800):TCPPING(initial_hosts=siefker.desktop.amazon.com[78
00],us-sea-l276648.an

t.amazon.com[7800];port_range=5;timeout=3000;num_initial_members=3;up_th
read=true;down_thread=true): 
Jul 26, 2005 4:39:47 PM org.jgroups.blocks.ConnectionTable start 
INFO: server socket created on 10.21.210.56:7801 
Jul 26, 2005 4:39:50 PM org.apache.jcs.engine.CacheEventQueue put 
INFO: Cache event queue created: CacheEventQueue [listenerId=1434690872,
cacheName=fijiSearchBlendedResults] 

 

Log output:Server 2 
2005-07-26 16:14:01,391 INFO [main]
org.apache.jcs.engine.control.CompositeCacheConfigurator - setting
defaults to null 
2005-07-26 16:14:01,392 WARN [main]
org.apache.jcs.config.OptionConverter - Could not find value for key
jcs.default.cacheattributes

2005-07-26 16:14:01,393 WARN [main]
org.apache.jcs.engine.control.CompositeCacheConfigurator - Could not
instantiate ccAttr named 'jcs.default.cacheattributes', using defaults.

2005-07-26 16:14:01,399 INFO [main]
org.apache.jcs.engine.control.CompositeCacheConfigurator - setting
defaultCompositeCacheAttributes to [ useLateral = true, useRemote =
true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1 ]

2005-07-26 16:14:01,400 WARN [main]
org.apache.jcs.config.OptionConverter - Could not find value for key
jcs.default.elementattributes

2005-07-26 16:14:01,400 WARN [main]
org.apache.jcs.engine.control.CompositeCacheConfigurator - Could not
instantiate eAttr named 'jcs.default.elementattributes', using defaults.

2005-07-26 16:14:01,401 INFO [main]
org.apache.jcs.engine.control.CompositeCacheConfigurator - setting
defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true,
IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1,
CreateTime = 1122419641401, LastAccessTime = 1122419641401,
getTimeToLiveSeconds() = -1000, createTime = 1122419641401 ]

2005-07-26 16:14:01,648 INFO [main]
org.apache.jcs.engine.memory.lru.LRUMemoryCache - initialized
LRUMemoryCache for fijiSearchBlendedResults

2005-07-26 16:14:01,648 INFO [main]
org.apache.jcs.engine.control.CompositeCache - Constructed cache with
name: fijiSearchBlendedResults

2005-07-26 16:14:01,669 INFO [main]
org.apache.jcs.auxiliary.lateral.LateralCacheManager - Instance for
[JAVAGROUPS228.5.6.76789] is null, creating

2005-07-26 16:14:02,418 INFO [DownHandler (TCP)]
org.jgroups.blocks.ConnectionTable - server socket created on
10.21.209.154:7800

2005-07-26 16:14:02,541 INFO [main]
org.apache.jcs.auxiliary.lateral.LateralCacheManager - craeted
LateralCacheNoWait for JAVAGROUPS228.5.6.76789

2005-07-26 16:14:02,546 INFO [main]
org.apache.jcs.auxiliary.lateral.javagroups.LateralCacheJGListener -
created new listener
TCP(start_port=7800):TCPPING(initial_hosts=siefker.desktop.amazon.com[78
00],us-sea-l276648.ant.amazon.com[7800];port_range=5;timeout=3000;num_in
itial_members=3;up_thread=true;down_thread=true):

2005-07-26 16:14:02,817 INFO [DownHandler (TCP)]
org.jgroups.blocks.ConnectionTable - server socket created on
10.21.209.154:7801

 

Thanks 
Adam Siefker 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message