<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 20, 2012, at 3:58 AM, Radoslav Husar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 01/19/2012 07:31 PM, Weinan Li wrote:<br><blockquote type="cite">Now there's another question: How can I configure mod_cluster to use<br></blockquote><blockquote type="cite">round-robin to distribute requests?<br></blockquote><br>Weinan,<br><br>mod_cluster has been built around the idea of load-balancing intelligently by communicating load from the server to the load-balancer. Round-robin is far from intelligent :-) and there is no such option.<br><br>Look at what options you have for configuring load metrics in AS7 <a href="http://docs.jboss.org/mod_cluster/1.1.0/html_single/#LoadMetric">http://docs.jboss.org/mod_cluster/1.1.0/html_single/#LoadMetric</a> (so "requests" might be the best one to actually see it load-balance).<br></div></blockquote><div>Radoslav, thank you very much for your help :-) I'll read this one to see what's the best practice.</div><br><blockquote type="cite"><div><br>You might also want to try killing the server to see it fail-over to the other instance.</div></blockquote><blockquote type="cite"><div><br>HTH,<br>Rado<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">I've tried to access cluster with different computers/browsers, but it<br></blockquote><blockquote type="cite">seems all the requests are direct to master. Can I configure this in<br></blockquote><blockquote type="cite">domain.xml?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Cheers<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Jean-Frederic<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite">- Weinan Li<br></blockquote><blockquote type="cite">JBoss, Redhat<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">jboss-as7-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br></blockquote><br>-- <br>Radoslav Husar<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; 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; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 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; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Cheers,</div><div>- Weinan Li</div><div>JBoss, Redhat</div><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>