ActiveMQ HA option with Shared File System

1.1k views Asked by At

We want HA of ActiveMQ. I explored the option of database and with Zookeeper. I wanted to check the option with Shared storage. In the documentation its mentioned about Storage Area Network. However I do not have access to SAN.

Can I use the message store to be on Shared folder on NAS ? or some shared directory on the file system ?

Regards, JE

3

There are 3 answers

0
Erik Williams On

You need a file system that supports file locking (ie NFS4) as described in the documentation and your filesystem needs to be very reliable. I'm not a filesystem expert, so I'm not sure what all is out there to meet that requirement, but I know that more than "SAN" does. I believe that SAN is mentioned due to the reliability, but there other options for reliable network storage out there.

2
Vihar On

KahaDB works as well!

The documentation doesn't say that KahaDB also can be used,but have tried it myself KahaDB also supports locking and works well.

As KahaDB is already provided with activeMQ it will be easy to use as nothing extra will be needed.

Hope it helps, Thanks!

0
Zoheb Nawaz On

You could set up an NFSv4 file share and mount that directory in the kahadb persistence adapter.

Consider following in activemq.xml:

<persistenceAdapter>
            <kahaDB directory="{YOUR_SHARED_STORAGE_DIRECTORY}" lockKeepAlivePeriod="5000">
                <locker>
                        <shared-file-locker lockAcquireSleepInterval="10000" />
                </locker>
            </kahaDB>
</persistenceAdapter>