Add Concurrency Limiter
This enables limiting concurrency. It is a naive approach which will reject requests as soon as they exceed the maximum number of in-flight requests. It is a port of the following PR from the new watchdog code: https://github.com/openfaas-incubator/of-watchdog/pull/54 Signed-off-by:Sargun Dhillon <sargun@sargun.me> Signed-off-by:
Lucas Roesler <roesler.lucas@gmail.com>
Showing
- watchdog/Gopkg.lock 9 additions, 0 deletionswatchdog/Gopkg.lock
- watchdog/README.md 1 addition, 0 deletionswatchdog/README.md
- watchdog/handler.go 6 additions, 3 deletionswatchdog/handler.go
- watchdog/metrics/metrics.go 1 addition, 1 deletionwatchdog/metrics/metrics.go
- watchdog/readconfig.go 7 additions, 0 deletionswatchdog/readconfig.go
- watchdog/vendor/github.com/openfaas/faas-middleware/LICENSE 21 additions, 0 deletionswatchdog/vendor/github.com/openfaas/faas-middleware/LICENSE
- watchdog/vendor/github.com/openfaas/faas-middleware/concurrency-limiter/concurrency_limiter.go 67 additions, 0 deletions...aas-middleware/concurrency-limiter/concurrency_limiter.go
Please register or sign in to comment