• mattjmcnaughton's avatar
    `GetExternalMetricReplicas` ignores unready pods · d33494d4
    mattjmcnaughton authored
    Similar to the change we made for `GetObjectMetricReplicas` in the
    previous commit. Ensure that `GetExternalMetricReplicas` does not
    include unready pods when its determining how many replica it desires.
    Including unready pods can lead to over-scaling.
    
    We did not change the behavior of `GetExternalPerPodMetricReplicas`, as
    it is slightly less clear what is the desired behavior. We did make some
    small naming refactorings to this method, which will make it easier to
    ignore unready pods if we decide we want to.
    d33494d4
replica_calculator.go 15.3 KB