activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdemic <john.de...@gmail.com>
Subject Re: ActiveMQ and Linux NFS
Date Wed, 05 Sep 2007 21:11:22 GMT

To further complicate this, I just tested failover and the following
happened:

- i kill -9'd activemq on the master server.
- on the slave server, activemq was still spinning on the filesystem lock as
per my last email.
- when i started up the master again, it started spinning on the filesystem
lock and no broker was active.  
- deleting the data directory from the nfs mount and restarting activemq on
the master allowed me to restart the master.

My configurations follow.  I would appreciate if someone on the activemq
team could get back to me, this is the second clustering option i've now
tried that didn't work.  The first such issue was posted here:
http://www.nabble.com/Slaving-issue-on-4.1.1-tf4255212s2354.html#a12110238
again w/o any response.  

thx,
-jd
master:
<beans>

  <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

  <broker brokerName="localhost" useJmx="false"
xmlns="http://activemq.org/config/1.0">

    <persistenceAdapter>
        <journaledJDBC dataDirectory="/network/activemq"/>
    </persistenceAdapter>

    <transportConnectors>
       <transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multi
cast://default"/>
    </transportConnectors>

  </broker>
</beans>

slave:

<beans>

  <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

  <broker brokerName="slave" useJmx="false"
xmlns="http://activemq.org/config/1.0">

    <persistenceAdapter>
        <journaledJDBC dataDirectory="/network/activemq"/>
    </persistenceAdapter>

    <transportConnectors>
       <transportConnector name="openwire" uri="tcp://localhost:61616"
discoveryUri="multi
cast://default"/>
    </transportConnectors>

  </broker>
</beans>

jdemic wrote:
> 
> Hey All,
> 
> I'm attempting to setup activemq in a master/slave configuration as
> follows:
> 
> http://activemq.apache.org/shared-file-system-master-slave.html
> 
> I'm setting this up ontop of redhat es3 using the shared journal on an NFS
> mount.  When i start the slave, the following occurs:
> 
> faultPersistenceAdapterFactory - Journal i locked... waiting 10 seconds
> for the journal to be unlocked.
> 
> This seems like the appopriate behavior (ie, the slave is spinning on the
> lock waiting for it to be released.)  The issue is, however, that activemq
> exits after an hour and a half of so of attempting this.  I'm not sure if
> the issue is due to some interaction between java and nfs locking or an
> issue with activemq.  Curious if anyone else has experienced this.
> 
> Thanks,
> -jd
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQ-and-Linux-NFS-tf4384669s2354.html#a12511046
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message