Rabbitmq tips

Number of messages waiting in queues:

# rabbitmqctl -n rabbit@node list_queues name messages_ready | grep -v '.* *0$'
Listing queues ...
notifications.sample 650141
metering.sample 1231596

Purge queue

# rabbitmqctl -n rabbit@node purge_queue metering.sample

Test SSL certificates

On server:
# openssl s_server -accept 9999 -cert /etc/pki/tls/certs/ssl_amqp.crt -key /etc/pki/tls/private/ssl_amqp.key -CAfile /etc/pki/tls/certs/packstack_cacert.crt

On client:
openssl s_client -connect :9999 -cert /etc/pki/tls/certs/ssl_amqp_ceilometer.crt -key /etc/pki/tls/private/ssl_amqp_ceilometer.key -CAfile /etc/pki/tls/certs/packstack_cacert.crt

Verify return code: 0 (ok)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.