GithubHelp home page GithubHelp logo

Comments (8)

nitishkumar71 avatar nitishkumar71 commented on July 24, 2024 1

Aah, my bad I mistook it for scaling across nodes. I will dig into it.

from faasd.

rgee0 avatar rgee0 commented on July 24, 2024 1

I've reproduced this. It was working in 16.5 (the version I already had available on a microvm) it isn't working with faasd version: 0.18.2 commit: 078043b168d8e18fa2671de9cc1f9aca27d4e9baa

To isolate the problem I would ignore faas-idler for the time being - this would generate the request to the endpoint in the same way you are doing manually.

The gateway returns a 200:

Jan 07 09:32:55 faasd openfaas:gateway[6351]: 2024/01/07 09:32:55 Forwarded [GET] to /system/functions - [200] - 0.0349s
Jan 07 09:33:13 faasd openfaas:gateway[6351]: 2024/01/07 09:33:13 Forwarded [POST] to /system/scale-function/nodeinfo - [200] - 0.0173s
Jan 07 09:33:15 faasd openfaas:gateway[6351]: 2024/01/07 09:33:15 Forwarded [GET] to /system/functions - [200] - 0.0529s
Jan 07 09:36:02 faasd openfaas:gateway[6351]: 2024/01/07 09:36:02 Forwarded [POST] to /system/scale-function/nodeinfo - [200] - 0.0204s

System services deployed:

CONTAINER       IMAGE                                      RUNTIME                  
gateway         ghcr.io/openfaas/gateway:0.27.2            io.containerd.runc.v2    
nats            docker.io/library/nats-streaming:0.25.5    io.containerd.runc.v2    
prometheus      docker.io/prom/prometheus:v2.47.0          io.containerd.runc.v2    
queue-worker    ghcr.io/openfaas/queue-worker:0.14.0       io.containerd.runc.v2 

from faasd.

jaydenrasmussen avatar jaydenrasmussen commented on July 24, 2024

After some further research I came across the following article which makes mention of adding faas-idler to the faasd docker-compose yaml to enable this behavior. Is it expected for users to do this to enable scale to zero? Both the blog post and the official documentation make it seem like this is out of the box functionality.

from faasd.

nitishkumar71 avatar nitishkumar71 commented on July 24, 2024

Yes, you are correct. fasad is never supposed to support scaling functionality.

You can use openfass pro or community edition for further use case.

from faasd.

jaydenrasmussen avatar jaydenrasmussen commented on July 24, 2024

If that's the case then why does the /system/scale-function endpoint exist?

from faasd.

nitishkumar71 avatar nitishkumar71 commented on July 24, 2024

I have been trying to debug it in my local. Yes it's not working as expected.
Although, we are sending replicas as 0 in request body as shown in below curl request
curl -v -X POST http://$FAASD_USER:$FAASD_PASS@$FAASD_GATEWAY:8080/system/scale-function/env-store-test \ -d '{"serviceName":"env-store-test", "replicas": 0}'

But in faasd logs received request have replica is 1 as shown below
Feb 18 20:00:39 faasd-test faasd[7170]: 2024/02/18 20:00:39 [Scale] request: {"serviceName":"env-store-test","replicas":1}

from faasd.

alexellis avatar alexellis commented on July 24, 2024

Hi, scale to zero isn't supported for the Community Edition of OpenFaaS, a commercial license is required for OpenFaaS Standard, which for faasd, we offer at a significant discount per installation vs. the Kubernetes pricing.

faas-idler is a commercial feature of OpenFaaS Standard.

Feel free to reach out.

Alex

from faasd.

alexellis avatar alexellis commented on July 24, 2024

/set title: Is Scale to Zero included in the Community Edition of OpenFaaS?

from faasd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.