WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] Lengthens the timeout time for clean shutdown requests

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] Lengthens the timeout time for clean shutdown requests from 20 minutes to 60 minutes
From: Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
Date: Tue, 9 Mar 2010 16:39:50 +0000
Delivery-date: Tue, 09 Mar 2010 08:40:18 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
# Date 1268152759 0
# Node ID 5d38ff0e1e4be330bdf7f722e56b2741c147c730
# Parent  59957bd3df0ac08f4aa601d551c23b02de8c9a10
Lengthens the timeout time for clean shutdown requests from 20 minutes to 60 
minutes.

Windows guests sometimes have genuine reasons to take longer than 20 minutes to 
shut down.

Possible reasons include:
* there are updates to install.
* the guest is overloaded.
* the host is overloaded.

diff -r 59957bd3df0a -r 5d38ff0e1e4b ocaml/xapi/vmops.ml
--- a/ocaml/xapi/vmops.ml       Tue Mar 09 16:38:07 2010 +0000
+++ b/ocaml/xapi/vmops.ml       Tue Mar 09 16:39:19 2010 +0000
@@ -853,7 +853,7 @@
        if not !finished then raise (Api_errors.Server_error 
(Api_errors.vm_failed_shutdown_ack, []))
   end;
   at 0.50;
-  let total_timeout = 20. *. 60. in (* 20 minutes *)
+  let total_timeout = 60. *. 60. in (* 1 hour *)
   (* Block for 5s at a time, in between check to see whether we've been 
cancelled
      and update our progress if not *)
   let start = Unix.gettimeofday () in
1 file changed, 1 insertion(+), 1 deletion(-)
ocaml/xapi/vmops.ml |    2 +-


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] Lengthens the timeout time for clean shutdown requests from 20 minutes to 60 minutes, Jonathan Knowles <=