You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by praneethg <pr...@concur.com> on 2017/07/14 01:56:37 UTC

Artemis delete inactive destinations

In activemq, there is a configuration that we can make to delete inactive
queues. But in artemis, i read that the inactive queues are deleted
automatically - does any one know what are the conditions ? time interval
etc?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-delete-inactive-destinations-tp4728541.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Artemis delete inactive destinations

Posted by Justin Bertram <jb...@redhat.com>.
As noted in the documentation [1] auto-created queues will be auto-deleted
by default when both the message-count and consumer-count reaches 0.
Auto-created address will be auto-deleted by default when they no longer
have any associated queues.


Justin

[1] http://activemq.apache.org/artemis/docs/2.0.0/address-model.html

On Thu, Jul 13, 2017 at 9:56 PM, praneethg <pr...@concur.com>
wrote:

> In activemq, there is a configuration that we can make to delete inactive
> queues. But in artemis, i read that the inactive queues are deleted
> automatically - does any one know what are the conditions ? time interval
> etc?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Artemis-delete-inactive-destinations-tp4728541.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>

Re: Artemis delete inactive destinations

Posted by Justin Bertram <jb...@redhat.com>.
The 'default-purge-on-no-consumers' element is a member of
'address-settings' (which should be clear from the schema).  The default
value for this setting is false.

That said, I'm not sure this setting fits your use-case.  The
'purge-on-no-consumers' setting (and the related
'default-purge-on-no-consumers') is a way to get non-durable subscription
semantics on a static, pre-configured queue.  A queue for which
'purge-on-no-consumers' is true will be purged (i.e. all its messages will
be deleted) and paused (i.e. it will not receive any messages) when the
consumer-count goes to or is zero.


Justin

On Mon, Jul 17, 2017 at 2:48 PM, cnadukula <cn...@gmail.com> wrote:

> @clebertsuconic : I found a config setting in a schema file called
> "default-purge-on-no-consumers". Can you please let me know where I make
> the
> change so i override the default value? or if you are referring to another
> option that I am unaware?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Artemis-delete-inactive-destinations-tp4728541p4728613.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>

Re: Artemis delete inactive destinations

Posted by cnadukula <cn...@gmail.com>.
@clebertsuconic : I found a config setting in a schema file called
"default-purge-on-no-consumers". Can you please let me know where I make the
change so i override the default value? or if you are referring to another
option that I am unaware?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-delete-inactive-destinations-tp4728541p4728613.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Artemis delete inactive destinations

Posted by Clebert Suconic <cl...@gmail.com>.
There is the purge when no consumers options.. I don't remember
exactly where now.. I can check later if you can't find it..

just giving the information real fast now. if you can't find it let me
know and I will look for you once I get back to a computer.

On Fri, Jul 14, 2017 at 12:43 PM, cnadukula <cn...@gmail.com> wrote:
> you say "You can SET a destination to be deleted when no consumers are
> attached" how do i set that, is there a config change for that? or did i
> misinterpret you?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-delete-inactive-destinations-tp4728541p4728561.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.



-- 
Clebert Suconic

Re: Artemis delete inactive destinations

Posted by cnadukula <cn...@gmail.com>.
you say "You can SET a destination to be deleted when no consumers are 
attached" how do i set that, is there a config change for that? or did i
misinterpret you?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-delete-inactive-destinations-tp4728541p4728561.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Artemis delete inactive destinations

Posted by Clebert Suconic <cl...@gmail.com>.
There is no Garbage Collection for destinations in Artemis currently..

You can set a destination to be deleted when no consumers are
attached.. and have it self created... but we don't have a GC for that
yet...


It would be a nice addition... I believe I have seen a JIRA around GC
for destinations.. I can research later... it's easy to be
implemented.. anyone fancy doing it? :)

On Fri, Jul 14, 2017 at 11:35 AM, sv.satish <sa...@gmail.com> wrote:
> Saem question..watching...
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-delete-inactive-destinations-tp4728541p4728558.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.



-- 
Clebert Suconic

Re: Artemis delete inactive destinations

Posted by "sv.satish" <sa...@gmail.com>.
Saem question..watching...



--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-delete-inactive-destinations-tp4728541p4728558.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.