qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Scholz <ja...@scholz.cz>
Subject Re: limit policy on bound temporary queues
Date Tue, 18 Dec 2012 08:01:20 GMT
Hi Lance,

>From the client you can use address similar to this to create and temporary
ring type queue:

    create: receiver,
    assert: never,
        type: queue,
            auto-delete: true,
            exclusive: false,
                'qpid.policy_type': ring,
                'qpid.max_count': 1000,
                'qpid.max_size': 1000000
                exchange: 'exchange_1',
                queue: 'queue_1',
                key: 'routing_key_1'

This creates the auto-delete ring type queue named queue_1 with capacity
for 1000 messages or 1000000 bytes and binds it to the exchange named
exchange_1 suign the routing key "routing_key_1". I assume for fanout
exchange, you do not need the routing key.

If you want, you can also use ACLs to allow the clients to create only ring
type queues:

acl allow user1@QPID create  queue name=queue_*  maxqueuecount=1000
 maxqueuesize=1024000  policytype=ring durable=false autodelete=true

This rule will make the broker reject all attempts to create a queue which
doesn't fulfill all the specified options.


On Tue, Dec 18, 2012 at 4:09 AM, Lance D. <lanced@gmail.com> wrote:

> Hello,
> I'm trying to figure out a problem and I'm hoping to find the right way to
> make this happen.
> I've got a data producer that publishes to an fanout exchange.  My system
> requires that under no circumstances can the producer get throttled because
> even if 1 user can't keep up, the other consumers need the data as soon as
> possible.  My thought is that if I just force all of the consumers to
> connect with a 'ring' limit policy, then I should be okay because slow
> consumers will just drop data on the floor.  So I'd like to be able to make
> that the default policy.
> That said, I'm fairly certain that isn't possible, so I'd at least like to
> setup my clients with the correct settings.  I've read through the
> documentation, but I can't seem to figure out how to register to receive
> from an exchange, using a temporary (implicit) queue.
> Thanks in advance for the help.
> -Lance

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