[dnsdist] setWeightedBalancingFactor(0) gone?
Remi Gacogne
remi.gacogne at powerdns.com
Tue Oct 7 13:01:06 UTC 2025
Hi,
On 10/7/25 14:49, Holger Hoffstätte via dnsdist wrote:
> I remember that this worked in 1.9.x, but somehow:
>
> $dnsdist -c
>> showVersion()
> dnsdist 2.0.1
>> setWeightedBalancingFactor(0)
> setWeightedBalancingFactor cannot be used at runtime!
It used to be possible to change the value at runtime indeed. In 2.0 we
had to review all the configuration items to decide which ones should be
modifiable or not, because several items lived in a grey area where we
never intended them to be modified at runtime but it was not actually
enforced. For this item in particular it did not seem very interesting
to be able to change the value at runtime, and making it immutable was
slightly better for performance. We can reconsider, of course!
> Curiously enough I found a regession test for this in
> regression-tests.dnsdist/test_Routing.py, so..bug or feature?
The tests are checking that we can set the value at configuration time,
not at runtime, or am I missing something?
Best regards,
--
Remi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20251007/c8831523/attachment.sig>
More information about the dnsdist
mailing list