-
Notifications
You must be signed in to change notification settings - Fork 90
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
When pulling images check for stale cached images #624
Conversation
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 good! however, I am afraid that the image check check would slow down the system if used by default. @biecho could you please measure the added overhead? you can use timestamps printed within log messages, we just need an estimate.
Done |
@biecho great! could you please publish the measurements in this PR? also, could you please take a look at the test failures (must be very simple), particularly vHive unit tests/ [misc, taps, ...]. The failure is likely due to the repo migration last week. I would really appreciate if you could help fix the problems. |
Sure I'll publish the measurements as soon as possible. Regarding the vHive unit/tests, I see the following in the logs:
I guess this is related to what @EstellaPaula posted on elements. |
e1bd858
to
77cbcba
Compare
} | ||
|
||
imageUrl := getImageURL(imageName) | ||
if !found || imageIsOutdated(image, imageUrl) { |
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.
Can you check how image staleness is checked in containerd
? Clone the containerd
repo and have a look into ContainerCreate stage of the sandbox creation in code, as well as in the logs. Containerd is already running on the worker node and you can check the performance of ContainerCreate phase in containerd logs. It should be creating queue-proxy container. Look into Estella's writing to see how to find logs.
c1cc5ec
to
b60e489
Compare
@cvetkovic do you guys still need this patch? if so, can someone take it over? |
Summary
When vHive does pull images, it must check in its local cache if an image is stale. vHive should do this without pulling the whole image again.
skopeo
is used to only inspect the metadata from a remote image.