Skip to content
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

Enabling "scaling to zero" functionality on faasd #1840

Closed
3 tasks
DanieleLattaioli opened this issue May 23, 2024 · 3 comments
Closed
3 tasks

Enabling "scaling to zero" functionality on faasd #1840

DanieleLattaioli opened this issue May 23, 2024 · 3 comments

Comments

@DanieleLattaioli
Copy link

DanieleLattaioli commented May 23, 2024

My actions before raising this issue

version: 1.0
provider:
  name: openfaas
  gateway: http://192.168.65.15:8080
functions:
  hello:
    lang: python3
    handler: ./hello
    image: danielelattaioli/hello:latest
    annotations:
      com.openfaas.scale.min: "0"
      com.openfaas.scale.factor: "60"
      com.openfaas.scale.zero: "true"

Why do you need this?

I have some functions that are not triggered for a long time

Expected Behaviour

I would like to scale my functions replicas to zero

Current Behaviour

When I deploy the function with faas-cli deploy -f hello.yml and then faas-cli list, there is a replica of hello function

danielelattaioli@MBPdiDaniele2 Multipass % faas-cli list
Function                      	Invocations    	Replicas
hello                         	1              	1     
@nitishkumar71
Copy link
Contributor

Hi

Please refer openfaas/faasd#353. Scale to zero is not supported in any community edition implementation of OpenFaas.

@alexellis
Copy link
Member

alexellis commented May 28, 2024

Thanks for the interest. The documentation you're referring to is about OpenFaaS on Kubernetes, the Community Edition of faasd doesn't support scaling to zero, however after a reboot, all functions start off at 0/0 replicas.

@alexellis
Copy link
Member

/lock: resolved

@derek derek bot locked and limited conversation to collaborators May 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants