spiegel_podman/pkg/api/handlers
Peter Edwards fe22299f97 Use a sane polling interval in WaitContainerDocker
When using the docker REST API to wait for a container to be removed,
for example, WaitContainerDocker uses a one microsecond interval between
poll requests. This ends up being effectively a busy-wait, with the
podman system service spinning at > 100% CPU time.

The equivalent Podman method uses a 250ms default. Use that for the
docker variant, too.

I'm going to optimistically assert [NO NEW TESTS NEEDED] - given there's
no functional change here, and a test will require some form of mocking
or strac'ing the binary for evidence that it's polling less frequently,
unless someone who is familiar with podman can briefly explain what kind
of test would be appropriate here.

Signed-off-by: Peter Edwards <peadar@arista.com>
Fixes: #18150
2023-04-11 22:02:46 +01:00
..
compat system service: do not close Body 2023-04-04 15:47:10 +02:00
libpod Read kube_generate_type from containers.conf 2023-04-11 09:15:05 -04:00
swagger Vendor c/image after https://github.com/containers/image/pull/1816 2023-02-08 22:37:38 +01:00
types bump go module to version 4 2022-01-18 12:47:07 +01:00
utils Use a sane polling interval in WaitContainerDocker 2023-04-11 22:02:46 +01:00
decoder.go bump golangci-lint to v1.49.0 2022-10-17 09:19:41 +02:00
types.go implement podman update 2022-09-01 13:02:01 -04:00