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

Incorrect query frontend warning log when not using memcached cache #3240

Closed
yeya24 opened this issue Sep 27, 2020 · 4 comments
Closed

Incorrect query frontend warning log when not using memcached cache #3240

yeya24 opened this issue Sep 27, 2020 · 4 comments

Comments

@yeya24
Copy link
Contributor

yeya24 commented Sep 27, 2020

Thanos, Prometheus and Golang version used:

Thanos master version

What happened:

I started the Thanos query frontend with the in-memory response cache. However, there is a warning log about Memcached even if I am not using it.

level=info ts=2020-09-27T19:27:28.128182256Z caller=factory.go:38 msg="loading tracing configuration"
level=info ts=2020-09-27T19:27:28.128357861Z caller=jaeger.go:44 msg="loading Jaeger tracing configuration from YAML"
level=info ts=2020-09-27T19:27:28.128900062Z caller=logger.go:18 msg="debug logging disabled"
level=info ts=2020-09-27T19:27:28.129025495Z caller=logger.go:18 msg="debug logging disabled"
level=warn ts=2020-09-27T19:27:28.129805657Z caller=query_frontend.go:110 msg="memcached cache valid time set to 0, so using a default of 24 hours expiration time"

What you expected to happen:

The log shouldn't show up when using other caches.

How to reproduce it (as minimally and precisely as possible):

thanos query-frontend --query-frontend.downstream-url="http://localhost:9091" --query-range.response-cache-config-file=/home/yeya24/res-conf

The content of the file res-conf

type: in-memory
config:
  max_size: "" 
  max_size_items: 2048
  validity: 6h

Anything else we need to know:

The fix should be pretty straightforward. Just need to move https://github.com/thanos-io/thanos/blob/master/cmd/thanos/query_frontend.go#L109-L112 to https://github.com/thanos-io/thanos/blob/master/pkg/queryfrontend/config.go#L90.

Help wanted!

@devil-cyber
Copy link

Can i work on this

@yeya24
Copy link
Contributor Author

yeya24 commented Sep 27, 2020

Sure, please go ahead!

@devil-cyber
Copy link

devil-cyber commented Sep 27, 2020 via email

yeya24 added a commit to yeya24/thanos that referenced this issue Oct 5, 2020
kakkoyun pushed a commit that referenced this issue Oct 13, 2020
* split metadata endpoints

Signed-off-by: Ben Ye <[email protected]>

* add metadata codec implementation

Signed-off-by: Ben Ye <[email protected]>

* cleanup go mod

Signed-off-by: Ben Ye <[email protected]>

* add back fix for #3240

Signed-off-by: Ben Ye <[email protected]>

* check set key exist

Signed-off-by: Ben Ye <[email protected]>

* update

Signed-off-by: Ben Ye <[email protected]>

* add default metadata range flag

Signed-off-by: Ben Ye <[email protected]>

* fix linting issues

Signed-off-by: Ben Ye <[email protected]>

* refactor flags and add test cases

Signed-off-by: Ben Ye <[email protected]>

* fix go lint issue

Signed-off-by: Ben Ye <[email protected]>

* add roundtrip tripperware tests for labels and series requests

Signed-off-by: Ben Ye <[email protected]>

* fix all unit tests and e2e tests

Signed-off-by: Ben Ye <[email protected]>

* fix lint issues

Signed-off-by: Ben Ye <[email protected]>

* add nolint unparam

Signed-off-by: Ben Ye <[email protected]>

* update flags and changelog

Signed-off-by: Ben Ye <[email protected]>

* switch response format to protobuf

Signed-off-by: Ben Ye <[email protected]>
@yeya24
Copy link
Contributor Author

yeya24 commented Oct 14, 2020

This is fixed in #3276

@yeya24 yeya24 closed this as completed Oct 14, 2020
OGKevin pushed a commit to OGKevin/thanos that referenced this issue Oct 15, 2020
* split metadata endpoints

Signed-off-by: Ben Ye <[email protected]>

* add metadata codec implementation

Signed-off-by: Ben Ye <[email protected]>

* cleanup go mod

Signed-off-by: Ben Ye <[email protected]>

* add back fix for thanos-io#3240

Signed-off-by: Ben Ye <[email protected]>

* check set key exist

Signed-off-by: Ben Ye <[email protected]>

* update

Signed-off-by: Ben Ye <[email protected]>

* add default metadata range flag

Signed-off-by: Ben Ye <[email protected]>

* fix linting issues

Signed-off-by: Ben Ye <[email protected]>

* refactor flags and add test cases

Signed-off-by: Ben Ye <[email protected]>

* fix go lint issue

Signed-off-by: Ben Ye <[email protected]>

* add roundtrip tripperware tests for labels and series requests

Signed-off-by: Ben Ye <[email protected]>

* fix all unit tests and e2e tests

Signed-off-by: Ben Ye <[email protected]>

* fix lint issues

Signed-off-by: Ben Ye <[email protected]>

* add nolint unparam

Signed-off-by: Ben Ye <[email protected]>

* update flags and changelog

Signed-off-by: Ben Ye <[email protected]>

* switch response format to protobuf

Signed-off-by: Ben Ye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants