Changeset 8160


Ignore:
Timestamp:
10/25/06 12:47:57 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8159 r8160  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2006/10/25 Daniela Dorner
     21
     22   * datacenter/scripts/jobmanager, datacenter/scripts/setup:
     23     - added longer sleeping, when there is nothing to do for any script
     24
     25
     26
    2027 2006/10/24 Thomas Bretz
    2128
  • trunk/MagicSoft/Mars/datacenter/scripts/jobmanager

    r8118 r8160  
    4141# endless loop
    4242notcount=0
     43nothingtodocount=0
     44nothingtodosleeptime=0
    4345while (( $notcount < 100 ))
    4446do
     
    5557      then
    5658         prev=0
    57          cont >> $jmscriptlog 2>&1
     59         nothingtodocount=`expr $nothingtodocount + 1`
     60         if [ $nothingtodocount -lt ${#scripts[@]} ]
     61         then
     62            cont >> $jmscriptlog 2>&1
     63         else
     64            if [ $nothingtodosleeptime -lt $sleeptimelimit ]
     65            then
     66               nothingtodosleeptime=`echo " $nothingtodocount * $sleeptime " | bc`
     67            fi
     68            echo "sleeping $nothingtodosleeptime" >> $jmscriptlog 2>&1
     69            sleep $nothingtodosleeptime
     70            cont >> $jmscriptlog 2>&1
     71         fi
     72      else
     73         nothingtodocount=0
    5874      fi
    5975
  • trunk/MagicSoft/Mars/datacenter/scripts/setup

    r8118 r8160  
    6262#setup for jobmanager
    6363sleeptime=30 #30
     64sleeptimelimit=360 #360
    6465errorsleeptime=60 #60
    6566max=18 #maximum number of processes
Note: See TracChangeset for help on using the changeset viewer.