Skip to content

block-builder: remove standalone mode #11643

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

Merged
merged 4 commits into from
Jun 6, 2025
Merged

block-builder: remove standalone mode #11643

merged 4 commits into from
Jun 6, 2025

Conversation

narqo
Copy link
Contributor

@narqo narqo commented Jun 5, 2025

What this PR does

Now, as we have block-builder-scheduler, we can remove the standalone mode, and continue iterating on top of its architecture.

This PR mechanically removes everything related the standalone mode. My idea is that after this one gets merged, we can go ahead and start looking at if there are any test scenarios missing, and gradually add those.

@narqo narqo requested a review from seizethedave June 5, 2025 14:46
@narqo narqo requested a review from a team as a code owner June 5, 2025 14:46
Copy link
Contributor

@seizethedave seizethedave left a comment

Choose a reason for hiding this comment

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

Yes! Living the dream.

@@ -221,13 +189,12 @@ func (b *BlockBuilder) runningPullMode(svcCtx context.Context) error {
}

// Once we've gotten a job, we attempt to complete it even if the context is cancelled.

if _, err := b.consumeJob(context.Background(), key, spec); err != nil {
if _, err := b.consumeJob(context.WithoutCancel(ctx), key, spec); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, nice.

@@ -37,8 +28,9 @@ func newBlockBuilderMetrics(reg prometheus.Registerer) blockBuilderMetrics {
}, []string{"success"})

m.processPartitionDuration = promauto.With(reg).NewHistogramVec(prometheus.HistogramOpts{
Name: "cortex_blockbuilder_process_partition_duration_seconds",
Help: "Time spent processing one partition.",
Name: "cortex_blockbuilder_process_partition_duration_seconds",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one is now redundant with the similar consume_job metric. It's in some dashboards, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I will clean up the dashboards after

@narqo narqo merged commit 9a557a5 into main Jun 6, 2025
30 checks passed
@narqo narqo deleted the vldmr/bb-scheduler-mode branch June 6, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants