[rabbitmq-discuss] Negative policy for HA queue name matching

Matthias Radestock matthias at rabbitmq.com
Thu Nov 29 07:49:48 GMT 2012


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