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

Update Cortex to recent master (1.5.0+, 35e698bb56d6). #2923

Closed
wants to merge 3 commits into from

Conversation

pstibrany
Copy link
Member

What this PR does / why we need it: This PR updates vendored Cortex version in Loki to recent master (post 1.5.0 release, commit cortexproject/cortex@35e698b).

Main goal was to integrate query-frontend refactorings to Loki. Cortex now has new "scheduler" component, which is basically external queue of requests, moved from query-frontend. In this PR, Loki doesn't support scheduler, and only uses original query-frontend. Supported options should be the same as before this PR.

Querier worker has new -querier.scheduler-address option, and existing options now refer to query-scheduler as well, which doesn't apply to Loki. Instead of reusing config struct from Cortex, we could introduce Loki-specific config struct, which would allow us to hide query-scheduler messages and options. WDYT? Alternative is to make Loki support query-scheduler, but I'd suggest doing that in a separate PR.

Special notes for your reviewer: This PR also integrates ring changes -- split of ReadRing.GetAll to GetAllHealthy and GetReplicationSetForOperation methods. Please double check that my changes around this make sense, as ring still makes my head spin sometimes.

Checklist

  • Documentation added
  • Tests updated

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@cyriltovena
Copy link
Contributor

Not sure if tests are failing or it was just a blip ?

@pstibrany
Copy link
Member Author

Not sure if tests are failing or it was just a blip ?

I see failure in TestMemstoreBlocks, which I don't think should be affected by this change. It is passing locally. Retrying tests.

@slim-bean slim-bean added this to the 2.2 milestone Nov 17, 2020
@cyriltovena
Copy link
Contributor

FYI @pstibrany We are awaiting the cut of 2.1 before this.

@stale
Copy link

stale bot commented Dec 31, 2020

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale A stale issue or PR that will automatically be closed. label Dec 31, 2020
@pstibrany
Copy link
Member Author

There is now Cortex 1.6.0 out, so this PR can be updated to that instead.

@stale stale bot removed the stale A stale issue or PR that will automatically be closed. label Jan 5, 2021
@cyriltovena cyriltovena added the keepalive An issue or PR that will be kept alive and never marked as stale. label Jan 5, 2021
@cyriltovena
Copy link
Contributor

Closing in favor of a newer PR. You've been co-authored.

@cyriltovena cyriltovena closed this Jan 7, 2021
@pstibrany
Copy link
Member Author

OK, thanks for update. Co-authoring wasn't necessary :) What is the PR?

@pstibrany
Copy link
Member Author

Found it: #3131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keepalive An issue or PR that will be kept alive and never marked as stale. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants