-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPA uses wrong count to calculate target replcias #34821
Comments
If this is urgent and we need to fix it on 1.4, I can prepare a small, separate PR with the fix. PR #33593 is huge and will not be cherry-picked to 1.4. |
#33593 currently experiences this as well, I think, but I'm trying to figure out the right way to solve it. Talked to @decarr about lifecycle a bit. think it's safe to lump "phase: running, status: unready" together with "phase: pending", and write |
cc/ @lavalamp for the HPA problem we saw today |
@DirectXMan12 and I chatted on this today, I think we should split pods into two states based on the pod condition |
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
is this sorted now ? |
it should have been fixed as part of #33593 |
Fixed by #33593. |
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
HPA: fixed wrong count for target replicas calculations (kubernetes#34821).
The current formula looks like:
If currentReplicas doesn't match to the number of replicas used to calculate utilization then the result can be way bigger than necessary. For example if there are 10 pods created in apiserver (= current replicas) but only 1 is scheduled and it is running at its last legs (300% of the target utilization) then the target will grow to 30 pods.
20 (30-10) pods get created and are not scheduled and will increase the replicas even further.
Solly you did some fixes in this area: #33593.
Will this PR fix the above scenario?
cc: @DirectXMan12 @jszczepkowski @fgrzadkowski @davidopp
The text was updated successfully, but these errors were encountered: