Changeset 23345 for trunk/ippTasks/replicate.pro
- Timestamp:
- Mar 17, 2009, 11:08:44 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/replicate.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/replicate.pro
r23230 r23345 62 62 # the replicate process interacts with only the single Nebulous server 63 63 64 # Each 'pendingreplicate' query is limited to a finite number of so_id values. 65 # Each time we call replicate.load, we increment SO_ID_START by the range value. 66 # If the pendingreplicate query exits with exit status 10, we start over at 0 67 68 $SO_ID_START = 0 69 $SO_ID_RANGE = 100000 70 64 71 # select Nebulous objects which desire additional copies 65 72 task replicate.load … … 68 75 # modify these after the tasks are tested 69 76 periods -poll 10 70 periods -exec 1 77 periods -exec 10 71 78 periods -timeout 1500 72 79 npending 1 … … 79 86 # command does not need to be dynamic, but having it so allows us to adjust the periods 80 87 # so that we dont have to wait 10 minutes for things to start up 81 command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 7500 88 # XXX smaller limited? 7500 will be a huge book of things to do... 89 command neb-admin --host $NEB_HOST --db $NEB_DB --user $NEB_USER --pass $NEB_PASS --pendingreplicate --limit 7500 --so_id_start $SO_ID_START --so_id_range $SO_ID_RANGE 82 90 periods -exec 1800 83 91 … … 86 94 # success 87 95 task.exit $EXIT_SUCCESS 96 # advance the so_id counter 97 $SO_ID_START += $SO_ID_RANGE 98 88 99 # convert 'stdout' to book format 89 100 ipptool2book stdout replicatePending -key key -uniq -setword pantaskState INIT … … 95 106 # delete existing entries in the appropriate pantaskStates 96 107 process_cleanup replicatePending 108 end 109 110 # out of so_id range, reset 111 task.exit 10 112 # advance the so_id counter 113 $SO_ID_START = 0 97 114 end 98 115
Note:
See TracChangeset
for help on using the changeset viewer.
