rantav/hector — Issue #373: DynamicLoadBalancingPolicy - setResetInterval() and setUpdateInterval() do nothing
Author: abirkmanis
Created: 2011-12-21 19:26:37+00:00
State: open

Judging by the code, these setters modify instance fields, which are only used in the constructor - which to me means setters cannot be called in time to affect anything.

Am I missing something, or is this a bug?

As an improvement, I would suggest keeping more than one list of latencies per host, as resetting all the latencies at once is too drastic and loses all the knowledge gathered during the reset interval, thus starting the learning process from the beginning every 20 seconds (which may be a problem for low-volume applications).