Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: drop unpacked layers from containerd image store #4653

Merged
merged 1 commit into from Dec 6, 2021

Conversation

smira
Copy link
Member

@smira smira commented Dec 6, 2021

See containerd/cri#1543

Fixes #4274

Fix is applied on two levels:

  • for Talos-initiated pulls, update API call
  • for Kubernetes-initiated pulls, update CRI plugin config

Comparison of /var usage before/after, as reported by
talosctl mounts (in GiB):

before after
controlplane 1.98 1.74
worker 1.17 1.01

(this is on freshly bootstrapped but otherwise empty cluster)

It's hard to measure effect on pulls to system containerd, like
installer image, as it's ephemeral, but it should also reduce space
usage in tmpfs.

Also fixes output of talosctl mounts.

Signed-off-by: Andrey Smirnov andrey.smirnov@talos-systems.com


This change is Reviewable

@smira smira added this to the v0.14 milestone Dec 6, 2021
See containerd/cri#1543

Fixes siderolabs#4274

Fix is applied on two levels:

* for Talos-initiated pulls, update API call
* for Kubernetes-initiated pulls, update CRI plugin config

Comparison of `/var` usage before/after, as reported by
`talosctl mounts` (in GiB):

|              | before | after |
|--------------|:------:|------:|
| controlplane |  1.98  |  1.74 |
| worker       |  1.17  |  1.01 |

It's hard to measure effect on pulls to system containerd, like
`installer` image, as it's ephemeral, but it should also reduce space
usage in `tmpfs`.

Also fixes output of `talosctl mounts`.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
@smira
Copy link
Member Author

smira commented Dec 6, 2021

/m --ff

@talos-bot talos-bot merged commit 8f3e1a4 into siderolabs:master Dec 6, 2021
frezbo pushed a commit to frezbo/talos that referenced this pull request Dec 7, 2021
Fixes siderolabs#4653

This fixes an issue when `etcd` get stuck in `Pre` state so that even
`bootstrap` request doesn't kill it. This looks like a cluster which
fails to bootstrap itself and get stuck on reboot.

Even though `Watch()` aborts on cancel, channel receive will block
forever as no events are delivered.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade instance memory issue
3 participants