-
Notifications
You must be signed in to change notification settings - Fork 16
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
Determine reasonable defaults for Spin Operator pod cpu/mem resources #21
Comments
CC @vdice |
Is this something critical for the release? Seems like it skirts the line between "nice to have" (we document this and let users figure it out initially) vs. "must have" (it's critical for the spin-operator to have these limits in place). What's your take on this work item's priority? |
QQ: do operators work like pods, in that if we don't define resource requests/limits they get assigned a lower QoS class? Or is that just a pod construct? |
One thing to keep in mind here is that when setting resource requests/limits using the containerd shim, it drastically increases the time until the startup/readiness probes pass. So if we're setting the requests/limits I would suggest also setting defaults for probes. |
This work was completed a while ago and is already part of the chart: spin-operator/config/chart/values.yaml Lines 31 to 39 in f8b9ae7
spin-operator/charts/spin-operator/templates/deployment.yaml Lines 52 to 53 in f8b9ae7
|
@bacongobbler I think that part of the work here was running some load tests to see if those numbers are reasonable e.g. put 500 SpinApps on a cluster and see if the controller can keep up given it's resource limits/requests. |
Decide on default/baseline cpu/mem configuration for the Spin Operator.
Main operator container: https://github.com/fermyon/spin-operator/blob/main/config/manager/manager.yaml#L92-L100
and kube-rbac-proxy: https://github.com/fermyon/spin-operator/blob/main/config/default/manager_auth_proxy_patch.yaml#L28-L34
I'm assuming we'll want to ensure the defaults are friendly to resource-constrained or small-footprint clusters (minikube, kind, k3d).
The text was updated successfully, but these errors were encountered: