RetryParams min_retries 的目的是什么?

What's the purpose of min_retries for RetryParams?

在 RetryParams 文档中,有 min_retries 和 max_retries 参数。我可以理解 max_retries 参数,但不确定 min_retries 有什么意义。文档 (https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/retryparams_class) 显示以下内容:

min_retries
The minimum number of times to retry.
max_retries
The maximum number of times to retry. Set this value to 0 if you don't want any retries.

如果我将max_retries设置为10,我希望如果一个连接反复失败,它最多尝试10次。为什么需要 min_retries 参数?什么时候开始发挥作用?

来自该文档页面:

max_retry_period
The maximum number of seconds that can be spent on all retries of a given request. Retry stops when this period passed AND min_retries has been attempted.

来自appengine-docs

"[..] 这将继续进行,直到请求成功,进行了 retryMaxAttempts, 或两者 retryMinAttempts 都进行了 totalRetryPeriodMillis已经过去了。[..]"

用我自己的话说:您的请求在失败之前需要花费未知的时间,您可以使用两个参数来限制 and/or 重复请求的总时间,无论达到多少第一的。 假设您想确保(重复)请求不会超过 10 秒,但您希望在任何情况下至少有 2 次重复请求,即使在这种情况下需要超过 10 秒。