RabbitMQ Cluster with .Net Client

I read a lot of posts and blogs at this stage, and I'm still not sure how to cluster my 2 RabbitMQ nodes correctly.

I read the RabbitMQ clustering guide: http://www.rabbitmq.com/clustering.html

I found out about the mysterious ClusterId in the API manual, without explaining how to get this identifier in the first place: http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v2.4.1/rabbitmq-dotnet-client-2.4 .1-api-guide.pdf

I learned in this StackOverflow article that I basically need my clients to know about each node in the cluster and the code for the script to switch to another resource: hp rabbitmq HA cluster

Now ... The behavior I would like to have is something more transparent, if possible. Where could I potentially use this "ClusterId" on the client to inform the consumer cluster, and I hope the library knows that it accidentally connects to node to capture messages.

Of course, I know that a message can only be on one server at a time, so I hope for some circular magic from the DotNet client library, which will also handle unsuccessful situations.

What I also hoped from the point of view of the publisher is that the exchange will cyclically distribute messages to various nodes of the cluster. The exchange will also have cluster knowledge and competently deal with errors.

, , ... . , , , ... RabbitMQ ? ?

RabbitMQ ?

+3
1

HAProxy rabbitmq, .net , node .

HAProxy node, 15672 25672. 5672.

global
 daemon
 log 127.0.0.1 alert
 log 127.0.0.1 alert debug

defaults
 log global
 mode http
 option  dontlognull
 option  redispatch
 retries    3
 contimeout 5000
 clitimeout 50000
 srvtimeout 50000

listen rabbitmq 0.0.0.0:5672
  mode tcp
  balance roundrobin
  option  tcpka

server rabbit01 127.0.0.1:25672 check inter 5000 downinter 500

server rabbit02 127.0.0.1:15672 check inter 5000 backup

cudos http://www.joshdevins.net/2010/04/16/rabbitmq-ha-testing-with-haproxy/

+5

All Articles