diff options
author | Charles-Henri de Boysson <ceache@users.noreply.github.com> | 2019-10-20 00:58:29 -0400 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2020-02-07 10:00:06 -0800 |
commit | 0bb0659cf3fd73714a9d75b093a75c7122e116e6 (patch) | |
tree | f552d972dcd6798ee7123db9b9fb8b4cc280d57d /docs | |
parent | c7e80503f3be97d26ff2de27f9e424070c8181bb (diff) | |
download | kazoo-0bb0659cf3fd73714a9d75b093a75c7122e116e6.tar.gz |
fix(core): Implement proper retry backoff logic with jitter.
New retry logic takes a maximum percentage off the canonical backoff,
ensure gradual predictable retries timings while still having a
controlable amount of jitter (re-introducing the `max_jitter` parameter)
to avoids swarming client retries.
Fix regression introduced in 60366d2c7910fc833991fad8e04bbe33817c0544
where retry/backoff logic produced only whole second (integer) retry
delays.
This produced inadequate retries on first retry and would generally not
work on fast network where sub miliseconds retries are desired.
Additionally, with high `max_delay` setting, as the range was always
spanning from 0 until the last delay, it would also produce extremely
random results with short delays following longer ones which is contrary
to the expected backoff logic.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions