-
Notifications
You must be signed in to change notification settings - Fork 245
Add a Parameter to Configure Worker count for fleet-controller #2430
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
Conversation
@@ -64,6 +64,18 @@ spec: | |||
- name: CATTLE_DEV_MODE | |||
value: "true" | |||
{{- end }} | |||
{{- if $.Values.controller.reconciler.workers.gitrepo }} | |||
- name: CONTROLLER_GITREPO_RECONCILER_WORKERS |
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.
- name: CONTROLLER_GITREPO_RECONCILER_WORKERS | |
- name: GITREPO_RECONCILER_WORKERS |
I'd remove the controller prefix on all envs, for brevity.
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.
Just changed this TY Mario !
charts/fleet/values.yaml
Outdated
workers: | ||
gitrepo: "1" | ||
bundle: "2" | ||
bundledeployment: "3" |
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.
bundledeployment: "3" | |
bundledeployment: "1" |
I'd default them all to 1, I think that's the upstream default, too.
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.
Of course, I forgot to reset them !
internal/cmd/controller/root.go
Outdated
@@ -54,6 +54,12 @@ type LeaderElectionOptions struct { | |||
RetryPeriod *time.Duration | |||
} | |||
|
|||
type ControllerReconcilerWorkers struct { | |||
Gitrepo int |
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.
I just noticed it's GitRepo everywhere else
Gitrepo int | |
GitRepo int |
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.
changed !
internal/cmd/controller/root.go
Outdated
type ControllerReconcilerWorkers struct { | ||
Gitrepo int | ||
Bundle int | ||
Bundledeployment int |
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.
Bundledeployment int | |
BundleDeployment int |
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.
changed !
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