containerd / containerd/accelerated-container-image

Support flattened convert in userspace convertor

Open
#297 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
470
Forks
87
Avg merge
2d 21h
Merged PRs (30d)
5

Description

### What is the version of your Accelerated Container Image

_No response_

### What would you like to be added?

Support generating a single layer overlaybd image in userspace convertor

### Why is this needed for Accelerated Container Image?

Our production images have many layers (~70) and we're not using [`Layer/Manifest Deduplication`](https://github.com/containerd/accelerated-container-image/blob/main/docs/USERSPACE_CONVERTOR.md).

Sometimes we observe long latency during rpull, and the latency is proportional to the image layers. (We suspect it's due to network issue when containerd/overlaybd talks to cloud provider during rpull to get layer metadata).

Currently our mitigation is to first [flatten/squash](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_flatten.md) the original image into a single layer image, and then convert that single layer image. This solves the long rpull issue.

It would be great if the userspace convertor can provide a feature that generates a single-layer overlaybd image directly.

cc @shuaichang

### Are you willing to submit PRs to contribute to this feature?

- [ ] Yes, I am willing to implement it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.