-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tailFile: leakybucket algo err #95
Comments
Or, you can add a burst para, like this:
When using leakybucket, you shoud config the "burst" para. |
I will commit to fix this. |
Hi, any update here? |
How to use ratelimiter? |
73 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/hpcloud/tail/blob/master/ratelimiter/leakybucket.go
newfill float64 = b.Fill + float64(amount)
b.Fill -= float64(elapsed) / float64(b.LeakInterval)
It is strange: add amount, dec time ?!
should be:
this leakybucket's rate: size/interval
burst: size
please see: https://en.wikipedia.org/wiki/Leaky_bucket#Parameters
The text was updated successfully, but these errors were encountered: