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

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            lball1@redhat.com Lance Ball
            joenoon_jira Joe Noon (Inactive)
            Archiver:
            samahaja@redhat.com Sagar Mahajan

            Dates

              Created:
              Updated:
              Resolved:
              Archived: