spiegel_podman/pkg/varlinkapi
Matthew Heon 2bb2425704 Move pod jobs to parallel execution
Make Podman pod operations that do not involve starting
containers (which needs to be done in a specific order) use the
same parallel operation code we use to make `podman stop` on
large numbers of containers fast. We were previously stopping
containers in a pod serially, which could take up to the timeout
(default 15 seconds) for each container - stopping 100 containers
that do not respond to SIGTERM would take 25 minutes.

To do this, refactor the parallel operation code a bit to remove
its dependency on libpod (damn circular import restrictions...)
and use parallel functions that just re-use the standard
container API operations - maximizes code reuse (previously each
pod handler had a separate implementation of the container
function it performed).

This is a bit of a palate cleanser after fighting CI for two
days - nice to be able to return to a land of sanity.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-10-07 10:00:11 -04:00
..
virtwriter fix lint - pkg/varlinkapi/virtwriter 2020-01-08 15:44:30 +01:00
attach.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
config.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container.go Fix up errors found by codespell 2020-09-11 06:14:25 -04:00
containers.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
containers_create.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
create.go Use set for systemd commands 2020-08-11 13:29:17 +02:00
events.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
funcs.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
generate.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
images.go Remove excessive error wrapping 2020-10-05 15:30:37 -07:00
intermediate.go Podman V2 birth 2020-04-16 15:53:58 -05:00
intermediate_varlink.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
mount.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pods.go Move pod jobs to parallel execution 2020-10-07 10:00:11 -04:00
remote_client.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
shortcuts.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system.go fix build with varlink 2020-09-22 16:46:15 -04:00
transfers.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
util.go Refactor API build endpoint to be more compliant 2020-09-14 13:46:59 -07:00
volumes.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00