feat: add support to alter backfill parallelism for streaming jobs #24323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce a new mechanism to control backfill parallelism for streaming jobs, allowing separate tuning of resource usage during backfill phases.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Summary
This PR introduces support for altering the backfill parallelism of streaming jobs through the DDL gRPC API and the corresponding frontend handlers. It enables users to adjust the parallelism used during backfilling operations, including support for deferred execution and resetting the parallelism setting.
Details
AlterBackfillParallelismRequestandAlterBackfillParallelismResponse) and theAlterBackfillParallelismmethod to the DDL gRPC service definition.CatalogWritertrait and its implementation with an asynchronous methodalter_backfill_parallelismto communicate with the meta service.handle_alter_backfill_parallelismto process alter backfill parallelism requests, including extracting parallelism values and validating input.MockCatalogWriter) to facilitate unit testing.Checklist
Documentation
Release note