Overview
Comment: | Added random delay to help spread out invocations of loadrunner |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.55 |
Files: | files | file ages | folders |
SHA1: |
25320ac902c4383c84dc86f8d941f2e1 |
User & Date: | matt on 2014-06-19 00:34:42 |
Other Links: | branch diff | manifest | tags |
Context
2014-06-19
| ||
11:35 | Fixed regression on running in read only areas where db does not exist. Made timeout long for cases where tests appear to be non-runnable. Improved chicken install script check-in: 2c06a41e7e user: mrwellan tags: v1.55, v1.5522 | |
00:34 | Added random delay to help spread out invocations of loadrunner check-in: 25320ac902 user: matt tags: v1.55 | |
00:27 | Merged loadrunner and nbfake into single script check-in: 202169a23d user: matt tags: v1.55 | |
Changes
Modified utils/loadrunner from [e593a821d5] to [9ef382563c].
︙ | ︙ | |||
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | if [[ $TARGETHOST == "" ]]; then sh -c "cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* > $TARGETHOST_LOGF 2>&1 &" else ssh -n -f $TARGETHOST "sh -c \"cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* > $TARGETHOST_LOGF 2>&1 &\"" fi } if which cpucheck > /dev/null;then numcpu=`cpucheck|tail -1|awk '{print $6}'` elif which lscpu > /dev/null;then numcpu=`lscpu|grep "CPU.s.:"|awk '{print $2}'` else numcpu=2 | > > > > > > > | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | if [[ $TARGETHOST == "" ]]; then sh -c "cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* > $TARGETHOST_LOGF 2>&1 &" else ssh -n -f $TARGETHOST "sh -c \"cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* > $TARGETHOST_LOGF 2>&1 &\"" fi } function get_delay_time () { RANGE=$1 number=$RANDOM let "number %= $RANGE" echo $number } if which cpucheck > /dev/null;then numcpu=`cpucheck|tail -1|awk '{print $6}'` elif which lscpu > /dev/null;then numcpu=`lscpu|grep "CPU.s.:"|awk '{print $2}'` else numcpu=2 |
︙ | ︙ | |||
61 62 63 64 65 66 67 | echo "$LOADRUNNER $@" | at now + 2 minutes 2> /dev/null fi else # echo "Load too high: lperc=$lperc, max_load=$max_load, waiting two minutes before trying to run command: \"$@\"" echo "$LOADRUNNER $@" | at now + 2 minutes 2> /dev/null fi | | | 68 69 70 71 72 73 74 75 76 | echo "$LOADRUNNER $@" | at now + 2 minutes 2> /dev/null fi else # echo "Load too high: lperc=$lperc, max_load=$max_load, waiting two minutes before trying to run command: \"$@\"" echo "$LOADRUNNER $@" | at now + 2 minutes 2> /dev/null fi sleep $(get_delay_time 10) rm -f $lfile |