This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Auto-restart functions #69
Comments
Hi thanks for your interest Unfortunately unless you fill out the issue template including "Steps to Reproduce", then we're unlikely to be able to help. Please could you do that? Thanks |
Hi @alexellis sorry about that, I forgot. I fixed it now |
More details: I spotted that for those containers that fit the problem have the following error in
|
Hi @alexellis I did some more investigation. I managed to reproduce it with a function which was working in the afternoon but not in the morning. Looks like the swarm managed couldn't recover the container after shutting down my machine. Not sure if you have any input on that, but I don't see any other explanation. Thanks, |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
My actions before raising this issue
Hi,
I have written a few functions in openfaas. Some of those are not used very frequently. This morning I tried to send a request to a function that was not touched (HTTP request/build/deploy) for a few weeks.
The function never brought up.
Some facts that came from my investigation:
The
docker service ps
command returns a shutdown state.docker service inspect
returns a MaxAttempts of 5 in the RestartPolicy, which might be related or not.In the meantime, as we are speaking about local environments, I have shut down my machine every night, which I suppose is affecting the issue one way or another.
Are any of those related? What about the read_timeout/write_timeout settings?
Expected Behaviour
The function to recover as a reaction to the invoke/http request, of course with some expected delay.
Of course, it is all going back to normal if I do a build-deploy again from the faas-cli (new function with the same contents like the old one). But of course I would like this to happen without any manual intervention.
Current Behaviour
The function is not recovering from down state.
Possible Solution
Steps to Reproduce (for bugs)
return {"hello": "world"}
would suffice.Context
I understand this is a common concern, so I don't think this is a bug, rather a lack of my understanding or documentation.
So my questions are:
Your Environment
faas-cli version
):docker version
(e.g. Docker 17.0.05 ):Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Docker Swarm
Operating System and version (e.g. Linux, Windows, MacOS):
Linux
Code example or link to GitHub repo or gist to reproduce problem:
N/A
Other diagnostic information / logs from troubleshooting guide
The service shows no logs.
Thanks,
P.
The text was updated successfully, but these errors were encountered: