Index: /trunk/Nebulous-Server/bin/neb-admin
===================================================================
--- /trunk/Nebulous-Server/bin/neb-admin	(revision 31643)
+++ /trunk/Nebulous-Server/bin/neb-admin	(revision 31644)
@@ -26,4 +26,5 @@
     $so_id_range,
     $limit,
+    $offset,
     $pending,
     $balance,
@@ -38,4 +39,6 @@
 $dbuser = $ENV{'NEB_USER'};
 $dbpass = $ENV{'NEB_PASS'};
+
+$offset = 0;
 
 GetOptions(
@@ -52,4 +55,5 @@
     'so_id_range=i'         => \$so_id_range,
     'limit|l=i'             => \$limit,
+    'offset=i'              => \$offset,
     'verbose|v'             => \$verbose,
 ) || pod2usage( 2 );
@@ -355,4 +359,5 @@
 GROUP BY so_id
     LIMIT $limit                                               -- limit
+    OFFSET $offset                                             -- offset
 
 "    );
Index: /trunk/ippTasks/diskbalance.pro
===================================================================
--- /trunk/ippTasks/diskbalance.pro	(revision 31643)
+++ /trunk/ippTasks/diskbalance.pro	(revision 31644)
@@ -93,11 +93,12 @@
 $BALANCE_SO_ID_START = int($BALANCE_BIG_SO_ID * rnd(0)) 
 $BALANCE_SO_ID_RANGE = 500000
-
+$BALANCE_LIMIT       = 500
+$BALANCE_OFFSET      = 0
 # Select Nebulous objects which should be shuffled
 task           balance.load
   host         local
 
-  periods      -poll 0.5
-  periods      -exec 5
+  periods      -poll 60
+  periods      -exec 60
   periods      -timeout 1500
   npending     1
@@ -117,5 +118,5 @@
     book getword balanceControl control mDestinations -var BALANCE_M
 
-    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
+    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
 
   end
@@ -125,5 +126,5 @@
     # advance the so_id counter
     $BALANCE_SO_ID_START = $BALANCE_SO_ID_START + $BALANCE_SO_ID_RANGE
-
+    $BALANCE_OFFSET = 0
     # convert 'stdout' to book format
     ipptool2book stdout balancePending -key key -uniq -setword pantaskState INIT
@@ -141,5 +142,5 @@
     # convert 'stdout' to book format
     ipptool2book stdout balancePending -key key -uniq -setword pantaskState INIT
-
+    $BALANCE_OFFSET = $BALANCE_OFFSET + $BALANCE_LIMIT
     if ($VERBOSE > 2)
       book listbook balancePending
