RabbitMQ Cheat Sheet

Commands

rabbitmqctl list_vhosts
rabbitmqctl list_queues -p <vhost>

rabbitmqctl cluster_status

rabbitmqctl stop_app
rabbitmqctl join_cluster <node>
rabbitmqctl start_app

rabbitmqctl report    # Dump detailed report on RabbitMQ instance  

# Plugin management
/usr/lib/rabbitmq/bin/rabbitmq-plugins enable <name>
/usr/lib/rabbitmq/bin/rabbitmq-plugins list   

# Live modifications using eval
rabbitmqctl eval 'application:set_env(rabbit, reverse_dns_lookups, true).'

# Convert disk node to RAM node
rabbitmqctl change_cluster_node_type ram

 

Configuring Limits

Find out about actual limits

rabbitmqctl status | grep -A 4 file_descriptors
 {file_descriptors,
     [{total_limit,924},
      {total_used,831},
      {sockets_limit,829},
      {sockets_used,829}]},

To increase it to e.g. 10000 open files:

rabbitmqctl eval 'file_handle_cache:set_limit(10000).'

Misc