Skip to content

Conversation

gotjosh
Copy link
Contributor

@gotjosh gotjosh commented Nov 26, 2020

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

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this better?

Copy link
Contributor

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.

@gotjosh gotjosh force-pushed the depecreate-compression-frontend branch from af266f5 to 572de88 Compare December 9, 2020 11:42
Copy link
Contributor

@pracucci pracucci left a 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>
@gotjosh gotjosh force-pushed the depecreate-compression-frontend branch from 572de88 to e0d8400 Compare December 9, 2020 16:41
Signed-off-by: gotjosh <josue@grafana.com>
@gotjosh gotjosh force-pushed the depecreate-compression-frontend branch from e0d8400 to 40ac6d7 Compare December 9, 2020 16:43
Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtlisi jtlisi merged commit 08c072b into cortexproject:master Dec 9, 2020
jtlisi pushed a commit that referenced this pull request Dec 9, 2020
)

* [Querier] Deprecate `-querier.compress-http-responses`

In favour of `-api.response-compression-enabled` which apply to every
other API endpoint we register.

Signed-off-by: gotjosh <josue@grafana.com>

* 1.8 since we're cutting 1.6 when this goes out

Signed-off-by: gotjosh <josue@grafana.com>
@bboreham bboreham changed the title [Querier] Deprecate -querier.compress-http-responses-deprecated [Querier] Deprecate -querier.compress-http-responses Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants