Comments (7)
I wanted to leave this in case someone else gets here attempting to use long function execution specifically with faasd (which I love). In addition to adding the *_timeout values to the /var/lib/faasd/docker-compose.yaml and the function's yaml file, I had to create the following file:
/etc/systemd/system/faasd-provider.service.d/override.conf
with the following contents:
[Service]
Environment="service_timeout=5m"
to bump the gateway's timeout to 5 minutes. I am happy to hear if there is a better/easier way (I only tested on ubuntu 20.04), but if not, I hope this helps others.
from faasd.
This might be a red herring since I may have been invoking without a POST method. Closing for the time being. We should look at changing the timeout to being dynamic though.
from faasd.
Reproduced accidentally...
Turned out that whatever I set timeout was hard set for 10sec. Changing read/write timeout alone did not help (as per OpenFaaS Troubleshooting) but adding the following to stack.yml
, shamelessly taken from go-long example solved it :-)
environment:
write_timeout: 3m
read_timeout: 3m
exec_timeout: 3m
handler_wait_duration: 60s
from faasd.
This issue doesn't apply anymore given the configuration with the compose file.
The timeouts need to "agree" between the function and the core services, there is a new tutorial for this: https://docs.openfaas.com/tutorials/expanded-timeouts/
from faasd.
I've modified the var/lib/faasd/docker-compose.yaml and also added docker-compose.yaml to my function's root folder. However the timeout is still hard-fixed and unable to see any change. I would really appreciate it if someone can provide a step-by-step guide to modify the timeout!
from faasd.
Hey @ikhyunAn this is all covered in the eBook. I'd suggest you buy a copy.
https://store.openfaas.com/l/serverless-for-everyone-else
Alex
from faasd.
/lock: resolved in documentation
from faasd.
Related Issues (20)
- Issues with rust HOT 1
- Access host's network from a docker-compose.yaml's service HOT 5
- Support request for Docker installed with faasd (invalid) HOT 5
- Can docker-compose be used with faasd? HOT 8
- Support question on MQTT HOT 4
- Executing install.sh fails because of wrong version HOT 1
- Grafana installation - volume permissions HOT 2
- Multi-node support HOT 3
- Support request for monitoring with cAdvisor HOT 6
- NATS JetStream support HOT 2
- disable printing function invocation duration
- Terrraform install fails on macOS Sonoma HOT 2
- faasd and faasd provider in different ports HOT 1
- faasd namespace support openfaas=true instead of openfaas=1
- Is Scale to Zero included in the Community Edition of OpenFaaS? HOT 8
- support faasd get HOT 1
- Postgresql database connection problem HOT 16
- MemoryLimit needs changing to: MemoryMax
- Deprecate 32-bit Arm support HOT 1
- Additional property postgresql is not allowed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faasd.