Closed alexellis closed 6 years ago
Tested on Kubernetes with the following stack:
functions:
nodeinfo:
handler: node main.js
image: functions/nodeinfo:burner
labels:
com.openfaas.scale.min: "5"
com.openfaas.scale.max: "15"
It got up to 15 PODs during the load test and down to 5 after that:
Thank you for helping to test this on Kubernetes Stefan.
That result sounds like what we want. When the settings are not present does it fallback to the old behavior?
With no com.openfaas.scale.min
label it goes back to one pod.
Derek add label: enhancement
Is this closeable with the merge of #419?
Derek close
Yes thanks for helping out
Hello please how i can autoscale my faas fucntion ??
which command i use for example to fix the number of replica depend on the CPU usage or the number of requests ??
@white-cloud this thread is closed - please open a new issue if you'd like support.
Derek lock: feature completed
Should be able to set a minimum scale for functions as well as the maximum (existing)
We can configure this through labels on the Docker Swarm service.
Labels are generic so this would need faas-netes to expose some new data for the /system/function/ call too.
This will be useful for functions which are known to need to have high availability or traffic.
Implementation on Swarm:
cc @stefanprodan @ericstoekl
Initial work: https://github.com/openfaas/faas/compare/scale_with_min_values?expand=1