Replies: 1 comment 1 reply
-
Hello @apflieger
Token-bucket math model is not addressed to satisfy hard limits like N permit /M time. Please read this discussion #128
I am sure that you use the scheduler from multiple threads. For scheduler API, it is legal to have a negative amount of tokens. When from thread T1 you call |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to configure a bucket that i'm using as a scheduler
The API I am requesting says to stay bellow 100 req / 10 seconds.
Firstly, I used this
But it actually sends a lot more than what I expected. It reached 163 requests over 10 seconds. I even got negative
bucket.getAvailableTokens()
values (up to -5) during 5 seconds!After thinking through the Bandwith API, I started to think it's normal that this configuration goes over my average limit but I don't see a good solution.
How would you do that peeps?
Beta Was this translation helpful? Give feedback.
All reactions