Author: jfthomps
Date: Fri Jan 22 17:56:57 2010
New Revision: 902192

URL: http://svn.apache.org/viewvc?rev=902192&view=rev
Log:
VCL-78

modified XMLRPCprocessBlockTime to stagger preload reservations by 2 minutes if 
the estimated image load time is > 14 minutes (stagger by 1 minutes otherwise)

Modified:
    incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php

Modified: incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php?rev=902192&r1=902191&r2=902192&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php Fri Jan 22 17:56:57 2010
@@ -698,8 +698,11 @@
        # allocated based on the ones with machines available; this seems like 
odd
        # behavior
        $stagCnt = 0;
+       $stagTime = 60;        # stagger reload reservations by 1 min
+       if($imgLoadTime > 840) // if estimated load time is > 14 min
+               $stagTime = 120;    #    stagger reload reservations by 2 min 
        for($i = 0; $i < $reqToAlloc; $i++) {
-               $stagunixstart = $unixstart - $loadtime - ($stagCnt * 60);
+               $stagunixstart = $unixstart - $loadtime - ($stagCnt * 
$stagTime);
                $stagstart = unixToDatetime($stagunixstart);
                if(! $ignoreprivileges)
                        $userid = array_pop($userids);


Reply via email to