grafana / flagger-k6-webhook

Using k6 to do load testing of the canary before rolling out traffic
Apache License 2.0
24 stars 9 forks source link

fix: Register processes for cleanup #153

Closed zerok closed 2 months ago

zerok commented 3 months ago

The idea here is to register k6 TestRuns, for which we do not want to wait for a result, with a cleanup routine so that no zombie processes stay around.

Right now the number of handler go-routines (those that wait for the TestRun processes) are limited in number. If that limit is reached, then the HTTP handler becomes blocking.

### Tasks
- [x] Make go-routine limit configurable
- [x] Test-cases for the process handlers

Resolves #152