You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by uromahn <ul...@ulrichromahn.net> on 2014/10/21 13:42:40 UTC

Re: ActiveMQ shared file Shared File System hangs server startups

Hi Julien,

this is actually expected behavior. With a shared file system, only one
broker can be active and the second will have to be "passive" until the lock
on the files has been removed. This can happen when the first broker crashes
or normally stops.
By the way, this is exactly the same behavior with replicated LevelDB.

I believe the topology you may want to look at is the network of brokers
which can have multiple active brokers. However, this is not a pure HA
solution since every persistent message that still sits in the message store
of a broker that "crashed" will not get delivered until that broker gets
started again.
To improve such a setup, you may want to configure a network of brokers
consisting of two HA cluster (two active and two passive).




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-shared-file-Shared-File-System-hangs-server-startups-tp4686579p4686584.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ shared file Shared File System hangs server startups

Posted by artnaseef <ar...@artnaseef.com>.
You're welcome.  Glad I could help.

Note, btw, that with async startup, some things might look funny/incomplete
on the passive broker.  Such as the webconsole.  If something looks wrong, I
recommend checking first if the broker is active as that could explain it. 
With sync startup, those issues don't occur because the related services
aren't started until the broker becomes active.




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-shared-file-Shared-File-System-hangs-server-startups-tp4686579p4686652.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ shared file Shared File System hangs server startups

Posted by artnaseef <ar...@artnaseef.com>.
It is possible to start ActiveMQ asynchronously - there's a "startAsync"
setting on the broker.

With that said, I recommend running separate activemq servers instead of
embedding the brokers.  ActiveMQ is not a light-weight tool.  Embedding it
inside tomcat will limit scaling of both ActiveMQ and Tomcat, and can lead
to a lot of confusion when problems arise.



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-shared-file-Shared-File-System-hangs-server-startups-tp4686579p4686601.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.