[dnsdist] server policy to failover to another pool

Justin Valentini justin.valentini at oracle.com
Fri Oct 6 14:01:39 UTC 2017


Does anyone know the upper limit on the weight attribute for a server?

On 10/06/2017 08:39 AM, Justin Valentini wrote:
> Hi Remi,
>
>
> On 10/06/2017 08:17 AM, Remi Gacogne wrote:
>> Hi Justin,
>>
>> On 10/06/2017 02:06 PM, Justin Valentini wrote:
>>> I tried the orderedLeastOutstanding policy but ran into issues when
>>> testing. If I explicitly set my order #1 server to down (e.g.
>>> getServer(0):setDown()) dnsdist doesn't not directly traffic to the 
>>> next
>>> ordered server. Instead the query times out. However, when we bring 
>>> down
>>> the actual dns server and let dnsdist healthcheck it to down, it seems
>>> to work.
>>>
>>> Do any of you know why this may be the case? Do isUp() and upStatus not
>>> respect explicitly set DOWN state?
>> The way it is currently handled might not be very intuitive. When you
>> call setDown() or SetUp(), this sets the backend's "availability" state
>> to Up or Down, instead of the default of Auto, but does not change the
>> "upStatus".
>> The isUp() method checks whether "availability" is set to Down or Up
>> before checking "upStatus, so orderedLeastOutstanding should either use
>> the isUp() method, or check the "availability" state before looking at
>> "upStatus".
>
> Using isUp() did the trick. Thank you!
>
> -Justin
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.powerdns.com_mailman_listinfo_dnsdist&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=aPrN2diV8Dkf4Cd0A6ABs40Je5Er1omn69ThcMLXpVI&m=XI9hluKGKpYmjmFuqGb30GFBs61voCBqEQCMZjDwyeQ&s=Pm3gsg_i2I6jN4AGW90SmzKRwqm7T3GZZEb1gkq2J1M&e= 




More information about the dnsdist mailing list