Load testing: synthetic VMs, multiple worker support and Grafana k6 test (#389)

* Load testing: synthetic VMs, multiple worker support and Grafana k6 test

* echoserver: prevent fallthrough when Accept() fails

* Move default local-dev context logic to CreateDevController()

* Synthetic: add a random delay to startup script echoing
This commit is contained in:
Nikolay Edigaryev
2026-01-28 10:54:55 +01:00
committed by GitHub
parent 6fe523ef69
commit 7775515a73
20 changed files with 832 additions and 183 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func (controller *Controller) createWorker(ctx *gin.Context) responder.Responder
return responder.Code(http.StatusInternalServerError)
}
if uint(len(workers)+1) > controller.maxWorkersPerLicense {
if !controller.synthetic && uint(len(workers)+1) > controller.maxWorkersPerLicense {
return responder.JSON(http.StatusConflict, NewErrorResponse("cannot register a new worker "+
"because the license capacity of %d workers has been reached, "+
"consider upgrading at https://tart.run/licensing/", controller.maxWorkersPerLicense))