Skip to content
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

Query Frontend: consumes more memory (OOM) #6665

Closed
chalut01 opened this issue Aug 26, 2023 · 7 comments
Closed

Query Frontend: consumes more memory (OOM) #6665

chalut01 opened this issue Aug 26, 2023 · 7 comments

Comments

@chalut01
Copy link

Thanos Version v0.32.0
Everything is set up the same way, only the version is different.
Before this, I realized that Store are consumes a lot of memory too. #6643
I've decided to rollback all components to version v0.31.0. I'm hoping that this pprof can be useful.

thanos-query-frontend-cpu.pb.gz
thanos-query-frontend-heap.pb.gz

Screenshot 2566-08-26 at 22 00 08
@mhoffm-aiven
Copy link
Contributor

mhoffm-aiven commented Aug 28, 2023

Can you provide a pprof dump and enable active query tracking please?

Edit: i'm a potato and didnt read the initial message properly.

@chalut01
Copy link
Author

chalut01 commented Aug 31, 2023

Fixed in v0.32.2 !!
Thank you everyone for your hard work.

Edit: I'm sorry, it still OOM :(

@chalut01 chalut01 reopened this Sep 1, 2023
@chalut01
Copy link
Author

chalut01 commented Sep 1, 2023

Screenshot 2566-09-01 at 22 00 49

Update.

@MichaHoffmann
Copy link
Contributor

Can you enable active query tracking please? Are you using thanos query engine?

@yeya24
Copy link
Contributor

yeya24 commented Sep 1, 2023

Is vertical sharding enabled?
The only thing I can think about is that we vertical shard more and maybe it caused that heap profile

@chalut01
Copy link
Author

chalut01 commented Sep 3, 2023

My configuration.

thanos query-frontend
--http-address=0.0.0.0:9090
--labels.default-time-range=15m
--labels.max-query-parallelism=50
--labels.max-retries-per-request=2
--labels.response-cache-config-file=/thanos-conf/thanos-query-frontend-redis.yaml
--labels.response-cache-max-freshness=3m
--labels.split-interval=3h
--query-frontend.compress-responses
--query-frontend.downstream-url=http://thanos-query.thanos
--query-frontend.forward-header=Authorization
--query-frontend.log-queries-longer-than=15s
--query-range.max-query-parallelism=50
--query-range.max-retries-per-request=2
--query-frontend.downstream-tripper-config-file=/thanos-conf/thanos-query-frontend-tripper.yaml
--query-range.response-cache-config-file=/thanos-conf/thanos-query-frontend-redis.yaml
--query-range.split-interval=3h
--query-range.partial-response
--query-range.request-downsampled
--log.level=info

@chalut01
Copy link
Author

Fixed.
Upgrade to 0.32.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants