-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
store: extremely slow and CPU pegged at 100% (lru.RemoveOldest) #955
Comments
Like the changelog said, I can also bump up
|
Yes, you should definitely try that. What was the value of The store does not have enough space for the cache so it has to remove the oldest all the time possibly. |
@FUSAKLA thanks for the reply! I have it set to 16GB now, and don't have anymore issues related to this. Is there a formula in which to compute how big the index-cache-size needs to be, relative to the # of blocks and size of the blocks?
If that's the case, should the 'store' report a warning about the set size being too large for the LRU size? |
great to hear, well it depends on the queries you send, for how long time range, how many series.. there is lot of factors. Not sure if there is one universal formula. Hmm.. not sure about the warning. It's still valid behavior aligned with the set cache size but I see the motivation.
I think those should tell you how big it should be hopefully |
@FUSAKLA those metrics are definitely useful. Thank you! I can definitely see the 250MB plateau that caused the constant cpu churn while it tried to constantly evict the index. Going to close this issue now :) |
Thanos, Prometheus and Golang version used
Only reproducible in 0.3.2 and not 0.3.1.
What happened
shows all the CPU time being spent on 'RemoveOldest':
https://github.com/GiedriusS/thanos/blob/9679a193f433353287ea3052320dbc9e46bc3e9e/pkg/store/cache.go#L131
What you expected to happen
How to reproduce it (as minimally and precisely as possible):
Maybe relevant:
#873
Full logs to relevant components
Anything else we need to know
Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: