• Joseph Burnett's avatar
    There are various reasons that the HPA will decide not the change the · d881d48b
    Joseph Burnett authored
    current scale. Two important ones are when missing metrics might
    change the direction of scaling, and when the recommended scale is
    within tolerance of the current scale.
    
    The way that ReplicaCalculator signals it's desire to not change the
    current scale is by returning the current scale. However the current
    scale is from scale.Status.Replicas and can be larger than
    scale.Spec.Replicas (e.g. during Deployment rollout with configured
    surge). This causes a positive feedback loop because
    scale.Status.Replicas is written back into scale.Spec.Replicas,
    further increasing the current scale.
    
    This PR fixes the feedback loop by plumbing the replica count from
    spec through horizontal.go and replica_calculator.go so the calculator
    can punt with the right value.
    d881d48b
Name
Last commit
Last update
..
api Loading commit data...
apis Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
scheduler Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch/json Loading commit data...
windows/service Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...