Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-746

TorqueBox::Infinispan::Cache not using cluster, always local

    Details

      Description

      Logs from both servers, init command, xml configs, and rails application.rb

      https://gist.github.com/9f81178e16adf03c0fd8

      Based on some messages in the logs it looks like the servers do know about each other.

      default:
      <cache-container name='torquebox' default-cache='sessions'>
      <local-cache name='sessions'>
      <eviction strategy='LRU' max-entries='10000'/>
      <expiration max-idle='100000'/>
      </local-cache>
      </cache-container>
      changed to per lance:
      <cache-container name="torquebox" default-cache="sessions">
      <replicated-cache name="sessions" mode="ASYNC">
      <eviction strategy="LRU" max-entries="10000"/>
      <expiration max-idle="100000"/>
      </replicated-cache>
      </cache-container>

      didnt fix it.

      Investigating TorqueBox::Infinispan::Cache, in order for a cache to be "clustered", it has to have a "manager", which calls this code:

      TorqueBox::ServiceRegistry[org.jboss.msc.service.ServiceName::JBOSS.append( "infinispan", "torquebox" )]

      which returns nil when I do debug logging statements.

      org.jboss.msc.service.ServiceName::JBOSS.append( "infinispan", "torquebox" ).to_s #=> "service jboss.infinispan.torquebox"

      so for some reason, this "service jboss.infinispan.torquebox" is not being located in my xml.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lanceball Lance Ball
                Reporter:
                joenoon Joe Noon
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: