Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This ensured that access to replicas during scale down operations were never stale by accessing the API server #3104. This honoured that behaviour while moving to unstructured client #3312. This regressed that behaviour while trying to reduce the API server load #4443. This put back the never stale replicas behaviour at the cost of loading back the API server #4634. Currently on e.g a 48 minutes cluster it does 1.4k get request to the scale subresource. This PR tries to satisfy both non stale replicas during scale down and prevent the API server from being overloaded. To achieve that it lets targetSize which is called on every autoscaling cluster state loop from come from cache. Also note that the scale down implementation has changed https://github.com/kubernetes/autoscaler/commits/master/cluster-autoscaler/core/scaledown.
- Loading branch information