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

Cache VMSS VM InstanceID lookups #2464

Merged
merged 5 commits into from
Sep 30, 2022
Merged

Cache VMSS VM InstanceID lookups #2464

merged 5 commits into from
Sep 30, 2022

Conversation

Porges
Copy link
Member

@Porges Porges commented Sep 29, 2022

This is a potentially expensive operation as we need to fetch every VM in the Scaleset to find the VMID we are looking for.

This should be safe to cache "forever" since the mapping will not change.

It seems like we should be storing the InstanceID instead of (as well as?) the VMID, but that is hard to change at the moment. Perhaps after C# port is completed.

@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2022

Codecov Report

Merging #2464 (12f67f7) into main (969701a) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2464      +/-   ##
==========================================
- Coverage   30.02%   29.99%   -0.03%     
==========================================
  Files         288      288              
  Lines       35338    35366      +28     
==========================================
  Hits        10609    10609              
- Misses      24729    24757      +28     
Impacted Files Coverage Δ
...piService/ApiService/Functions/AgentCanSchedule.cs 0.00% <ø> (ø)
...ApiService/ApiService/onefuzzlib/NodeOperations.cs 27.07% <0.00%> (ø)
...ApiService/ApiService/onefuzzlib/VmssOperations.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 Porges enabled auto-merge (squash) September 29, 2022 23:37
@Porges Porges force-pushed the cache-instanceid-lookup branch from fee934e to 7c64453 Compare September 29, 2022 23:37
@Porges Porges force-pushed the cache-instanceid-lookup branch from 7c64453 to 1c4c970 Compare September 29, 2022 23:40
@Porges Porges merged commit 4662df3 into main Sep 30, 2022
@Porges Porges deleted the cache-instanceid-lookup branch October 10, 2022 19:45
@ghost ghost locked as resolved and limited conversation to collaborators Nov 10, 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.

7 participants