Changeset 18404
- Timestamp:
- Jul 2, 2008, 10:17:59 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/replicate.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/replicate.pro
r17578 r18404 5 5 # test for required global variables 6 6 check.globals 7 8 $NEB_DB = nebulous 9 $NEB_USER = nebulous 10 $NEB_PASS = @neb@ 7 11 8 12 $LOGSUBDIR = $LOGDIR/replicate … … 37 41 end 38 42 43 macro set.host.for.replicate 44 if ($0 != 3) 45 echo "USAGE: set.host.for.replicate (host name)" 46 break 47 end 48 49 if (not($PARALLEL)) 50 host local 51 return 52 end 53 54 # parse volume name 55 56 if ("$host" == "NULL") 57 host anyhost 58 else 59 host $host 60 end 61 end 62 39 63 # the replicate process interacts with only the single Nebulous server 40 64 … … 54 78 55 79 # command does not need to be dynamic 56 command neb- load-replicants -limit 2080 command neb-admin --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 100 57 81 58 82 # success … … 97 121 98 122 # XXX what values do I need to get back? 99 book getword replicatePending $pageName neb_id -var NEB_ID 100 book getword replicatePending $pageName ncopies -var NCOPIES 101 book getword replicatePending $pageName neb_host -var NEB_HOST 102 book getword replicatePending $pageName target_host -var TARGET_HOST 123 book getword replicatePending $pageName key -var KEY 124 book getword replicatePending $pageName need_copies -var NEED_COPIES 125 book getword replicatePending $pageName volume_name -var VOLUME_NAME 126 book getword replicatePending $pageName volume_host -var VOLUME_HOST 127 128 set.host.for.replicate $VOLUME_HOST 103 129 104 130 stdout NULL … … 106 132 107 133 # these operations do not require a database to be specified 108 $run = replicate_object.pl --neb_id $NEB_ID --ncopies $NCOPIES --neb_host $NEB_HOST134 $run = neb-replicate --copies $NEED_COPIES $KEY 109 135 110 136 # save the pageName for future reference below
Note:
See TracChangeset
for help on using the changeset viewer.
