Skip to content

Commit

Permalink
fix cold start time increase issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kinderyj authored and wangyj3 committed Aug 22, 2024
1 parent 5f5f6d8 commit bd35675
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/activator/net/revision_backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,11 @@ func (rw *revisionWatcher) checkDests(curDests, prevDests dests) {
if ok, err := rw.probeClusterIP(dest); err != nil {
rw.logger.Errorw("Failed to probe clusterIP "+dest, zap.Error(err))
} else if ok {
// We can reach here only iff pods are not successfully individually probed
// We can reach here only if pods are not successfully individually probed
// but ClusterIP conversely has been successfully probed.
rw.podsAddressable = false
if rw.meshMode == netcfg.MeshCompatibilityModeEnabled {
rw.podsAddressable = false
}
rw.logger.Debugf("ClusterIP is successfully probed: %s (ready backends: %d)", dest, len(curDests.ready))
rw.clusterIPHealthy = true
rw.healthyPods = nil
Expand Down

0 comments on commit bd35675

Please sign in to comment.