[Pool] weirdness in pool monitoring
Ask Bjørn Hansen
ask at ntppool.org
Fri Jul 17 20:27:11 UTC 2015
> On Jul 16, 2015, at 18:57, Philip Gladstone <philip at gladstonefamily.net> wrote:
> 1437096927,"2015-07-17 01:35:27",,-5,-100
> 1437096272,"2015-07-17 01:24:32",,-5,-100
> What is the "step" column?
It’s the change to the score after the 5% adjustment. The old score is multiplied by 0.95 (that’s how we get the boundaries of -100 to +20) and then the step is applied. The code is here: https://github.com/abh/ntppool/blob/master/lib/NTPPool/Control/Monitor.pm#L114
The step is “+1” if all is well. Less if the time is inaccurate etc down to -5 when there’s no reply.
Adrien came up with this logic as far as I know and nobody has suggested a better way to do it. I’ve had various ideas and made some adjustments over the year, but I haven’t had a compelling reason to make a major change.
One thing I’d like to do would be to have separate scores for ntp and sntp clients and I’ve slowly done changes here and there to support it some day in the future.
More information about the pool