openfaas / faasd

A lightweight & portable faas engine
https://store.openfaas.com/l/serverless-for-everyone-else
MIT License
2.98k stars 214 forks source link

Is Scale to Zero included in faasd? #310

Closed shivabohemian closed 1 year ago

shivabohemian commented 1 year ago

Why do you need this?

It's necessary to scale to zero when there's no traffic in a cost sensitive project!

Who is this for?

What company is this for? Are you listed in the ADOPTERS.md file?

Expected Behaviour

For example, when I deploy with label "com.openfaas.scale.zero=true, com.openfaas.scale.zero-duration=1m", it should scale to zero.

Current Behaviour

Always one replica.

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

List All Possible Solutions and Workarounds

Which Solution Do You Recommend?

Your Environment

go version
go version go1.19.3 linux/arm64

containerd -version
containerd github.com/containerd/containerd v1.6.8

uname -a
Linux 4.19.232  aarch64 GNU/Linux

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

faasd version
0.15.0-rc3
alexellis commented 1 year ago

Hi @shivabohemian thanks for your interest in OpenFaaS.

Scale to Zero is a Pro feature for customers only.

https://www.openfaas.com/pricing/

Alex

alexellis commented 1 year ago

/set title: Is Scale to Zero included in faasd?