backend/http: implement retries for the http backend (#19702)

Fixes #19619
This commit is contained in:
Ivan Kalita
2019-06-05 23:12:07 +03:00
committed by Kristin Laemmert
parent 127cbeeda2
commit 5b6b1663ef
6 changed files with 86 additions and 13 deletions

View File

@@ -60,3 +60,8 @@ The following configuration options are supported:
* `password` - (Optional) The password for HTTP basic authentication
* `skip_cert_verification` - (Optional) Whether to skip TLS verification.
Defaults to `false`.
* `retry_max` (Optional) The number of HTTP request retries. Defaults to `2`.
* `retry_wait_min` (Optional) The minimum time in seconds to wait between HTTP request attempts.
Defaults to `1`.
* `retry_wait_max` (Optional) The maximum time in seconds to wait between HTTP request attempts.
Defaults to `30`.