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 5 of 7] CA-34933: there should be more sessions than ta

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH 5 of 7] CA-34933: there should be more sessions than tasks
From: Marcus Granado <marcus.granado@xxxxxxxxxx>
Date: Fri, 21 May 2010 14:46:08 +0100
Delivery-date: Fri, 21 May 2010 06:57:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1274449563@localhost>
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>
References: <patchbomb.1274449563@localhost>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
 ocaml/xapi/xapi_globs.ml |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1274449016 -3600
# Node ID 2cb0cc2a496431b098d0cd44fbb7c33a9ac82f78
# Parent  73391140afa5c39e819adcac880d385ca7b1a14c
CA-34933: there should be more sessions than tasks

Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>

diff -r 73391140afa5 -r 2cb0cc2a4964 ocaml/xapi/xapi_globs.ml
--- a/ocaml/xapi/xapi_globs.ml
+++ b/ocaml/xapi/xapi_globs.ml
@@ -217,15 +217,16 @@
    the disk flushing *)
 let migration_extra_paths_key = "migration_extra_paths"
 
-(* After this we start to invalidate older sessions *)
-let max_sessions = 200
-
 (* If a session has a last_active older than this we delete it *)
 let inactive_session_timeout = 24. *. 60. *. 60. (* 24 hrs in seconds *) 
 
 (* After this we start to delete completed tasks (never pending ones) *)
 let max_tasks = 200
 
+(* After this we start to invalidate older sessions *)
+(* We must allow for more sessions than running tasks *)
+let max_sessions = max_tasks * 2
+
 let completed_task_timeout = 65. *. 60. (* 65 mins *)
 
 let pending_task_timeout = 24. *. 60. *. 60. (* 24 hrs in seconds *) 

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

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api