Skip to content

feat: configurable per-controller concurrency - #1024

Open
sleungcy wants to merge 5 commits into
open-component-model:mainfrom
sleungcy:concurrency
Open

sleungcy wants to merge 5 commits into
open-component-model:mainfrom
sleungcy:concurrency

Conversation

@sleungcy

@sleungcy sleungcy commented Oct 15, 2026 •

Copy link
Copy Markdown

What this PR does / why we need it

Adds a --controller-concurrency flag so each controller's worker count can be
tuned independently, instead of all controllers sharing the default of one
worker. Busy controllers (e.g. componentVersion, resource) can be scaled up
without over-provisioning the rest.

  • --controller-concurrency takes comma-separated name=count pairs, e.g.
    componentVersion=4,resource=2. Unspecified controllers keep their default.
    Valid names: componentVersion, resource, snapshot, localization,
    configuration, fluxDeployer.
  • Values feed controller-runtime's GroupKindConcurrency.
  • Invalid input (unknown name, duplicate, non-positive integer) fails fast at
    startup.
  • Helm chart exposes this via manager.concurrency (a map), with equivalent
    validation at template-render time. Omitted/empty map emits no flag.

Which issue(s) this PR is related to

@sleungcy sleungcy changed the title concurrency feat: configurable per-controller concurrency Oct 15, 2026
Add a --controller-concurrency flag taking comma-separated name=count
pairs so each controller's worker count can be tuned independently.
Values feed controller-runtime's GroupKindConcurrency; unspecified
controllers keep their default. Invalid input fails fast at startup.

The Helm chart exposes this via manager.concurrency with equivalent
validation at template-render time.

Signed-off-by: sleungcy-sap <sleungcy@gmail.com>
@sleungcy
sleungcy marked this pull request as ready for review October 15, 2026 18:55
@sleungcy
sleungcy requested a review from a team as a code owner October 15, 2026 18:55
@sleungcy

Copy link
Copy Markdown
Author

@dee0sap

@Skarlso

Skarlso commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

@sleungcy can you please fix the linter issues? :)

Signed-off-by: sleungcy-sap <sleungcy@gmail.com>
Signed-off-by: sleungcy-sap <sleungcy@gmail.com>
Signed-off-by: sleungcy-sap <sleungcy@gmail.com>
@c5426746

Copy link
Copy Markdown
Contributor

@sleungcy Would you be able to add to the readme to explain these values?

Signed-off-by: sleungcy-sap <sleungcy@gmail.com>
@sleungcy

Copy link
Copy Markdown
Author

@Skarlso please review, thanks.

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.

3 participants