activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <>
Subject Re: Failover on no allocated disk space left?
Date Tue, 08 Oct 2013 19:18:08 GMT
You might be able to put together a broker filter/plugin that shuts down
the broker if the store becomes full. That might not be a good idea,
however.. what happens with messages that are already stored on the first

Maybe you can set an exceptionListener on the connection and for
ResourceAllocationExceptions, you can try to trick the FailoverTransport to
cycle to its next broker?

On Wed, Oct 2, 2013 at 5:05 AM, Byte Flinger <> wrote:

> Hi
> I am trying to configure 2 AMQ instances so that if there are issues with
> one, the client will failover to another one.
> I am having an issue with this behaviour when the alloted disk space is
> out.
> From my tests, amq will block the thread forever when it runs "out of disk"
> so I have configured the brokers with sendFailIfNoSpaceAfterTimeout
> parameter however this just makes it so that the client returns an error
> (even though it is configured with failover).
> Is there any way to trigger the failover protocol in such a situation
> rather than simply throwing the error back to the client?
> Regards
> ByteFlinger

*Christian Posta*
twitter: @christianposta

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