-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running RabbitMQ on Docker Swarm using DNS Discovery #1454
Comments
Thank you for your time. Team RabbitMQ uses GitHub issues for specific actionable items engineers can work on. This assumes two things:
We get at least a dozen of questions through various venues every single day, often quite light on details. Getting all the details necessary to reproduce an issue, make a conclusion or even form a hypothesis about what's happening can take a fair amount of time. Our team is multiple orders of magnitude smaller than the RabbitMQ community. Please help others help you by providing a way to reproduce the behavior you're
Feel free to edit out hostnames and other potentially sensitive information. When/if we have enough details and evidence we'd be happy to file a new issue. Thank you. |
DNS-based discovery requires that the hostname specified in the config resolves to at least one A or AAAA record that can a reverse DNS resolution query would work on. That's it. Docker Swarm doesn't change the way DNS works, so it shouldn't matter. How you manage DNS records in a Docker environment is a question that is in no way specific to RabbitMQ. |
are the relevant log lines. Peer discovery does success but cluster formation doesn't. |
I am trying to run RabbitMQ 3.7.0 on Docker Swarm using DNS based discovery. My RabbitMQ instances start but are unable to discover each other. Here is what I've tried:
rabbitmq.conf
docker-stack.yml
Container Logs
According to the logs, it is able to doscover the other nodes in my Docker Swarm but is unable to connect to the FQDN's. Interestingly, when I run
hostname
inside the RabbitMQ containers they do not return the FQDN but the short name:Have the RabbitMQ team got RabbitMQ working on Docker Swarm? Is this a supported scenario? I'm assuming you'd want it to be. There are docs for Kubernetes but not Swarm.
The text was updated successfully, but these errors were encountered: