You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Marco T. Avila" <ph...@yahoo.com.mx> on 2005/09/21 16:24:54 UTC

clustering issues

Hello,

    I have a cluster of slides, one slide is in tomcat 1 and the other
slide is in tomcat 2, and all works fine, but when I get the report for
the history of the file I get strange results, sometimes the correct
value, sometimes a middle version.
The balancer is via mod_jk with Apache Web Server 2.0.54, all this is in
Linux.

I have tried even to set the <distributable/> tag in the web.xml's of
the slides, but no good results:



My settings for clustering are like this:

Tomcat 1
<!-- Uncomment for cluster support. Be sure to local-host and
repository-host -->

                <listener
classname="org.apache.slide.cluster.ClusterCacheRefresher">
                        <configuration>
                                <node local-host="localhost"
                                      local-port="4445"
                                          repository-host="localhost"
                                          repository-port="8081"
                                          repository-protocol="http"
                                          username="root"
                                          password="root"
                                          base-uri="/files/"
                                />
                        </configuration>
     </listener>


Tomcat 2
<listener classname="org.apache.slide.cluster.ClusterCacheRefresher">
                        <configuration>
                                <node local-host="localhost"
                                      local-port="4444"
                                          repository-host="localhost"
                                          repository-port="8080"
                                          repository-protocol="http"
                                          username="root"
                                          password="root"
                                          base-uri="/files/"
                                />
                        </configuration>
</listener>


LOGS
===

In Tomcat 1, this log repeats very often

INFO: Notification received for subscribers: 1
Sep 21, 2005 4:14:18 PM org.apache.webdav.lib.NotificationListener poll
INFO: Poll for subscribers: 1
21 Sep 2005 16:14:18 - org.apache.slide.cluster.ClusterCacheRefresher -
INFO - Resetting cache for /files/marco1/2/todos.doc
Sep 21, 2005 4:14:36 PM org.apache.webdav.lib.NotificationListener poll
INFO: Poll for subscribers: 1,2,3,4
21 Sep 2005 16:14:44 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Notify subscribers with adress='httpu://localhost:4445' via UDP
with id's 1


In Tomcat 2, I have this all the time, seems in a loop:
INFO: Poll for subscribers: 1,2,3,4
21 Sep 2005 16:23:36 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 1
21 Sep 2005 16:23:36 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 2
21 Sep 2005 16:23:36 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 3
21 Sep 2005 16:23:36 - org.apache.slide.webdav.event.NotificationTrigger
- INFO - Refreshing subscriber with ID: 4
Sep 21, 2005 4:23:54 PM org.apache.webdav.lib.NotificationListener poll
INFO: Poll for subscribers: 1,2,3,4


What am I doing wrong??

Help

Regards

Marco


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