From 3e5a5c68da9884ddb46cb9e84435956996347a4b Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 23 Oct 2018 18:40:34 -0500 Subject: Add --max-workers and heuristics for parallel operations add a global flag for --max-workers so users can limit the number of parallel operations for a given function. also, when not limited by max-workers, we implement a heuristic function that returns the number of preferred parallel workers based on the number of CPUs and the given operation. Signed-off-by: baude --- cmd/podman/main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/podman/main.go') diff --git a/cmd/podman/main.go b/cmd/podman/main.go index d4c8454a8..38eac4504 100644 --- a/cmd/podman/main.go +++ b/cmd/podman/main.go @@ -211,6 +211,11 @@ func main() { Value: hooks.DefaultDir, Hidden: true, }, + cli.IntFlag{ + Name: "max-workers", + Usage: "the maximum number of workers for parallel operations", + Hidden: true, + }, cli.StringFlag{ Name: "log-level", Usage: "log messages above specified level: debug, info, warn, error (default), fatal or panic", -- cgit v1.2.3-54-g00ecf