how to limit/throttle the data fetched form the s3 bucket #5173
-
I have am running thanos-store
With this config:
Because of the amount of data fetched from the s3 bucket, I am frequently hitting the bandwidth limits of the VM, wondering if there is a way to rate-limit or prevent frequently downloading all data? From my understanding, my query range is defined by the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is at the moment not a way to throttle that. To limit it, implement caches on multiple levels. So, frontend query cache, bucket cache, index cache. Furthermore you can add 'limits' to other components on how much series they should return and queries to process. For this I would recommend the documentation and check all the flags for your possibilities (there are multiple ways basically) |
Beta Was this translation helpful? Give feedback.
-
Just in case help for others, my current workaround was to use an HTTP PROXY (tinyproxy) in FreeBSD with ALTQ, here are the basic PF rules that limit the proxy to use 20% bandwidth out of 10MB:
|
Beta Was this translation helpful? Give feedback.
Just in case help for others, my current workaround was to use an HTTP PROXY (tinyproxy) in FreeBSD with ALTQ, here are the basic PF rules that limit the proxy to use 20% bandwidth out of 10MB: