You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Thai Le <ln...@gmail.com> on 2023/04/12 22:07:18 UTC

auto-delete-queues-delay vs address-queue-scan-period

Hello,

If a queue 's consumers are disconnected for more than 30 sec then the
queue will be marked for delete (default address-queue-scan-period is 30
sec). However, if auto-delete-queues-delay is set to 5 min and one of the
consumers is reconnected after 2 min would the queue still be deleted?

Regards
Thai Le
-- 
Where there is will, there is a way

Re: auto-delete-queues-delay vs address-queue-scan-period

Posted by Domenico Francesco Bruscino <br...@gmail.com>.
Hi Thai,

TL; DR;  if auto-delete-queues-delay is set to 5 min and one of the
consumers is reconnected after 2 min the queue is not deleted.

A queue is deleted only if the broker successfully checks the criteria
(auto-delete-queues-delay/auto-delete-queues-message-count[1]) for 2
consecutive times. The check is executed each address-queue-scan-period.

[1]
https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html

Regards,
Domenico


On Thu, 13 Apr 2023 at 00:07, Thai Le <ln...@gmail.com> wrote:

> Hello,
>
> If a queue 's consumers are disconnected for more than 30 sec then the
> queue will be marked for delete (default address-queue-scan-period is 30
> sec). However, if auto-delete-queues-delay is set to 5 min and one of the
> consumers is reconnected after 2 min would the queue still be deleted?
>
> Regards
> Thai Le
> --
> Where there is will, there is a way
>