Source: libvirt
Version: 3.1.0-1~1.gbp9a8156
Severity: whishlist
Tags: patch

Those values seem to make a good compromise between giving enough time and
shutting down the host reasonably fast.

-Stefan
From d2efc73288c7f9de09f591dad60507f22bb52ced Mon Sep 17 00:00:00 2001
From: Stefan Bader <stefan.ba...@canonical.com>
Date: Wed, 10 May 2017 16:58:13 +0200
Subject: [PATCH] libvirt-guests: Tune defaults for parallel shutdown

Allowing batches of 10 guests to shutdown in parallel seems to work
reasonably well and will improve the time spent on shutdown of the
host.

Also waiting 2 minutes looks to be a good compromise between giving
enough time and waiting unnecessary.

Signed-off-by: Stefan Bader <stefan.ba...@canonical.com>
---
 tools/libvirt-guests.sysconf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/libvirt-guests.sysconf b/tools/libvirt-guests.sysconf
index 2770056..a1645b4 100644
--- a/tools/libvirt-guests.sysconf
+++ b/tools/libvirt-guests.sysconf
@@ -26,14 +26,14 @@
 
 # If set to non-zero, shutdown will suspend guests concurrently. Number of
 # guests on shutdown at any time will not exceed number set in this variable.
-#PARALLEL_SHUTDOWN=0
+PARALLEL_SHUTDOWN=10
 
 # Number of seconds we're willing to wait for a guest to shut down. If parallel
 # shutdown is enabled, this timeout applies as a timeout for shutting down all
 # guests on a single URI defined in the variable URIS. If this is 0, then there
 # is no time out (use with caution, as guests might not respond to a shutdown
 # request). The default value is 300 seconds (5 minutes).
-#SHUTDOWN_TIMEOUT=300
+SHUTDOWN_TIMEOUT=120
 
 # If non-zero, try to bypass the file system cache when saving and
 # restoring guests, even though this may give slower operation for
-- 
2.7.4

Reply via email to