activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher L. Shannon (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (AMQ-5751) Configuration to limit the number of Topics/Queues that can be created on broker
Date Fri, 01 May 2015 19:14:06 GMT

    [ https://issues.apache.org/jira/browse/AMQ-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14523738#comment-14523738
] 

Christopher L. Shannon edited comment on AMQ-5751 at 5/1/15 7:13 PM:
---------------------------------------------------------------------

[~xabhi], this issue is something that is useful to me as well so I went ahead and implemented
this and submitted a pull request.  If this commit is accepted then this feature can be enabled
by setting a property on a destination policy, called "maxDestinations".  This will limit
the number of created destinations to that number all destinations under that policy.  For
example:

{code:xml}
<policyEntry queue="q.>" maxDestinations="500" memoryLimit="1mb">
       <!-- The maximum number of queues for this policy will be limited to 500  -->
</policyEntry>
{code}

Can a commiter review my pull request and let me know if any changes should be made to it?

Thanks,
Chris


was (Author: christopher.l.shannon):
[~abhi], this issue is something that is useful to me as well so I went ahead and implemented
this and submitted a pull request.  If this commit is accepted then this feature can be enabled
by setting a property on a destination policy, called "maxDestinations".  This will limit
the number of created destinations to that number all destinations under that policy.  For
example:

{code:xml}
<policyEntry queue="q.>" maxDestinations="500" memoryLimit="1mb">
       <!-- The maximum number of queues for this policy will be limited to 500  -->
</policyEntry>
{code}

Can a commiter review my pull request and let me know if any changes should be made to it?

Thanks,
Chris

> Configuration to limit the number of Topics/Queues that can be created on broker
> --------------------------------------------------------------------------------
>
>                 Key: AMQ-5751
>                 URL: https://issues.apache.org/jira/browse/AMQ-5751
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: Abhi
>
> It would be good to have a configuration with which we can limit the number of topics/queues
that can be created in ActiveMQ setup.
> The will help in cases where some client creates thousands of queues/topics and can potentially
affect broker service.
> For e.g. by default each queue also creates a dispatcher thread so having tens of thousands
of queues in one go can potentially cause DOS in broker setup.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message