java_enthu
java_enthu

Reputation: 2327

ActiveMQ HA option with Shared File System

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

Upvotes: 2

Views: 1197

Answers (3)

Zoheb Nawaz
Zoheb Nawaz

Reputation: 117

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>

Upvotes: 2

Erik Williams
Erik Williams

Reputation: 933

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.

Upvotes: 0

Vihar
Vihar

Reputation: 3831

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!

Upvotes: 0

Related Questions