<div dir="ltr"><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 28, 2017 at 4:13 AM, Frank Even <span dir="ltr"><<a href="mailto:lists+powerdns.com@elitists.org" target="_blank">lists+powerdns.com@elitists.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
SO, if I understand correctly, if I want the weight variable to have<br>
any meaning at all, I need to change the load balancing algorithm,<br>
correct?<br>
<br>
What policy would be best suited to using weights?  Is that efficient?<br>
 Or should I just keep it like this, remove weights, and deploy an<br>
ordered policy?<br>
<br>
Thanks for your help!<br>
<span class="gmail-HOEnZb"><font color="#888888">Frank<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"></div></div></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>This may be slightly orthogonal to the thread's direction, but it isn't too hard to write your own custom load balancing policy either. There was some activity on the list in 2017-01 about this:</div><div><a href="https://mailman.powerdns.com/pipermail/dnsdist/2017-January/thread.html">https://mailman.powerdns.com/pipermail/dnsdist/2017-January/thread.html</a><br></div><div><br></div>Out of that, Chris wrote a "orderedLeastOutstanding.lua" custom load balancing policy.<div><a href="https://github.com/sysadminblog/dnsdist-configs/blob/master/orderedLeastOutstanding.lua">https://github.com/sysadminblog/dnsdist-configs/blob/master/orderedLeastOutstanding.lua</a><br></div><div><br></div><div>I forked that and modified it and made an "orderedwrandom.lua" custom load balancing policy:</div><div><a href="https://github.com/tbaschak/dnsdist-configs/blob/master/orderedwrandom.lua">https://github.com/tbaschak/dnsdist-configs/blob/master/orderedwrandom.lua</a></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p><br></p><p>Theodore Baschak - AS395089 - Hextet Systems<br><a href="https://bgp.guru/" target="_blank" style="font-size:12.8px">https://bgp.guru/</a><span style="font-size:12.8px"> - </span><a href="https://hextet.net/" target="_blank" style="font-size:12.8px">https://hextet.net/</a><br><a href="http://mbix.ca/" target="_blank" style="font-size:12.8px">http://mbix.ca/</a><span style="font-size:12.8px"> - </span><a href="http://mbnog.ca/" target="_blank" style="font-size:12.8px">http://mbnog.ca/</a></p></div></div></div></div></div></div></div></div></div></div></div></div></div>