[dnsdist] setWeightedBalancingFactor(0) gone?

Holger Hoffstätte holger at applied-asynchrony.com
Tue Oct 7 13:16:15 UTC 2025


On 2025-10-07 15:01, Remi Gacogne via dnsdist wrote:
> 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!

Not for me - I just got curious when I was poking around the load
balancer policies because I observed weird behaviour with wrandom
being very non-random (certain domains seemingly always ending up on
certain backends).

>> 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?

Ah! I misread the test snippet and thought this was runtime.
Nevermind then.

cheers!
Holger


More information about the dnsdist mailing list