In a recent benchmark, we got a very large queue in one of our online RabbitMQ cluster, which had more than 20mm messages in a single queue (occupying 5-6 gigabytes memory). Then how can we purge the large queue effectively?

When a node is no longer meant to be part of a RabbitMQ cluster, we’d remove it explicitly from the cluster. To remove a node from a cluster, there are basically two ways, get itself remove locally, or remove it…