upgrade prometheus 3.9.1#7535
Conversation
f1a535a to
e675cf9
Compare
e675cf9 to
06fc626
Compare
540cedf to
d763c33
Compare
d763c33 to
8c8d384
Compare
| // evaluate each lazy matcher against the relevant label value. A per-matcher, | ||
| // per-value cache avoids running the same regex against the same string more | ||
| // than once, which is particularly effective when many series share label values. | ||
| func (c *blocksPostingsForMatchersCache) fetchWithLazyMatchers(ctx context.Context, ix tsdb.IndexReader, selectMs, lazyMs []*labels.Matcher) ([]storage.SeriesRef, int64, error) { |
There was a problem hiding this comment.
I would be nice to see how the benchmark changes with this change
go test -bench=BenchmarkIngester_LazyPosting -benchmem -run=^$ -count=5 ./pkg/ingester/...
Not a blocker since, this flag is experimental.
Maybe @alanprot can also chime in here
There was a problem hiding this comment.
@friedrichg
I ran it and noticed the performance is a little bit worse.
I optimized it in db47605, and it showed similar results.
I added the results to the PR description.
There was a problem hiding this comment.
@SungJin1212 Can you add upstream prometheus PR reference for this change? I am trying to understand why we have to call ix.Series now.
There was a problem hiding this comment.
OK I think I found it prometheus/prometheus#17679
| // Wait until a run has been completed on each compactor | ||
| for _, c := range compactors { | ||
| cortex_testutil.Poll(t, 120*time.Second, true, func() any { | ||
| cortex_testutil.Poll(t, 240*time.Second, true, func() any { |
There was a problem hiding this comment.
Is this absolutely necessary? why is it taking longer now?
There was a problem hiding this comment.
The #7617 tackles this flaky test. On ARM64, this test is so slow.
74a5df5 to
21da3bd
Compare
7f74877 to
07e90e6
Compare
|
LGTM! |
07e90e6 to
7954517
Compare
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
…s for optimization Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
7954517 to
1fd0c05
Compare
Upgrade the Prometheus version to 3.9.1
BenchmarkIngester_LazyPostingBenchmark resultWhich issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]docs/configuration/v1-guarantees.mdupdated if this PR introduces experimental flags