Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

exponentially is weird #5

Closed
lvh opened this issue Jun 16, 2016 · 2 comments
Closed

exponentially is weird #5

lvh opened this issue Jun 16, 2016 · 2 comments

Comments

@lvh
Copy link
Contributor

lvh commented Jun 16, 2016

exponentially is currently initial^attempts; it should probably be initial * base ^ attempts with base=2. Also, we should consider having jitter as an option to prevent stampeding herds. jitter can be linear on the result or on the attempts I guess (dunno how bad floats are for expt)

@lvh
Copy link
Contributor Author

lvh commented Jun 16, 2016

@lvh
Copy link
Contributor Author

lvh commented Apr 25, 2017

I just realized that if you previously used exponentially, and you set a base wait of 1s, it'd never change. (This is now fixed.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant