[rabbitmq-discuss] loadbalancer configuration for clustered rabbitmq cluster.
Tim Watson
watson.timothy at gmail.com
Mon Nov 5 14:28:51 GMT 2012
Hi
On 31 Oct 2012, at 17:09, Anuj Lal wrote:
> I have set up clustered HA two node rabitmq cluster – one running in file mode and other in in memory.
> This takes cares of continued flow of messages if one node in cluster is down. I am still testing this scenario.
>
> Load balancing to consumer side ( worker queue or consistent hash exchange etc) is working. I have got question regarding some load balancing from producer to broker side.
>
> Lets say our load requirement is very very high and one cluster of rabbitMQ is not sufficient to handle that large load. To handle very large load, and to test this configuration I am thinking about create another cluster of rabbitMQ and put both cluster nodes behind load balancer. I have following question
>
Are you expecting the two clusters to be synchronised somehow? Because that won't happen!
> • Is this approach recommended or tried by anyone.
There's nothing wrong with this approach, unless you're expecting the two clusters to somehow be in sync, because they won't.
> • What configuration I need to specify in load balancer ? For example, I need to specify server addresses in load balancer. If I have cluster of server, can I specify like this
> server cluster1server1.dev.aws.xyz.net:5672,cluster1server2.dev.aws.xyz.net:5672
> server cluster2server1.dev.aws.xyz.net:5672,cluster2server2.dev.aws.xyz.net:5672
>
I don't know anything about your loud balancer, so I'm afraid I can't help with this.
> In short anybody has used clustered HA rabbitmq behind loadbalancer. If this option is not recommended than other option I was thinking about cadd more node in a sinle cluster and add other exchange and node, but in that case publisher is going to do round robin kind of mechanish to balance load between two exchanges.
I'm not really 100% clear on what you're asking, but it seems that you're after increasing capacity and I'd suggest adding additional nodes to your (single) cluster is the best way to do that.
More information about the rabbitmq-discuss
mailing list