Skip to content
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

Azure: effectively cache instance-types SKUs #5047

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

bpineau
Copy link
Contributor

@bpineau bpineau commented Jul 25, 2022

The skewer library's cache is re-created at every call, which causes pressure on Azure API, and slows down the cluster-autoscaler startup time by two minutes on a relatively small test cluster (120 nodes, 300 VMSS).

This was also hitting the API twice on cache miss to look for non-promo instance types, even when the instance name doesn't ends with "_Promo".

SKU API call rate before/after:
image

The skewer's library cache is re-created at every call, which causes
pressure on Azure API, and slows down the cluster-autoscaler startup
time by two minutes on my small (120 nodes, 300 VMSS) test cluster.

This was hitting the API twice on cache miss to look for non-promo
instance types (even when the instance name doesn't ends with "_Promo").
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 25, 2022
@k8s-ci-robot k8s-ci-robot requested review from marwanad and nilo19 July 25, 2022 14:41
@mwielgus
Copy link
Contributor

cc: @feiskyer @nilo19 @marwanad

@mwielgus mwielgus requested a review from feiskyer August 10, 2022 11:51
@mwielgus mwielgus added the area/provider/azure Issues or PRs related to azure provider label Aug 10, 2022
Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 11, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bpineau, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 11, 2022
@k8s-ci-robot k8s-ci-robot merged commit bb8e41f into kubernetes:master Aug 11, 2022
@bpineau bpineau deleted the azure-cache-sku branch August 16, 2022 17:35
navinjoy pushed a commit to navinjoy/autoscaler that referenced this pull request Oct 26, 2022
Azure: effectively cache instance-types SKUs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cluster-autoscaler area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants