Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexellis/go-long
OpenFaaS sleep functions for testing timeouts / auto-scaling.
https://github.com/alexellis/go-long
Last synced: 18 days ago
JSON representation
OpenFaaS sleep functions for testing timeouts / auto-scaling.
- Host: GitHub
- URL: https://github.com/alexellis/go-long
- Owner: alexellis
- Created: 2019-12-16T21:34:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T08:12:31.000Z (4 months ago)
- Last Synced: 2024-10-12T18:53:05.891Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```