-
Notifications
You must be signed in to change notification settings - Fork 840
Refactor: extract parquet shard cache to parquetutil pkg #7146
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
base: master
Are you sure you want to change the base?
Refactor: extract parquet shard cache to parquetutil pkg #7146
Conversation
pkg/util/parquetutil/cache.go
Outdated
| func newCacheMetrics(reg prometheus.Registerer) *cacheMetrics { | ||
| return &cacheMetrics{ | ||
| hits: promauto.With(reg).NewCounterVec(prometheus.CounterOpts{ | ||
| Name: "cortex_parquet_queryable_cache_hits_total", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove queryable from the metric name? Or you make cortex_parquet_queryable as a prefix to those metrics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you already have name as a label then we need to remove the parquet queryable prefix in metric name. Otherwise you make prefix configurable
pkg/util/parquetutil/cache.go
Outdated
| } | ||
|
|
||
| type CacheConfig struct { | ||
| ParquetQueryableShardCacheSize int `yaml:"parquet_queryable_shard_cache_size"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be parquet shard cache size not parquet queryable cache size... It is a cache for parquet shard which exists in parquet store gateway as well
Signed-off-by: SungJin1212 <[email protected]>
f64b0a4 to
031650a
Compare
|
@yeya24 |
bc8a63d to
cc9eba7
Compare
Signed-off-by: SungJin1212 <[email protected]>
cc9eba7 to
ea253e3
Compare
This PR extracts the parquet shard cache implementation into a new dedicated package
pkg/util/parquetutil.This refactoring allows the shard cache logic to be reused by other components.
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]