<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My preferred way to achieve this (which will ensure during periods of unexpectedly high QPS this will not result in queries being sent to backend03/backend04):</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;font-size:14.6667px;background-color:rgb(255, 255, 255);display:inline !important"></span>newServer({name="backend01",pool="primary",...})
<div>newServer({name="backend02",pool="primary",...})</div>
<div>newServer({name="backend03",pool="secondary",...})</div>
<div>newServer({name="backend04",pool="secondary",...})</div>
<div><br>
</div>
<div>addAction(PoolAvailableRule("primary"), PoolAction("primary"))</div>
addAction(PoolAction("secondary"))<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> dnsdist <dnsdist-bounces@mailman.powerdns.com> on behalf of Daniel Stirnimann via dnsdist <dnsdist@mailman.powerdns.com><br>
<b>Sent:</b> Wednesday, 2 June 2021 16:28<br>
<b>To:</b> Tom <lists@verreckte-cheib.ch>; dnsdist@mailman.powerdns.com <dnsdist@mailman.powerdns.com><br>
<b>Subject:</b> Re: [dnsdist] Question on backend selection</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hello Tom,<br>
<br>
This might come very close to what you are looking for:<br>
<br>
newServer({name="backend01",order=1, qps=5000,...})<br>
newServer({name="backend02",order=1, qps=5000,...})<br>
newServer({name="backend03",order=2, qps=5000,...})<br>
newServer({name="backend04",order=2, qps=5000,...})<br>
<br>
setServerPolicy(firstAvailable)<br>
<br>
"The firstAvailable policy, picks the first available server that has<br>
not exceeded its QPS limit, ordered by increasing ‘order’. If all<br>
servers are above their QPS limit, a server is selected based on the<br>
leastOutstanding policy. For now this is the only policy using the QPS<br>
limit."<br>
<a href="https://dnsdist.org/guides/serverselection.html">https://dnsdist.org/guides/serverselection.html</a><br>
<br>
Daniel<br>
<br>
<br>
On 02.06.21 09:19, Tom via dnsdist wrote:<br>
> Hi list<br>
> <br>
> Using dnsdist 1.5.2 with four configured backend servers <br>
> (backend01-backend04).<br>
> <br>
> Is there a way to configure dnsdist to use backend03 and backend04 only, <br>
> if backend01 and backend02 are not answering on the healthcheck? Or <br>
> better: use backend03 or backend04 only if backend01 or backend02 are down.<br>
> <br>
> Any hints?<br>
> <br>
> Thank you.<br>
> Kind regards,<br>
> Tom<br>
> _______________________________________________<br>
> dnsdist mailing list<br>
> dnsdist@mailman.powerdns.com<br>
> <a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist">https://mailman.powerdns.com/mailman/listinfo/dnsdist</a><br>
> <br>
_______________________________________________<br>
dnsdist mailing list<br>
dnsdist@mailman.powerdns.com<br>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist">https://mailman.powerdns.com/mailman/listinfo/dnsdist</a><br>
</div>
</span></font></div>
</div>
</body>
</html>