-
du -sh ./* why io.containerd.runtime.v2.task so large ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
The rootfs mount point is at state dir so that it looks huge. But the data is actually at root dir. |
Beta Was this translation helpful? Give feedback.
-
From the documentation, we can see that this directory mainly stores temporary files. Does this directory have parameters that can adjust gc? pod in the nodes in the cluster were evicted because the directory was too large |
Beta Was this translation helpful? Give feedback.
-
In general, io.containerd.runtime.v2.task is not too large. |
Beta Was this translation helpful? Give feedback.
-
The state dir is used to store temporary files, for instance, the bundle dir of k8s pod's container in In containerd design, the container bundle dir includes the mount point of rootfs. For example, the container
The mount point is just view of the container's rootfs filesystem, which doesn't means that it contains the real data in here. When you use
If your container doesn't write any data but the image is huge, the result of So I want to say In containerd, the container storage is managed by snapshot and stored in |
Beta Was this translation helpful? Give feedback.
-
so the end result is to expand the divergence where the state directory is,got it ! |
Beta Was this translation helpful? Give feedback.
-
@sunnoy @fuweid In /etc/containerd/config.toml /run/containerd/io.containerd.runtime.v2.task/k8s.io/140bd30302afe355101318cdb2e52a6acfbdef5907ad6af3c31c35011a375437/rootfs |
Beta Was this translation helpful? Give feedback.
The rootfs mount point is at state dir so that it looks huge. But the data is actually at root dir.