The new tomcat 5.0.16 replication seams to work odly.
From what I've read from the documentation and the mailing list, the clustering is
supposed to be done synchronously.
Right?
Well that's not what's happening on my end, the client receives the response before
the whole replication thing is done.
ex:
I got a webpage that fetches data and if data is found put it in the session and
return a webpage containing a IFRAME.
In the IFRAME, the src hits a webpage on the same cluster and loads up the data found
in the session and display it.
Well sometimes, when the IFRAME is shown and that hit is forwarded to different server
than the first access, the data in the session is empty.
Then once the page is loaded (empty) and returned to the client, I get the replication
message in my logs. (The message containing the data that was supposed to be already
replicated).
[Cluster config]
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
name="PortalClusterJP"
debug="10"
serviceclass="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.5"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"
tcpThreadCount="2"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
printToScreen="true"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
replicationMode="synchronous"
/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
[end Cluster Config]
Any idea on what could be going wrong here?
Jean-Philippe B�langer
CGI