Currently, CRI plugin passes each layer digest to remote snapshotters sequentially, which leads to sequential snapshots preparation. But it costs extra time especially for remote snapshotters which need to connect to the remote backend store (e.g. registries) for checking the snapshot existence on each preparation. This commit solves this problem by introducing new label `containerd.io/snapshot/cri.chain` for passing all layer digests in an image to snapshotters and by allowing them to prepare these snapshots in parallel, which leads to speed up the preparation. Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
18 KiB
18 KiB