Hi all, I've a web app deployed in 4 machines behind a load balancer. Every server has own tomcat. The particularity of the architecture is that the webapp is deployed on a nfs so that the 4 servers has the same configuration.
My need is to have a cache shared between the server. I think to configure jcs in this way (for every server): ... jcs.region.qf=LTCP jcs.region.qf.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.region.qf.cacheattributes.MaxObjects=2000 jcs.region.qf.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.mru.MRUMemoryCache jcs.region.qf.cacheattributes.UseMemoryShrinker=false #jcs.region.qf.cacheattributes.MaxMemoryIdleTimeSeconds=30 #jcs.region.qf.cacheattributes.ShrinkerIntervalSeconds=10 jcs.region.qf.cacheattributes.MaxSpoolPerRun=500 jcs.region.qf.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.region.qf.elementattributes.IsEternal=false jcs.region.qf.elementattributes.MaxLifeSeconds=60 jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes jcs.auxiliary.LTCP.attributes.TcpServers=host1:1111,host2:1111, host3:1111, host4:1111 jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111 jcs.auxiliary.LTCP.attributes.AllowGet=true I think in this way that any server listen on port 1111, and in the same time, every server look for the other listening on the same port. What do you think? Thank very much Luca ________________________________ Le informazioni contenute nella presente e-mail potrebbero essere confidenziali e sono dirette unicamente ai destinatari sopra indicati. In caso di ricezione da parte di persona diversa ? vietato qualunque tipo di distribuzione o copia. Chi riceva questo messaggio per errore ? pregato di inoltrarlo al mittente e di distruggere questa e-mail. This e-mail may contain confidential information and is intended only for the use of the addressee(s) named above. If the reader of this message is not the intended recipient of this message, please note that distribution or copying of this communication is forbidden. Anyone who receives this communication in error should return it immediately to the sender and destroy the message.