You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by "Siefker, Adam" <si...@amazon.com> on 2005/07/27 01:46:17 UTC

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[7800],us-sea-l276648.an
t.amazon.com[7800];port_range=5;timeout=3000;num_initial_members=3;up_thread=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[7800],us-sea-l276648.ant.amazon.com[7800];port_range=5;timeout=3000;num_initial_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