<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div><span class="Apple-style-span" style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; ">I have set up clustered HA two node rabitmq cluster � one running in file mode and other in in memory.</span></div>
<span id="OLK_SRC_BODY_SECTION"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">
<div class="yiv1519409929p1" id="yui_3_7_2_6_1351703026552_510" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
This takes cares of continued flow of messages if one node in cluster is down. I am still testing this scenario.</div>
<div class="yiv1519409929p2" id="yui_3_7_2_6_1351703026552_517" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<br>
</div>
<div class="yiv1519409929p1" id="yui_3_7_2_6_1351703026552_518" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
Load balancing to consumer side ( worker queue or consistent hash &nbsp;exchange etc) is working.&nbsp;I have got question regarding some load balancing from producer to broker side.</div>
<div class="yiv1519409929p2" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<br>
</div>
<div class="yiv1519409929p1" id="yui_3_7_2_6_1351703026552_412" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
Lets say our load requirement is very very high and one cluster of rabbitMQ is not sufficient to handle &nbsp;that large load. &nbsp;To handle very large load, &nbsp;and to test this configuration I am thinking about create another cluster of rabbitMQ and put both cluster
 nodes behind &nbsp;<span class="yshortcuts cs4-visible" id="lw_1351703047_0" style="cursor: pointer; color: rgb(54, 99, 136); border-bottom-width: 2px; border-bottom-style: dotted; border-bottom-color: rgb(54, 99, 136); ">load balancer</span>. &nbsp;I have &nbsp;following
 question</div>
<div class="yiv1519409929p2" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<br>
</div>
<ol class="yiv1519409929ol1" id="yui_3_7_2_6_1351703026552_520" style="display: block; padding-left: 40px; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; list-style-type: decimal; color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<li class="yiv1519409929li1" style="display: list-item; ">Is this &nbsp;approach recommended or tried by anyone. &nbsp;</li><li class="yiv1519409929li1" id="yui_3_7_2_6_1351703026552_519" style="display: list-item; ">
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 &nbsp;like this</li></ol>
<div class="yiv1519409929p3" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; server&nbsp; cluster1server1<span class="yiv1519409929s1">.dev.aws.xyz.net:5672,</span>cluster1server2<span class="yiv1519409929s1">.dev.aws.xyz.net:5672</span></div>
<div class="yiv1519409929p4" id="yui_3_7_2_6_1351703026552_522" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s2" id="yui_3_7_2_6_1351703026552_521"><span class="yiv1519409929Apple-tab-span"></span>&nbsp; &nbsp; server&nbsp; cluster2server1</span><span class="yiv1519409929s3">.dev.aws.xyz.net:5672,</span><span class="yiv1519409929s2">cluster2server2</span><span class="yiv1519409929s3">.dev.aws.xyz.net:5672</span></div>
<div class="yiv1519409929p5" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<br>
</div>
<div class="yiv1519409929p6" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
&nbsp; &nbsp;3. If I don't use load balancer, I use cache of connection like this</div>
<div class="yiv1519409929p6" id="yui_3_7_2_6_1351703026552_523" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s4">&nbsp; &nbsp; &nbsp; &lt;</span><span class="yiv1519409929s5">bean</span><span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">id</span><span class="yiv1519409929s6">=</span>&quot;connectionFactory&quot;</div>
<div class="yiv1519409929p6" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s6"><span class="yiv1519409929Apple-tab-span"></span><span class="yiv1519409929Apple-tab-span"></span></span><span class="yiv1519409929s7">class</span><span class="yiv1519409929s6">=</span>&quot;org.springframework.amqp.rabbit.connection.CachingConnectionFactory&quot;<span class="yiv1519409929s4">&gt;</span><span class="yiv1519409929s6"><span class="yiv1519409929Apple-tab-span">&nbsp;</span><span class="yiv1519409929Apple-tab-span"></span>&nbsp;</span></div>
<div class="yiv1519409929p6" id="yui_3_7_2_6_1351703026552_524" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s6"><span class="yiv1519409929Apple-tab-span"></span><span class="yiv1519409929Apple-tab-span"></span></span><span class="yiv1519409929s4">&lt;</span><span class="yiv1519409929s5">property</span><span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">name</span><span class="yiv1519409929s6">=</span>&quot;username&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">value</span><span class="yiv1519409929s6">=</span>&quot;${message.broker.apr.userName}&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s4">/&gt;</span></div>
<div class="yiv1519409929p6" id="yui_3_7_2_6_1351703026552_525" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s6"><span class="yiv1519409929Apple-tab-span"></span><span class="yiv1519409929Apple-tab-span"></span></span><span class="yiv1519409929s4">&lt;</span><span class="yiv1519409929s5">property</span><span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">name</span><span class="yiv1519409929s6">=</span>&quot;password&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">value</span><span class="yiv1519409929s6">=</span>&quot;${message.broker.apr.password}&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s4">/&gt;</span></div>
<div class="yiv1519409929p6" id="yui_3_7_2_6_1351703026552_526" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s6"><span class="yiv1519409929Apple-tab-span"></span><span class="yiv1519409929Apple-tab-span"></span></span><span class="yiv1519409929s4">&lt;</span><span class="yiv1519409929s5">property</span><span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">name</span><span class="yiv1519409929s6">=</span>&quot;channelCacheSize&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">value</span><span class="yiv1519409929s6">=</span>&quot;${message.broker.numberOfCachedChannelsForBroker}&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s4">/&gt;</span></div>
<div class="yiv1519409929p6" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s6"><span class="yiv1519409929Apple-tab-span"></span><span class="yiv1519409929Apple-tab-span"></span></span><span class="yiv1519409929s4">&lt;</span><span class="yiv1519409929s5">property</span><span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">name</span><span class="yiv1519409929s6">=</span>&quot;addresses&quot;<span class="yiv1519409929s6">&nbsp;</span><span class="yiv1519409929s7">value</span><span class="yiv1519409929s6">=</span>&quot;</div>
<div class="yiv1519409929p7" id="yui_3_7_2_6_1351703026552_527" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s8">cluster1server1</span>.dev.aws.xyz.net:5672,<span class="yiv1519409929s8">cluster1server2</span>.dev.aws.xyz.net:5672&quot;<span class="yiv1519409929s6">&nbsp;&nbsp;</span><span class="yiv1519409929s4">/&gt;</span><span class="yiv1519409929s6">&nbsp;</span></div>
<div class="yiv1519409929p8" id="yui_3_7_2_6_1351703026552_528" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<span class="yiv1519409929s6"></span><span class="yiv1519409929s4">&lt;/</span>bean<span class="yiv1519409929s4">&gt;</span></div>
<div class="yiv1519409929p9" id="yui_3_7_2_6_1351703026552_529" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<br>
</div>
<div class="yiv1519409929p4" id="yui_3_7_2_6_1351703026552_530" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
&nbsp; &nbsp; &nbsp; &nbsp; How can I specify these if I am using load balancer?</div>
<div class="yiv1519409929p10" id="yui_3_7_2_6_1351703026552_531" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
<br>
</div>
<div class="yiv1519409929p4" id="yui_3_7_2_6_1351703026552_532" style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
In short anybody has used clustered HA rabbitmq behind loadbalancer.&nbsp; 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.</div>
</span></span></span></div>
</body>
</html>