Closed wimdecorte closed 2 years ago
Hi @wimdecorte thanks for the one-time sponsorship.
This behaviour is working as designed, upon reboot, all functions are scaled to zero and will be scaled up in time for the first invocation that they receive.
This should not cause you any issues that I'm aware of? Have you tried visiting the URL as displayed in the URL field in the UI?
Some people have added a /health/
endpoint to their functions and invoke them with a cron task of @reboot /home/pi/warm-up-functions.sh
Alex
/set title: Functions are scaled to zero after a reboot
Hello @alexellis, I have an error 500 Can't reach service for: my-fun.namespace.
on first function's call when they are scaled to 0, is this normal ?
I understand why we scale to zero at reboot, but a 500 to the end user is a problem for me.
What I would have expected is to scale up the function to one and then respond.
Thanks !
Due diligence
My actions before raising this issue
Before you ask for help or support, make sure that you've consulted the manual for faasd. We can't answer questions that are already covered by the manual. Done. Bought the book, read the deployment and troubleshooting sections, inspected the various logs.
Why do you need this?
I want to make sure my functions are available when the RPI4 boots.
Expected Behaviour
On startup, the functions should go to the ready state.
Current Behaviour
Instead they remain "not ready" until I remove them and redeploy them
Are you a GitHub Sponsor (Yes/No?)
One-time $65 contribution.
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
N/A
Which Solution Do You Recommend?
N/A
Steps to Reproduce (for bugs)
Your Environment
containerd -version ubuntu@u22faasd:~$ sudo containerd -version containerd github.com/containerd/containerd v1.6.4 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
uname -a ubuntu@u22faasd:~$ uname -a Linux u22faasd 5.15.0-1013-raspi #15-Ubuntu SMP PREEMPT Mon Aug 8 06:33:06 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
cat /etc/os-release ubuntu@u22faasd:~$ cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.1 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.1 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
faasd version ubuntu@u22faasd:~$ faasd version
/ _| _ _| | | | / ` |/ ` / |/ ` | | | (| | (| _ \ (| | || _,|_,_|/\,|
faasd version: 0.16.2 commit: b7be42e5ec47bc9a52eb3459b0f3084d61c55e58