1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/container
Cory Snider 4bafaa00aa Refactor libcontainerd to minimize c8d RPCs
The containerd client is very chatty at the best of times. Because the
libcontained API is stateless and references containers and processes by
string ID for every method call, the implementation is essentially
forced to use the containerd client in a way which amplifies the number
of redundant RPCs invoked to perform any operation. The libcontainerd
remote implementation has to reload the containerd container, task
and/or process metadata for nearly every operation. This in turn
amplifies the number of context switches between dockerd and containerd
to perform any container operation or handle a containerd event,
increasing the load on the system which could otherwise be allocated to
workloads.

Overhaul the libcontainerd interface to reduce the impedance mismatch
with the containerd client so that the containerd client can be used
more efficiently. Split the API out into container, task and process
interfaces which the consumer is expected to retain so that
libcontainerd can retain state---especially the analogous containerd
client objects---without having to manage any state-store inside the
libcontainerd client.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-08-24 14:59:08 -04:00
..
stream refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
archive.go container.BaseFS: check for nil before deref 2018-03-13 21:24:48 -07:00
container.go Refactor libcontainerd to minimize c8d RPCs 2022-08-24 14:59:08 -04:00
container_unit_test.go container: StopSignal(): return syscall.Signal 2022-05-05 00:53:53 +02:00
container_unix.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
container_windows.go pkg/signal: remove DefaultStopSignal const 2021-08-11 10:31:29 +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 Refactor libcontainerd to minimize c8d RPCs 2022-08-24 14:59:08 -04:00
health.go Avoid a data race in container/health.go 2019-07-31 13:17:32 -07: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 Make sure timers are stopped after use. 2019-01-16 14:32:53 -08:00
mounts_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02: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 Use hashicorp/go-memdb instead of truncindex 2022-05-20 18:22:21 +02:00
view_test.go Use hashicorp/go-memdb instead of truncindex 2022-05-20 18:22:21 +02:00