[release/1.4] Improve image pull performance from http 1.1 container registries#4751
Conversation
|
Hi @amrmahdi. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
|
backport from #4653 |
|
Build succeeded.
|
I think we generally cherry-pick the commit itself, not the merge commit, so in this case it would be the three commits from the PR; 289130b, f6834d4, and b81917e Could you re-do the cherry-pick with those?; |
Private registries that does not support http 2.0 such as Azure Container Registry streams back content in a max of 16KB chunks (max TLS record size). The small chunks introduce an overhead when copying the layers to the content store sine each chunk incurs the overhead of grpc message that has to be sent to the content store. This change reduces this overhead by buffering the chunks into 1MB chunks and only then writes a message to the content store. Below is a per comparsion between the 2 approaches using a couple of large images that are being pulled from the docker hub (http 2.0) and a private Azure CR (http 1.1) in seconds. image | Buffered copy | master ------- |---------------|---------- docker.io/pytorch/pytorch:latest | 55.63 | 58.33 docker.io/nvidia/cuda:latest | 72.05 | 75.98 containerdpulltest.azurecr.io/pytorch/pytorch:latest | 61.45 | 77.1 containerdpulltest.azurecr.io/nvidia/cuda:latest | 77.13 | 85.47 Signed-off-by: Amr Mahdi <[email protected]> (cherry picked from commit 289130b) Signed-off-by: Amr Mahdi <[email protected]>
Signed-off-by: Amr Mahdi <[email protected]> (cherry picked from commit f6834d4) Signed-off-by: Amr Mahdi <[email protected]>
Signed-off-by: Amr Mahdi <[email protected]> (cherry picked from commit b81917e) Signed-off-by: Amr Mahdi <[email protected]>
6d65464 to
5618423
Compare
|
Build succeeded.
|
|
Thanks! |
|
Thanks @amrmahdi ! |
Improve image pull performance from http 1.1 container registries
(cherry picked from commit cc3785c)
Signed-off-by: Amr Mahdi [email protected]