Skip to content

Instantly share code, notes, and snippets.

@munhitsu
Created June 30, 2014 16:58
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 munhitsu/56688bb6a9c7335d3023 to your computer and use it in GitHub Desktop.
Save munhitsu/56688bb6a9c7335d3023 to your computer and use it in GitHub Desktop.
breaking rabbitmq cluster
"""
Handy when you don't care about data and rabbitmq stopped working
$ rabbitmqctl add_vhost /sensu
Creating vhost "/sensu" ...
Error: {node_not_running,'rabbit@ip-X-Y-Z-A'}
$ rabbitmqctl cluster_status
Cluster status of node 'rabbit@ip-X-Y-Z-A' ...
[{nodes,[{unknown,['rabbit@ip-X-Y-Z-A']}]},{running_nodes,[]}]
...done.
"""
$ rabbitmqctl stop_app
$ rabbitmqctl reset
$ rabbitmqctl start_app
@ypereirareis
Copy link

Hi !
Thx for sharing this 😃

I built a docker based project allowing to run a highly available RabbitMQ cluster with HAProxy.

You can find it there: https://github.com/ypereirareis/docker-rabbitmq-ha-cluster

Bye !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment