Ingestion burst size not working as desired #8754
-
Describe the bugWe are trying to set a acceptable ingestion rate but higher burst size to reduce distributor rate limiting but received rate is capped at ingestion rate. To Reproduce
Expected behavior
Environment
Additional ContextDistributor is rate limiting with following error:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Can you post the limits configuration you're using when you get the mentioned error? |
Beta Was this translation helpful? Give feedback.
-
This is expected behavior. If you set the ingestion rate to 20K samples/sec and send more than that number of samples per second, e.g. 40K samples/sec, eventually you will be rate limited regardless of the burst size. The ingestion rate is the rate at which the distributors will accept samples. The burst allows for temporarily exceeding the ingestion rate limit but eventually you will be rate limited. |
Beta Was this translation helpful? Give feedback.
-
@56quarters can you explain a bit on "The burst allows for temporarily exceeding the ingestion rate limit but eventually you will be rate limited.", is it just for first 10 seconds, based on code I assumed that burst size will be applicable for every 10 second window? |
Beta Was this translation helpful? Give feedback.
I'm not really sure what you mean, tokens don't get reset. Every time there's another request, the rate limiter checks how long it has been since the last request and adds new tokens to the bucket based on the defined rate and max capacity (burst) before deducting them from the bucket (if there are enough).
You can only exceed the rate limit for a little while until the bucket is em…