Skip to content

Conversation

Tommy12789
Copy link
Contributor

Refers to #2415

Added a new environment var for each type of reconciler (gitrepo, bundle, bundledeployment) to configure their worker count (in values.yaml)

No test for this, we need a large scale fleet to test to test it

@Tommy12789 Tommy12789 requested a review from a team as a code owner May 14, 2024 13:04
@@ -64,6 +64,18 @@ spec:
- name: CATTLE_DEV_MODE
value: "true"
{{- end }}
{{- if $.Values.controller.reconciler.workers.gitrepo }}
- name: CONTROLLER_GITREPO_RECONCILER_WORKERS
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: CONTROLLER_GITREPO_RECONCILER_WORKERS
- name: GITREPO_RECONCILER_WORKERS

I'd remove the controller prefix on all envs, for brevity.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just changed this TY Mario !

workers:
gitrepo: "1"
bundle: "2"
bundledeployment: "3"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
bundledeployment: "3"
bundledeployment: "1"

I'd default them all to 1, I think that's the upstream default, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course, I forgot to reset them !

@@ -54,6 +54,12 @@ type LeaderElectionOptions struct {
RetryPeriod *time.Duration
}

type ControllerReconcilerWorkers struct {
Gitrepo int
Copy link
Member

Choose a reason for hiding this comment

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

I just noticed it's GitRepo everywhere else

Suggested change
Gitrepo int
GitRepo int

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed !

type ControllerReconcilerWorkers struct {
Gitrepo int
Bundle int
Bundledeployment int
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Bundledeployment int
BundleDeployment int

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed !

@manno manno merged commit c802a27 into rancher:main May 16, 2024
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