Skip to content

OpenFaaS sleep functions for testing timeouts / auto-scaling.

Notifications You must be signed in to change notification settings

alexellis/go-long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-long

Custom functions for testing timeouts in OpenFaaS

Example for node18:

time curl -s -i http://127.0.0.1:8080/function/node18-sleep \
-H "x-duration-ms: 120000"

Example for Go:

Edit handler_wait_duration in stack.yml to a Go duration i.e. 120s, then:

time curl -s -i http://127.0.0.1:8080/function/go-long

Example for Python:

Edit handler_wait_duration_secs to a number of seconds in stack.yml, i.e. 120 then:

time curl -s -i http://127.0.0.1:8080/function/py-long

About

OpenFaaS sleep functions for testing timeouts / auto-scaling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages