-
Notifications
You must be signed in to change notification settings - Fork 477
How do you connect to a RabbitMQ cluster with this library? #155
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
Comments
+1 |
Just follow the README. Do you experience any problem in particular? |
Or is you question if you can specify an array of hostname/ip:s to multiple nodes? |
Every client is only connected to a single node. Is your question about automatic connection recovery and list host support, something that several other clients have? |
Ok so I was able to connect to a cluster by setting 'host' option to an array of hosts like ['127.0.0.1:5672', '127.0.0.1:5673']. However, looking at the code I see it randomly picks one when you connect. But like michaelklishin mention, does this library also support automatic failover if one of them goes down? Or do I have to implement my own connection recovery? |
+1 |
i'm searching into documentation about connecting to a cluster of brokers, but without success. |
automatic failover/connection recovery is not supported |
@damianof See if https://github.com/benbria/node-amqp-connection-manager works for your use case. |
Rascal (built on top of amqp.node) might also be of some use. It accepts a list of hosts and will attempt to connect / reconnect to one of them at random, or until all hosts have failed. |
@cressie176 please announce it on rabbitmq-users? |
@michaelklishin done. Thanks for the suggestion. |
No description provided.
The text was updated successfully, but these errors were encountered: