Changeset 18409
- Timestamp:
- Jul 2, 2008, 2:19:19 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/replicate.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/replicate.pro
r18404 r18409 1 1 ## replicate.pro : tasks for data replication : -*- sh -*- 2 2 ## this file contains the tasks for maintaining duplicates as needed in Nebulous 3 ## these tasks use the books replicatePending and regPendingExp3 ## these tasks use the books replicatePending 4 4 5 5 # test for required global variables 6 6 check.globals 7 7 8 $NEB_DB = nebulous 9 $NEB_USER = nebulous 10 $NEB_PASS = @neb@ 8 $NEB_DB = nebulous 9 $NEB_HOST = alala 10 $NEB_USER = jhipp 11 $NEB_PASS = jhipp 11 12 12 13 $LOGSUBDIR = $LOGDIR/replicate … … 42 43 43 44 macro set.host.for.replicate 44 if ($0 != 3)45 echo "USAGE: set.host.for.replicate (host name)"45 if ($0 != 2) 46 echo "USAGE: set.host.for.replicate (hostname)" 46 47 break 47 48 end … … 54 55 # parse volume name 55 56 56 if ("$ host" == "NULL")57 if ("$1" == "NULL") 57 58 host anyhost 58 59 else 59 host $ host60 host $1 60 61 end 61 62 end … … 68 69 69 70 # modify these after the tasks are tested 70 periods -poll 6071 periods -exec 30071 periods -poll 5 72 periods -exec 120 72 73 periods -timeout 60 73 74 npending 1 … … 78 79 79 80 # command does not need to be dynamic 80 command neb-admin -- db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 10081 command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 100 81 82 82 83 # success 83 84 task.exit $EXIT_SUCCESS 84 85 # convert 'stdout' to book format 85 ipptool2book stdout replicatePending -key neb_id -uniq -setword pantaskState INIT 86 ipptool2book stdout replicatePending -key key -uniq -setword pantaskState INIT 87 86 88 if ($VERBOSE > 2) 87 89 book listbook replicatePending … … 111 113 task.exec 112 114 book npages replicatePending -var N 113 if ($N == 0) break114 115 if ($NETWORK == 0) break 116 if ($N == 0) 117 periods -exec 30 118 break 119 end 120 periods -exec 0.1 115 121 116 122 # look for new objects in replicatePending
Note:
See TracChangeset
for help on using the changeset viewer.
