8000 Expose agent worker counts in fleet chart by weyfonk · Pull Request #3152 · rancher/fleet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Expose agent worker counts in fleet chart #3152

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 1 commit into from
Dec 18, 2024

Conversation

weyfonk
Copy link
Contributor
@weyfonk weyfonk commented Dec 16, 2024

This enables agent worker counts to be configured when installing the fleet chart, which is easier than tweaking individual releases of the fleet-agent chart.

Limitation

This does not enable agent worker count updates through helm upgrade --reuse-values or patching the fleet-controller config map. Indeed, performing either would update the fleet-agent StatefulSet twice, the second time with default values (50 workers per reconciler) triggered by the pre-existing agent bundle adopting the new StatefulSet and reconciling.

Refers to #2915
Follow-up to #3094, which exposed agent worker counts on the fleet-agent chart only.

@weyfonk weyfonk requested a review from a team as a code owner December 16, 2024 16:43
@weyfonk weyfonk force-pushed the 2915-expose-agent-workers branch from 75e7eb3 to d285482 Compare December 16, 2024 16:57
This enables agent worker counts to be configured when installing the
`fleet` chart, which is easier than tweaking individual releases of the
`fleet-agent` chart.
This still needs work to enable worker count updates through `helm
upgrade --reuse-values` though, as this updates the `fleet-agent`
`StatefulSet` _twice_, the second time with default values (50 workers
per reconciler).
@weyfonk weyfonk force-pushed the 2915-expose-agent-workers branch from d285482 to 24af1ed Compare December 16, 2024 16:58
@manno manno merged commit ac0c74d into rancher:main Dec 18, 2024
12 checks passed
weyfonk added a commit to weyfonk/fleet that referenced this pull request Dec 19, 2024
This enables agent worker counts to be configured when installing the
`fleet` chart, which is easier than tweaking individual releases of the
`fleet-agent` chart.
This still needs work to enable worker count updates through `helm
upgrade --reuse-values` though, as this updates the `fleet-agent`
`StatefulSet` _twice_, the second time with default values (50 workers
per reconciler).
manno pushed a commit that referenced this pull request Dec 20, 2024
* Make max concurrent reconciles configurable for agent and remaining controllers (#3094)

* Make worker count configurable for cluster, clustergroup and imagescan

Reconcilers for clusters, cluster groups and image scans now have
configurable `controller-runtime` worker counts, similarly to what is
already supported for gitrepo, bundle and bundle deployment reconcilers.

* Remove workers env vars from cleanup container

Fleet's cleanup logic does not make use of controller-runtime
reconcilers, hence does not need environment variables specifying how
many workers such reconcilers can use.

* Make worker count configurable for agent reconcilers

Reconcilers living in the Fleet agent now have configurable
`controller-runtime` worker counts, similarly to what is already
supported in the Fleet controller.

* Expose agent worker counts in fleet chart (#3152)

This enables agent worker counts to be configured when installing the
`fleet` chart, which is easier than tweaking individual releases of the
`fleet-agent` chart.
This still needs work to enable worker count updates through `helm
upgrade --reuse-values` though, as this updates the `fleet-agent`
`StatefulSet` _twice_, the second time with default values (50 workers
per reconciler).
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
0