[rabbitmq-discuss] Negative policy for HA queue name matching
Laing, Michael P.
Michael.Laing at nytimes.com
Thu Nov 29 15:26:26 GMT 2012
Actually I realized my pattern is more complex than needed, this will also
work:
^(?!local\.|amq\.).
And is much more efficient - a single test :)
The example could be similarly adjusted ;)
On 11/29/12 2:49 AM, "Matthias Radestock" <matthias at rabbitmq.com> wrote:
>Michael,
>
>On 29/11/12 01:02, Laing, Michael P. wrote:
>> Here is the pattern for a policy that will match all queue names EXCEPT
>> those which start with 'amq.' or 'local.'
>>
>> ^(?!local\.|amq\.).*$
>>
>> With this, temporary queues will not be HA, nor will queues we create
>> that are prefixed with 'local.'.
>
>Yep, negation is useful indeed. See the example at
>http://www.rabbitmq.com/blog/2012/11/19/breaking-things-with-rabbitmq-3-0/
>
>;) Granted, that is somewhat simpler.
>
>Matthias.
More information about the rabbitmq-discuss
mailing list