querier cache behaviour #6989
Unanswered
shubhamsharmadvlpr
asked this question in
Questions & Answers
Replies: 1 comment 6 replies
-
Do you have traces maybe? That would greatly help in debugging i think! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team, I'm new to thanos + prometheus setup and working on optimising the performance by tuning different component. we are facing a interesting situation. When using prometheus and thanos sidecar as single storeapi endpoint; response from thanos querier is much faster than prometheus directly
eg
curl -i http://thanos-querier-url/api/v1/query --data-urlencode 'query=prometheus_tsdb_wal_storage_size_bytes' --> 0.107s
curl -i http://prometheus-url/api/v1/query --data-urlencode 'query=prometheus_tsdb_wal_storage_size_bytes' --> 4s
so it's a huge margin, how's querier doing that? it should be hitting the same prometheus storeapi exposed by sidecar. i'm not able to find any documentation for caching implementation in thanos querier to justify it.
querier args
--log.level=debug
--query.replica-label=replica
--store=dnssrv+prometheus-thanos-store-gateway:10901 (--> only using sidecar)
--query.auto-downsampling
Beta Was this translation helpful? Give feedback.
All reactions