Repository navigation
Conversation
…eck_after_cluster_warming is enabled Signed-off-by: hai.yue <[email protected]>
Signed-off-by: hai.yue <[email protected]>
|
/retest |
adisuissa
left a comment
There was a problem hiding this comment.
Thanks!
Can you clarify what is the expected behavior in the case where initial-fetch-timeout is 0, no EDS response was received for that cluster (the cluster is still warming), and there is a health-check request?
My understanding is that the health-check should just fail, as with any cluster that is in a warming state, correct?
Please add regression tests to make sure the correct behavior is maintained
/wait
with initialFetchTimeout: 0s, the cluster stays in warming state until EDS delivers endpoints. and there is a feature "envoy.reloadable_features.health_check_after_cluster_warming" declared with RUNTIME_GUARD which means it is enabled by default. the feature "envoy.reloadable_features.health_check_after_cluster_warming" will be used as gate in setHealthChecker function which is called during cluster setup. If this feature off, the health checker will be start immediately. so the health check probes didn't start until onInitDone(), which was blocked by 'initialFetchTimeout: 0s'. since no timer fires onConfigUpdateFailed to exits init warming. I will add a regression test case soon. |
Signed-off-by: hai.yue <[email protected]>
… is more readable for a test case Signed-off-by: hai.yue <[email protected]>
|
/retest |
I'm trying to understand the issue a bit deeper. |
It is not to defer. The fix added a bypass in ClusterImplBase::setHealthChecker(): |
Would it be better marking the cluster as not-healthy, and not start a health-checker in this case of a warming cluster? |
during warming, EDS hasn't delivered any endpoints. so there are zero hosts to mark unhealthy. the health checker would have nothing to probe regardless. |
|
ping @adisuissa |
1 similar comment
|
ping @adisuissa |
|
Sorry, I'm still trying to understand what is the actual problem. When the initial-fetch-timeout is set to 0, Envoy is waiting for the cluster's endpoints before marking the cluster as active. This is WAI and there isn't a problem there. In other words the cluster is not ready and should not be used. |
|
@yuehaii can you address @adisuissa question? |
I set EDS initialFetchTimeout: 0s in envoy gateway. After that, all those conformance and e2e test cases failure have the same pattern. they wait for health check activity to appear (in prometheus or loki) but the data never shows up within the timeout. I was thinking the issue might be introduced by health_check_after_cluster_warming gate. l need to confirm more details. /wait |
|
the blocking issue was caused by SDS InitialFetchTimeout: 0. the fix is currently under review. convert this pr to draft temporary. |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Commit Message:
when a cluster is configured with EDS and initialFetchTimeout: 0s, the cluster stays in warming state indefinitely until EDS delivers its first response, no timeout fires to unblock it.
Additional Description:
added a bypass in ClusterImplBase::setHealthChecker(). when health_check_after_cluster_warming is enabled, health checks are still started immediately if both conditions hold:
Risk Level:
Low
Testing:
Test cases been added.
Release Notes:
fix health check probes being blocked indefinitely on EDS clusters configured with initialFetchTimeout: 0s. With health_check_after_cluster_warming enabled(default), health checks are no longer deferred when EDS warming has no timeout deadline.
Fixes #46666