tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <devli...@hanik.com>
Subject RE: tomcat 5.0.16 Replication
Date Sun, 04 Jan 2004 01:06:48 GMT
it will come out in the next release.

Filip

-----Original Message-----
From: jean-philippe.belanger@cgi.com
[mailto:jean-philippe.belanger@cgi.com]
Sent: Wednesday, December 31, 2003 9:41 AM
To: Tomcat-user
Subject: tomcat 5.0.16 Replication


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


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


Mime
View raw message