Skip to content

Instantly share code, notes, and snippets.

@satishdotpatel
Last active November 8, 2021 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satishdotpatel/df751b5281726dca77065f78eab9584a to your computer and use it in GitHub Desktop.
Save satishdotpatel/df751b5281726dca77065f78eab9584a to your computer and use it in GitHub Desktop.
RabbitMQ Purge queue
### Show message count in queue
rabbitmqctl list_queues -p /nova | grep notification
rabbitmqctl list_queues -p /neutron | grep notification
# https://bugs.launchpad.net/mos/+bug/1576863
rabbitmqctl list_queues messages consumers name -p /neutron | grep -e q-server-resource-versions_fanout -e q-reports-plugin
### Purge/delete messages from queue
rabbitmqctl purge_queue notifications.error -p /nova
rabbitmqctl purge_queue notifications.info -p /nova
rabbitmqctl purge_queue versioned_notifications.error -p /nova
rabbitmqctl purge_queue versioned_notifications.info -p /nova
rabbitmqctl purge_queue notifications.info -p /neutron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment