-
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
Fix aggressive VM calls for Azure VMSS #83102
Conversation
@feiskyer: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/priority critical-urgent |
/retest |
/test pull-kubernetes-e2e-aks-engine-azure |
e62c3a4
to
197892d
Compare
/test pull-kubernetes-e2e-aks-engine-azure |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, feiskyer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fix aggressive VM calls for Azure VMSS
Fix aggressive VM calls for Azure VMSS
Fix aggressive VM calls for Azure VMSS
Fix aggressive VM calls for Azure VMSS
Cherry pick of #83102: Fix aggressive VM calls for Azure VMSS.
Cherry pick of #83102: Fix aggressive VM calls for Azure VMSS.
Cherry pick of #83102: Fix aggressive VM calls for Azure VMSS.
Cherry pick of #83102: Fix aggressive VM calls for Azure VMSS.
@@ -86,8 +86,9 @@ func (ss *scaleSet) AttachDisk(isManagedDisk bool, diskName, diskURI string, nod | |||
defer cancel() | |||
|
|||
// Invalidate the cache right after updating | |||
key := buildVmssCacheKey(nodeResourceGroup, ss.makeVmssVMName(ssName, instanceID)) | |||
defer ss.vmssVMCache.Delete(key) | |||
if err = ss.deleteCacheForNode(vmName); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like I got the root cause why it's dirty cache only in vmss, we should use defer here @feiskyer
found another regression due to this PR: #69262 (comment), it's due to the getVMSS ttl changed from 1min to 10min, fortunately there is a refactor from 1.15.x, won't have that issue from 1.15.x |
What type of PR is this?
What this PR does / why we need it:
Fix aggressive VM calls for Azure VMSS by
Which issue(s) this PR fixes:
Fixes #82948
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/kind bug
/area provider/azure
/priority critial-urgent
/assign @andyzhangx