- Timestamp:
- Jun 16, 2011, 6:18:17 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Nebulous-Server/bin/neb-admin (modified) (4 diffs)
-
ippTasks/diskbalance.pro (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/bin/neb-admin
r31640 r31644 26 26 $so_id_range, 27 27 $limit, 28 $offset, 28 29 $pending, 29 30 $balance, … … 38 39 $dbuser = $ENV{'NEB_USER'}; 39 40 $dbpass = $ENV{'NEB_PASS'}; 41 42 $offset = 0; 40 43 41 44 GetOptions( … … 52 55 'so_id_range=i' => \$so_id_range, 53 56 'limit|l=i' => \$limit, 57 'offset=i' => \$offset, 54 58 'verbose|v' => \$verbose, 55 59 ) || pod2usage( 2 ); … … 355 359 GROUP BY so_id 356 360 LIMIT $limit -- limit 361 OFFSET $offset -- offset 357 362 358 363 " ); -
trunk/ippTasks/diskbalance.pro
r30933 r31644 93 93 $BALANCE_SO_ID_START = int($BALANCE_BIG_SO_ID * rnd(0)) 94 94 $BALANCE_SO_ID_RANGE = 500000 95 95 $BALANCE_LIMIT = 500 96 $BALANCE_OFFSET = 0 96 97 # Select Nebulous objects which should be shuffled 97 98 task balance.load 98 99 host local 99 100 100 periods -poll 0.5101 periods -exec 5101 periods -poll 60 102 periods -exec 60 102 103 periods -timeout 1500 103 104 npending 1 … … 117 118 book getword balanceControl control mDestinations -var BALANCE_M 118 119 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_M120 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 120 121 121 122 end … … 125 126 # advance the so_id counter 126 127 $BALANCE_SO_ID_START = $BALANCE_SO_ID_START + $BALANCE_SO_ID_RANGE 127 128 $BALANCE_OFFSET = 0 128 129 # convert 'stdout' to book format 129 130 ipptool2book stdout balancePending -key key -uniq -setword pantaskState INIT … … 141 142 # convert 'stdout' to book format 142 143 ipptool2book stdout balancePending -key key -uniq -setword pantaskState INIT 143 144 $BALANCE_OFFSET = $BALANCE_OFFSET + $BALANCE_LIMIT 144 145 if ($VERBOSE > 2) 145 146 book listbook balancePending
Note:
See TracChangeset
for help on using the changeset viewer.
