IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2011, 6:18:17 PM (15 years ago)
Author:
watersc1
Message:

update to possibly run diskbalance more efficiently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diskbalance.pro

    r30933 r31644  
    9393$BALANCE_SO_ID_START = int($BALANCE_BIG_SO_ID * rnd(0))
    9494$BALANCE_SO_ID_RANGE = 500000
    95 
     95$BALANCE_LIMIT       = 500
     96$BALANCE_OFFSET      = 0
    9697# Select Nebulous objects which should be shuffled
    9798task           balance.load
    9899  host         local
    99100
    100   periods      -poll 0.5
    101   periods      -exec 5
     101  periods      -poll 60
     102  periods      -exec 60
    102103  periods      -timeout 1500
    103104  npending     1
     
    117118    book getword balanceControl control mDestinations -var BALANCE_M
    118119
    119     command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingbalance --limit 500 --so_id_start $BALANCE_SO_ID_START --so_id_range $BALANCE_SO_ID_RANGE  --balancesources $BALANCE_N --balancedestination $BALANCE_M
     120    command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingbalance --limit $BALANCE_LIMIT --offset $BALANCE_OFFSET --so_id_start $BALANCE_SO_ID_START --so_id_range $BALANCE_SO_ID_RANGE  --balancesources $BALANCE_N --balancedestination $BALANCE_M
    120121
    121122  end
     
    125126    # advance the so_id counter
    126127    $BALANCE_SO_ID_START = $BALANCE_SO_ID_START + $BALANCE_SO_ID_RANGE
    127 
     128    $BALANCE_OFFSET = 0
    128129    # convert 'stdout' to book format
    129130    ipptool2book stdout balancePending -key key -uniq -setword pantaskState INIT
     
    141142    # convert 'stdout' to book format
    142143    ipptool2book stdout balancePending -key key -uniq -setword pantaskState INIT
    143 
     144    $BALANCE_OFFSET = $BALANCE_OFFSET + $BALANCE_LIMIT
    144145    if ($VERBOSE > 2)
    145146      book listbook balancePending
Note: See TracChangeset for help on using the changeset viewer.