-
Notifications
You must be signed in to change notification settings - Fork 834
[Querier] Deprecate -querier.compress-http-responses
#3544
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
[Querier] Deprecate -querier.compress-http-responses
#3544
Conversation
pkg/cortex/modules.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we deprecate removing the code as well we introduce a breaking change (which we can't, I think). We should keep the logic as is, deprecated it in the CLI flag description + CHANGELOG and in 2 minor versions we'll remove it. @gouthamve may you confirm it, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gotjosh on a related not, does having this flag and the new flag set simultaneously cause an issues? If so you could add a check below to only inject the gzip handler if the query-frontend flag is enabled but not the generic compression flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does having this flag and the new flag set simultaneously cause an issues?
We checked when we reviewed the previuos PR (where the new flag has been introduced) and it shouldn't cause any issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this better?
pkg/cortex/modules.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gotjosh on a related not, does having this flag and the new flag set simultaneously cause an issues? If so you could add a check below to only inject the gzip handler if the query-frontend flag is enabled but not the generic compression flag.
af266f5
to
572de88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (with a nit)
In favour of `-api.response-compression-enabled` which apply to every other API endpoint we register. Signed-off-by: gotjosh <josue@grafana.com>
572de88
to
e0d8400
Compare
Signed-off-by: gotjosh <josue@grafana.com>
e0d8400
to
40ac6d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
-querier.compress-http-responses-deprecated
-querier.compress-http-responses
What this PR does:
Deprecate
-querier.compress-http-responses-deprecated
In favour of-api.response-compression-enabled
which applies to every other API endpoint we register.Which issue(s) this PR fixes:
A follow up from #3536
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]