Closed sargun closed 5 years ago
The moves the concurrency limiter code from this project to faas-middleware.
The code is shared between the classic watchdog, and this watchdog, so it doesn't make sense to copy & paste.
Tested with a forking backend:
#!/bin/bash sleep 1 echo here
fprocess=./test.sh max_inflight=1 ./of-watchdog
and doing: for i in $(seq 5); do curl -v -s http://localhost:8080/ & done
for i in $(seq 5); do curl -v -s http://localhost:8080/ & done
And seeing the concurrency limiter kick in.
git commit -s
Thank you for this PR. :+1:
Description
The moves the concurrency limiter code from this project to faas-middleware.
Motivation and Context
The code is shared between the classic watchdog, and this watchdog, so it doesn't make sense to copy & paste.
How Has This Been Tested?
Tested with a forking backend:
fprocess=./test.sh max_inflight=1 ./of-watchdog
and doing:
for i in $(seq 5); do curl -v -s http://localhost:8080/ & done
And seeing the concurrency limiter kick in.
Checklist:
git commit -s