activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: can we share the data folder of activemq between two machines (local and remote)
Date Sat, 07 May 2016 21:06:02 GMT
I've never seen anyone use Samba to share a KahaDB directory; are you sure
that Samba provides file-locking semantics that are compatible with
master/slave KahaDB?  NFSv4 is what I've typically seen done, and unless
you've found an article or a wiki page that says that Samba is supposed to
work for your use case, I'd expect that's why it's not working as you want
it to.

Tim
On May 7, 2016 9:24 AM, "srikanth.april30" <srikanth.april30@gmail.com>
wrote:

> Hi Tim,
> Thanks for your reply.
> I have used the shared filesystem concept (refering
> http://activemq.apache.org/shared-file-system-master-slave.html) and tried
> to design the master slave cluster in two different machines. Below is the
> enivronment details:
>
> apache-activemq-5.13.3
> Two Systems(local-master broker and remote-slave broker ) with Ubuntu
> Operating system
> Created a Shared folder in local system and given all read and write access
> to the kahadb folder.
>
> In local system activemq's directory I have configured the activemq.xml
> file
> with the below configuration:
>
> <persistenceAdapter>
>         <kahaDB directory="/home/Downloads/sharedFolder/kahadb"/>
>  </persistenceAdapter>
> <networkConnectors>
>         <networkConnector uri="static:(tcp://ip address of remote
> system:61617)"/>
> </networkConnectors>
>
> In Remote system activemq's directory I have configured the activemq.xml
> with the below configuration:
>
> <persistenceAdapter>
>         <kahaDB directory="smb://ip address of local
> system/pathto/sharedFolder/kahadb"/>
>  </persistenceAdapter>
> <networkConnectors>
>         <networkConnector uri="static:(tcp://ip address of local
> system:61616)"/>
> </networkConnectors>
>
> And When I start the client program and place the messages (say some 30
> messages) into the queues I have observed that the shared directory is not
> working properly. I stopped the master broker after 6 messages are placed
> then remote slave broker has taken the placing messages task but only 24
> messages are shown in the queue UI. The first 6 messages are not shared
> with
> the slave broker.
>
> Is there are configuration part I missed ? Can you please help me in the
> configuration part?
>
> Thanks
> Srikanth
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/can-we-share-the-data-folder-of-activemq-between-two-machines-local-and-remote-tp4711666p4711728.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message