grafana / synthetic-monitoring-agent

Synthetic Monitoring Agent
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
Apache License 2.0
155 stars 20 forks source link

WIP: Implement retries for remote k6 runners #724

Open roobre opened 3 weeks ago

roobre commented 3 weeks ago

This PR implements agent retries, which cause the agent to retry run requests if they failed due to infrastructural reasons. This pr does not cause the agent to retry scripts that were executed but returned an error.

Retries are performed with linear backoff as long as the request timeout of the script wouldn't allow it to finish after the next execution is due.

This additionally exposes request timeout to HTTP runners, so these can make smarter decisions about when to cancel a run.