Skip to content

reichowc/rabbitmq-sharding-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application with sharding-plugin and actuator endpoint to clear connections at the cache.

Problem with version 3.9.5 RabbitMQ

How to reproduce the error:

  1. Create the docker imagens and the cluster:

docker run -d --hostname rabbit1 --name rabbit1 -e RABBITMQ_ERLANG_COOKIE='rabbitcluster' -p 30000:5672 -p 30001:15672 rabbitmq:3.9.5-management

docker run -d --hostname rabbit2 --name rabbit2 --link rabbit1:rabbit1 -e RABBITMQ_ERLANG_COOKIE='rabbitcluster' -p 30002:5672 -p 30003:15672 rabbitmq:3.9.5-management

docker run -d --hostname rabbit3 --name rabbit3 --link rabbit1:rabbit1 --link rabbit2:rabbit2 -e RABBITMQ_ERLANG_COOKIE='rabbitcluster' -p 30004:5672 -p 30005:15672 rabbitmq:3.9.5-management

  1. Join the images to the cluster and enable the plugins
docker exec -i -t rabbit2 \bash
root@rabbit2:/# rabbitmqctl stop_app
root@rabbit2:/# rabbitmqctl join_cluster rabbit@rabbit1
root@rabbit2:/# rabbitmqctl start_app
root@rabbit2:/# rabbitmq-plugins enable rabbitmq_event_exchange
root@rabbit2:/# rabbitmq-plugins enable rabbitmq_sharding
root@rabbit2:/# exit

docker exec -i -t rabbit3 \bash
root@rabbit3:/# rabbitmqctl stop_app
root@rabbit3:/# rabbitmqctl join_cluster rabbit@rabbit1
root@rabbit3:/# rabbitmqctl start_app
root@rabbit3:/# rabbitmq-plugins enable rabbitmq_event_exchange
root@rabbit3:/# rabbitmq-plugins enable rabbitmq_sharding
root@rabbit3:/# exit

docker exec -i -t rabbit1 \bash
root@rabbit1:/# rabbitmq-plugins enable rabbitmq_event_exchange
root@rabbit1:/# rabbitmq-plugins enable rabbitmq_sharding
root@rabbit1:/# exit
  1. Create the configurations to use the sharding-plugin with success
  1. Start the application
  2. Stop the node 2 or 3: docker stop rabbit2
  3. Wait for the conections be distributed to the other nodes
  4. Start the node 2: docker start rabbit2 and see the errors

PS: with versions 3.8.18 and 3.18.21 this doesn't occurs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages