[PATCH 2/2] qemu: Change the default unix monitor timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a number of reported issues when we fail starting a domain.
Turns out that, in some scenarios like high load, 3 second timeout is
not enough for qemu to start up to the phase where the socket is
created.  Since the timeout is configurable and there is no downside
of waiting longer, raise the timeout right to 30 seconds.

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/qemu/qemu.conf      | 2 +-
 src/qemu/qemu_monitor.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu.conf b/src/qemu/qemu.conf
index 6217b49..4936d88 100644
--- a/src/qemu/qemu.conf
+++ b/src/qemu/qemu.conf
@@ -472,6 +472,6 @@
 # such file or directory" that could be because libvirt did not wait
 # enough time, you can try increasing this timeout.
 #
-# Default is 3
+# Default is 30
 #
 #monitor_socket_open_timeout = 60
diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
index f34527a..6a437b1 100644
--- a/src/qemu/qemu_monitor.c
+++ b/src/qemu/qemu_monitor.c
@@ -273,7 +273,7 @@ qemuMonitorOpenUnix(const char *monitor, pid_t cpid, virQEMUDriverPtr driver)
     virQEMUDriverConfigPtr cfg = NULL;
     struct sockaddr_un addr;
     int monfd;
-    int timeout = 3; /* In seconds */
+    int timeout = 30; /* In seconds */
     int ret;
     size_t i = 0;

-- 
1.8.5.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]