Uploaded image for project: '[Archived] Alfresco Community'
  1. [Archived] Alfresco Community
  2. ALFCOM-3011

cacheManagerPeerListenerFactory needs exact server IP configuration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not a bug
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Installation
    • Security Level: external (External user)
    • Labels:
      None

      Description

      The default configuration for cacheManagerPeerListenerFactory in the ehcache-custom.xml.sample.cluster is:

      <cacheManagerPeerListenerFactory
      class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" />

      But using default configuration the index and cache clustering doesn't work (http://wiki.alfresco.com/wiki/Cluster_Configuration_V2.1.3_and_Later#Testing_the_cluster). The only things is working is content replication.

      Extending this factory in the following way solves the problem:
      <cacheManagerPeerListenerFactory
      class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
      properties="hostName=<server-ip>, port=40001, socketTimeoutMillis=5000"/>

      AntonRy

        Activity

        Hide
        mkononovich mkononovich added a comment -

        Found in Alfresco 3.2 Labs build 1984 2 nodes cluster using Windows 2003 R2 SP2, Tomcat 6.0.18, Mysql 5.1.31, JDK 6u7 x32.

        Show
        mkononovich mkononovich added a comment - Found in Alfresco 3.2 Labs build 1984 2 nodes cluster using Windows 2003 R2 SP2, Tomcat 6.0.18, Mysql 5.1.31, JDK 6u7 x32.
        Hide
        dhulley Derek Hulley added a comment -

        This is not a bug, but is rather a configuration option.
        You will need to use the hostname property when the JVM is unable to correctly determine the IP address of the machine it is running on. Usually the hostname resolves to an incorrect IP address when running in a JVM or if the hosts file is incorrect.

        Show
        dhulley Derek Hulley added a comment - This is not a bug, but is rather a configuration option. You will need to use the hostname property when the JVM is unable to correctly determine the IP address of the machine it is running on. Usually the hostname resolves to an incorrect IP address when running in a JVM or if the hosts file is incorrect.
        Hide
        mkononovich mkononovich added a comment -

        In this case this should be documented as well.

        Show
        mkononovich mkononovich added a comment - In this case this should be documented as well.
        Hide
        srigby Steve Rigby added a comment -

        for retest in community build 2011 or later

        Show
        srigby Steve Rigby added a comment - for retest in community build 2011 or later

          People

          • Assignee:
            closedbugs Closed Bugs
            Reporter:
            mkononovich mkononovich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: