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
ANALYZE not throttled by max_bytes_per_sec
configuration
#15072
Comments
max_bytes_per_sec
configurationmax_bytes_per_sec
configuration
I had a look at this, but as far as I can tell the throttle mechanism is generally working. You can observe this by using different values. For example, in my tests the duration decreased each time I increased the I cleaned the fs cache after each run with
I made some changes that should reduce the amount of disk hits, and it should make the throttle work a bit more accurately: #15078 |
The original post clearly indicates that the throttle mechanism is not functioning as expected. |
Can you provide minimal reproduction steps then? |
It is a bit hard to reproduce this with a minimal example, when it isn't even documented what |
Okay, so what I could verify is that reads on the disks don't correspond 1:1 to the "application" reads. E.g. this is the
Compared to a
To apply a rate limit closer at the source we'd probably have to wrap the |
Closing this as the throttle is generally working. #15087 should also reduce the number of disk reads. |
Maybe worth adding a note related to this to the documentation of the |
CrateDB version
5.3.3
CrateDB setup information
CR1 - 3 node cluster
Related settings as below:
max_bytes_per_sec = 40mb
settings['stats']['service']['interval'] = 24h
Regarding the
pg_stats
table:Problem description
Whenever the automated
ANALYZE
runs, it goes over the 40mb/s as stablished by the default configuration ofmax_bytes_per_sec
.Steps to Reproduce
This was observed on a production cluster but we didn't manage to reproduce yet.
Actual Result
Whenever the
ANALYZE
is automatically triggered the cluster goes beyond the 40mb limitedit: this cluster stores ~3 TiB (i.e. 1.5 TiB in primaries) and apparently reads through he complete volume in an
ANALYZE
runExpected Result
The throttling configuration should be enforced for the
ANALYZER
preserving other queries responsiveness.The text was updated successfully, but these errors were encountered: