【发布时间】:2021-10-26 22:21:26
【问题描述】:
我正在尝试了解活性探测的重试行为,从documentation 不清楚。
我将举例说明。考虑以下活性探测规范
periodSeconds: 60
timeoutSeconds: 15
failureThreshold: 3
假设服务已关闭
预期会出现哪种行为?
the probe kicks off at 0s
sees a failure at 15s, (due to timeoutSeconds 15)
retry1 at ~15s, fail at ~30s and retry2 at ~30s, fail at ~45 (retry immediately after failure)
ultimately restart pod at ~45s (due to failureThreshold 3)
或
the probe kicks off at 0s
sees a failure at 15s, (due to timeoutSeconds 15)
retry1 at ~60s, fail at ~75s and retry2 at ~120s, fail at ~135s (due to periodSeconds 60, doesnt really do retry after a failure)
ultimately restart pod at ~180s (due to failureThreshold 3)
【问题讨论】:
标签: kubernetes google-kubernetes-engine livenessprobe