Skip to content

Commit 977dbf4

Browse files
committed
containerd-2.1: add configurable concurrent-download-chunk-size setting
Signed-off-by: Kyle Sessions <[email protected]>
1 parent ba89522 commit 977dbf4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/containerd-2.1/containerd-config-toml_k8s_containerd_sock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ address = "/run/containerd/containerd.sock"
2626
{{#if settings.container-runtime.max-concurrent-downloads}}
2727
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
2828
{{/if}}
29-
concurrent_layer_fetch_buffer = 8388608
29+
concurrent_layer_fetch_buffer = {{default 8388608 settings.container-runtime.concurrent-download-chunk-size}}
3030
use_local_image_pull = false
3131

3232
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
@@ -50,7 +50,7 @@ enable_unprivileged_icmp = {{settings.container-runtime.enable-unprivileged-icmp
5050
{{#if settings.container-runtime.max-concurrent-downloads}}
5151
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
5252
{{/if}}
53-
concurrent_layer_fetch_buffer = 8388608
53+
concurrent_layer_fetch_buffer = {{default 8388608 settings.container-runtime.concurrent-download-chunk-size}}
5454

5555
[[plugins."io.containerd.transfer.v1.local".unpack_config]]
5656
snapshotter = "overlayfs"

packages/containerd-2.1/containerd-config-toml_k8s_nvidia_containerd_sock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ address = "/run/containerd/containerd.sock"
2626
{{#if settings.container-runtime.max-concurrent-downloads}}
2727
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
2828
{{/if}}
29-
concurrent_layer_fetch_buffer = 8388608
29+
concurrent_layer_fetch_buffer = {{default 8388608 settings.container-runtime.concurrent-download-chunk-size}}
3030
use_local_image_pull = false
3131

3232
# Pause container image is specified here, shares the same image as kubelet's pod-infra-container-image
@@ -50,7 +50,7 @@ enable_unprivileged_icmp = {{settings.container-runtime.enable-unprivileged-icmp
5050
{{#if settings.container-runtime.max-concurrent-downloads}}
5151
max_concurrent_downloads = {{settings.container-runtime.max-concurrent-downloads}}
5252
{{/if}}
53-
concurrent_layer_fetch_buffer = 8388608
53+
concurrent_layer_fetch_buffer = {{default 8388608 settings.container-runtime.concurrent-download-chunk-size}}
5454

5555
[[plugins."io.containerd.transfer.v1.local".unpack_config]]
5656
snapshotter = "overlayfs"

0 commit comments

Comments
 (0)