moby/container
Cory Snider 97d32bb7d7 daemon: stop checkpointing health probes to disk
The health status and probe log of containers are not mission-criticial
data which must survive a crash. It is not worth prematrely wearing out
consumer-grade flash storage by overwriting and fsync()ing the container
config on after every probe. Update only the live Container object and
the ViewDB replica on every container health probe instead. It will
eventually get checkpointed along with some other state (or config)
change. Running containers will not be checkpointed on daemon shutdown
when live-restore is enabled, but it does not matter: the health status
and probe log will be zeroed out when the daemon starts back up.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-01-16 14:09:40 -05:00
..
stream migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
archive_windows.go pkg/system: move CheckSystemDriveAndRemoveDriveLetter to pkg/archive 2022-11-29 17:07:48 +01:00
attach_context.go container: internalize InitAttachContext 2023-11-30 15:26:53 +01:00
container.go daemon: stop checkpointing health probes to disk 2024-01-16 14:09:40 -05:00
container_unit_test.go container: StopSignal(): return syscall.Signal 2022-05-05 00:53:53 +02:00
container_unix.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
container_windows.go api/types/events: define "Action" type and consts 2023-08-29 00:38:08 +02:00
env.go Use strings.Index instead of strings.Split 2020-04-24 11:10:13 -07:00
env_test.go Use strings.Index instead of strings.Split 2020-04-24 11:10:13 -07:00
exec.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
health.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
history.go Add canonical import comment 2018-02-05 16:51:57 -05:00
memory_store.go Add canonical import comment 2018-02-05 16:51:57 -05:00
memory_store_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
monitor.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
mounts_unix.go Support recursively read-only (RRO) mounts 2023-05-26 01:58:24 +09:00
mounts_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
state.go Refactor libcontainerd to minimize c8d RPCs 2022-08-24 14:59:08 -04:00
state_test.go Refactor libcontainerd to minimize c8d RPCs 2022-08-24 14:59:08 -04:00
store.go Add canonical import comment 2018-02-05 16:51:57 -05:00
view.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
view_test.go container: format code with gofumpt 2023-08-24 17:57:34 +02:00