amazon web services - RabbitMQ Cluster in Docker Container among different hosts -


i want create rabbitmq cluster resilient failures.

so far i've managed create cluster 3 nodes, each of these nodes runs inside docker container. enable nodes join cluster, hosts needs know each other via links.

now, whole architecture runs in cloud (on aws precise). far, containers can linked 1 another, when run on same aws-instance. want create cluster in way nodes can lie on diffrent hosts.

so far i've tried:

  1. using federation / shovel instead. not serve purpose, because need cp cap-theorem , not ca. need nodes replicas of 1 , able act same broker clients.

  2. creating docker swarm. able set-up docker swarm , connect 2 instances via docker swarm. if try run multiple rabbit-containers on swarm, either placed on same node or cannot link them 1 another. end same constellation, of hosts running on same node.

is there solution or other approach, create rabbitmmq-cluster inside docker containers among different aws-instances / hosts?

you mentioned "to enable nodes join cluster, hosts needs know each other via links" .. i'm not sure why require links. main thing each of containers able locate each other, service discovery problem. i've done similar (with rabbitmq) using consul on bunch of different vms (not using swarm), if you're running swarm cluster might able hit api discover other instances of container?


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -