GithubHelp home page GithubHelp logo

Comments (7)

dsrowell avatar dsrowell commented on July 20, 2024 1

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.

alexellis avatar alexellis commented on July 20, 2024

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.

tmiklas avatar tmiklas commented on July 20, 2024

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.

alexellis avatar alexellis commented on July 20, 2024

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.

ikhyunAn avatar ikhyunAn commented on July 20, 2024

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.

alexellis avatar alexellis commented on July 20, 2024

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.

alexellis avatar alexellis commented on July 20, 2024

/lock: resolved in documentation

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.