IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29426


Ignore:
Timestamp:
Oct 14, 2010, 8:50:01 PM (16 years ago)
Author:
watersc1
Message:

fixed numbers so that it won't overflow the book on a single call to match how replication works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diskbalance.pro

    r29409 r29426  
    1313
    1414book init balancePending
     15book init balanceControl
    1516
    1617macro balance.reset
     
    6465    host $1
    6566  end
     67end
     68
     69macro set.balance.numbers
     70  if ($0 != 3)
     71    echo "USAGE: set.balance.numbers (N_sources) (M_destinations)"
     72    break
     73  end
     74
     75  book newpage balanceControl control
     76  book setword balanceControl control nSources $1
     77  book setword balanceControl control mDestinations $2
    6678end
    6779
     
    95107    end
    96108
    97     command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingbalance --limit 2000 --so_id_start $BALANCE_SO_ID_START --so_id_range $BALANCE_SO_ID_RANGE
     109    book getword balanceControl control nSources -var BALANCE_N
     110    book getword balanceControl control mDestinations -var BALANCE_M
     111
     112    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
    98113
    99114  end
     
    171186
    172187    book getword balancePending $pageName key              -var KEY
    173     book getword balancePending $pageName source_host      -var SOURCE
    174     book getword balancePending $pageName destination_host -var DESTINATION
     188    book getword balancePending $pageName source_name      -var SOURCE
     189    book getword balancePending $pageName destination_name -var DESTINATION
    175190   
    176191    # Fix this with multihost restriction when possible.
Note: See TracChangeset for help on using the changeset viewer.