You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/storage/tsdb/expanded_postings_cache.go
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,9 @@ type TSDBPostingsCacheConfig struct {
68
68
HeadPostingsCacheConfig`yaml:"head" doc:"description=If enabled, ingesters will cache expanded postings for the head block. Only queries with with an equal matcher for metric __name__ are cached."`
69
69
BlocksPostingsCacheConfig`yaml:"blocks" doc:"description=If enabled, ingesters will cache expanded postings for the compacted blocks. The cache is shared between all blocks."`
70
70
71
+
// The configurations below are used only for testing purpose
71
72
PostingsForMatchersfunc(ctx context.Context, ix tsdb.IndexReader, ms...*labels.Matcher) (index.Postings, error) `yaml:"-"`
73
+
SeedSizeint`yaml:"-"`
72
74
timeNowfunc() time.Time`yaml:"-"`
73
75
}
74
76
@@ -97,10 +99,13 @@ type ExpandedPostingsCacheFactory struct {
0 commit comments