[rabbitmq-discuss] flow control shortcut

Michael Klishin mklishin at gopivotal.com
Wed Mar 26 08:07:40 GMT 2014


On 26 March 2014 at 12:04:16, Joey Jiao (joey.jiaojg at gmail.com) wrote:
> > Is there a flow control shortcut to block all connections or  
> all pub connections or all consume connections?

Set vm_high_memory_watermark to a really low value (e.g. 0.0000001),
then as soon as a connection attempts to publish, it will be blocked.

Consumers cannot be blocked.

> And is it safe to reboot machine or restart rabbitmq service at  
> any time?

You can lose data that was in memory but not yet on disk.

Cleanly shutdown RabbitMQ before rebooting. Clients will be forcefully
disconnected (using connection.close).

You can also close connections using HTTP API [1].

GET /api/connections to get names, then
DELETE /api/connections/{name} for every connection there is.

1. http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_2_4/priv/www/api/index.html 
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list