Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Only fetch VM InstanceView data when required #2506

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

Porges
Copy link
Member

@Porges Porges commented Oct 11, 2022

Fetching the InstanceView data for a VM is considered a “high-cost” operation by VMSS and contributes to throttling. In most cases we do not need this data, so split the GetVm method into two versions, one that fetches the InstanceView data and one that doesn’t.

We only need InstanceView data during VM provisioning failures, to see what went wrong.

@Porges Porges force-pushed the instanceview-only-when-needed branch from 5255e0f to b165fd8 Compare October 11, 2022 22:08
@Porges
Copy link
Member Author

Porges commented Oct 11, 2022

Validating with check-pr.

@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2022

Codecov Report

Merging #2506 (667d7d4) into main (7596cf4) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2506      +/-   ##
==========================================
- Coverage   29.99%   29.97%   -0.02%     
==========================================
  Files         289      289              
  Lines       35391    35409      +18     
==========================================
  Hits        10615    10615              
- Misses      24776    24794      +18     
Impacted Files Coverage Δ
...piService/ApiService/onefuzzlib/ProxyOperations.cs 0.00% <0.00%> (ø)
...piService/ApiService/onefuzzlib/ReproOperations.cs 0.00% <0.00%> (ø)
...c/ApiService/ApiService/onefuzzlib/VmOperations.cs 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Porges
Copy link
Member Author

Porges commented Oct 12, 2022

Had some problems with the run but I don't believe they are due to this change.

@Porges Porges merged commit 0fab487 into main Oct 12, 2022
@Porges Porges deleted the instanceview-only-when-needed branch October 12, 2022 02:34
@ghost ghost locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants