-
Notifications
You must be signed in to change notification settings - Fork 810
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
Implement partition compaction planner #6469
Implement partition compaction planner #6469
Conversation
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
@danielblando, could you help review? |
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.
Sorry for the delay. Forgot to come back to the PR
Signed-off-by: Alex Le <[email protected]>
pkg/compactor/compactor_metrics.go
Outdated
@@ -174,6 +175,10 @@ func newCompactorMetricsWithLabels(reg prometheus.Registerer, commonLabels []str | |||
Name: "cortex_compactor_group_partition_count", | |||
Help: "Number of partitions for each compaction group.", | |||
}, compactionLabels) | |||
m.compactionsNotPlanned = promauto.With(reg).NewCounterVec(prometheus.CounterOpts{ | |||
Name: "cortex_compactor_group_compactions_not_planned", | |||
Help: "Total number of group compaction not planned due to non-critical error (ie. group is currently visited by other compactor).", |
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.
This metric is a bit confusing to me. Non-critical error... Is it recommended for users to alarm on this metric?
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.
Updated description and use this metric for not planned case due to error
Signed-off-by: Alex Le <[email protected]>
Signed-off-by: Alex Le <[email protected]>
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.
Thanks
What this PR does:
PartitionCompactionPlanner
is generally similar asShuffleShardingPlanner
. It checks visit marker for the partition is about to be compacted. If the visit marker is legit,PartitionCompactionPlanner
would validate all blocks in the partition then pass it onto compaction.Which issue(s) this PR fixes:
NA
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]