Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6026241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:25:02+00:00 2026-05-23T04:25:02+00:00

I’ve read many posts and blogs at this point and I’m still not sure

  • 0

I’ve read many posts and blogs at this point and I’m still not sure about how to cluster correctly my 2 RabbitMQ nodes.

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

I found out about a mysterious ClusterId in the API guide, with no explanation on how to get that Id in the first place: http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v2.4.1/rabbitmq-dotnet-client-2.4.1-api-guide.pdf

Learned in that StackOverflow post that basically I’d need my clients to be aware of each node in the cluster and code for failover scenario: rabbitmq HA cluster

Now… The behavior I’d like to have is something a little more transparent if possible. Where I would potentially use that "ClusterId" on the client to make the consumer cluster aware and then hopefully the library knows to randomly connect to either node to grab messages.

Granted I know a message can only be on one server at a time, so I’m hoping for some round robin magic from the DotNet client library that would also handle fail over situations.

What I was hoping also from a publisher perspective is that the exchange would round robin distribute messages to the various nodes in the cluster. The exchange would also be cluster aware and handle fail over situations gracefully.

Now based on my readings it doesn’t quite work like that… unless I missed something.
If my knowledge is up to date and I have to code all that cluster aware business, then… why does RabbitMQ have a cluster feature in the first place? How is it used?

Is there a way to have that kind of behavior out of RabbitMQ without coding that much?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:25:03+00:00Added an answer on May 23, 2026 at 4:25 am

    I’m using HAProxy for failover and load balancing between cluster nodes for rabbitmq, also on .net client side on exception when node fails you need to manually reconnect the client.

    Here is the HAProxy configuration for two node cluster, nodes are running on 15672 and 25672 ports.
    Clients connect on 5672 port.

    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 to this blog post http://www.joshdevins.net/2010/04/16/rabbitmq-ha-testing-with-haproxy/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string
I need a function that will clean a strings' special characters. I do NOT
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.