IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31881


Ignore:
Timestamp:
Jul 14, 2011, 2:24:50 PM (15 years ago)
Author:
watersc1
Message:

Changed the targetting in disk balance to use the source host as the target, rather than the destination host. Since the ATRC computers are bandwidth limited, not disk limited, we do not need to worry about breaking the destination hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110622/ippTasks/diskbalance.pro

    r31855 r31881  
    7575  book listpage balanceControl control
    7676  echo "balance so_ids: $BALANCE_SO_ID_START $BALANCE_SO_ID_RANGE"
     77  echo "targetting:     $BALANCE_TARGET"
    7778end
    7879
     
    8182  echo "$N pages in book"
    8283  book listbook balancePending
     84end
     85
     86macro set.balance.target
     87  $BALANCE_TARGET = $1
    8388end
    8489
     
    95100$BALANCE_LIMIT       = 500
    96101$BALANCE_OFFSET      = 0
     102$BALANCE_TARGET      = SOURCE
    97103# Select Nebulous objects which should be shuffled
    98104task           balance.load
     
    158164
    159165  # locked list
    160   task.exit    default
     166:  task.exit    default
    161167    showcommand failure
    162168  end
     
    195201    book getword balancePending $pageName key              -var KEY
    196202    book getword balancePending $pageName source_name      -var SOURCE
     203    book getword balancePending $pageName source_host      -var SOURCE_HOST
    197204    book getword balancePending $pageName destination_name -var DESTINATION
    198205    book getword balancePending $pageName destination_host -var DEST_HOST
    199206    # Fix this with multihost restriction when possible.
    200     set.host.for.balance $DEST_HOST
     207    if ("$target" == "DESTINATION")
     208       set.host.for.balance $DEST_HOST
     209    else
     210       set.host.for.balance $SOURCE_HOST
     211    end
     212   
    201213
    202214    stdout NULL
Note: See TracChangeset for help on using the changeset viewer.