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

Feature/per tenant splitby #1565

Merged
merged 8 commits into from
Jan 31, 2020

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Jan 22, 2020

This allows the querier.split-queries-by-interval to be specified in overrides files via split_queries_by_interval. Previously this was a component wide config. It enables serving tenants of different throughputs.

closes #1556

@owen-d owen-d force-pushed the feature/per-tenant-splitby branch from 4fc287b to c069a2b Compare January 22, 2020 22:00
@cyriltovena cyriltovena self-assigned this Jan 23, 2020
@owen-d owen-d force-pushed the feature/per-tenant-splitby branch from c069a2b to aaef6f6 Compare January 23, 2020 16:05
@owen-d owen-d force-pushed the feature/per-tenant-splitby branch from 928d7a4 to 61ff42c Compare January 30, 2020 20:11
"github.com/cortexproject/cortex/pkg/querier/queryrange"
)

type CacheKeyLimits interface {
Copy link
Member Author

Choose a reason for hiding this comment

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

@cyriltovena Do you think it's excessive to have custom interfaces for this? Should I just inline a cacheKeyLimits{limits} when constructing the cache middleware?

@owen-d owen-d force-pushed the feature/per-tenant-splitby branch from 85662d9 to f982866 Compare January 30, 2020 22:29
@codecov-io
Copy link

codecov-io commented Jan 30, 2020

Codecov Report

Merging #1565 into master will increase coverage by 0.18%.
The diff coverage is 86.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1565      +/-   ##
==========================================
+ Coverage   60.78%   60.97%   +0.18%     
==========================================
  Files         107      108       +1     
  Lines        8073     8143      +70     
==========================================
+ Hits         4907     4965      +58     
- Misses       2782     2788       +6     
- Partials      384      390       +6
Impacted Files Coverage Δ
pkg/querier/queryrange/limits.go 100% <100%> (ø)
pkg/querier/queryrange/split_by_interval.go 87.23% <73.33%> (-3.68%) ⬇️
pkg/querier/queryrange/roundtrip.go 80.43% <86.27%> (+5.43%) ⬆️
pkg/ingester/transfer.go 65% <0%> (-1.43%) ⬇️
pkg/logql/evaluator.go 91.75% <0%> (-1.04%) ⬇️
pkg/promtail/targets/filetarget.go 70.55% <0%> (+1.84%) ⬆️

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LOTM

@cyriltovena cyriltovena merged commit 3e07549 into grafana:master Jan 31, 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.

per tenant split by overrides
3 participants