Changes between Version 21 and Version 22 of NuWa_Slave

Show
Ignore:
Timestamp:
09/30/10 14:54:58 (14 years ago)
Author:
blyth (IP: 140.112.102.77)
Comment:

documenting the slvmgr planting of daily links via cron job, related to #586

Legend:

Unmodified
Added
Removed
Modified
  • NuWa_Slave

    v21 v22  
    545545   
    546546 
    547  
    548  
    549  
    550  
    551  
    552  
    553  
    554  
     547== planting daily links ==  
     548 
     549Coordinated ''blessed-for-24hrs'' revisions for configurations : '''dybinst''' and '''opt.dybinst''' are  
     550provided by the bitten master at : 
     551  * http://dayabay.ihep.ac.cn/tracs/dybsvn/daily/dybinst 
     552  * http://dayabay.ihep.ac.cn/tracs/dybsvn/daily/opt.dybinst 
     553 
     554The revisions listed correspond to the last revision that was successfully built by all operational 
     555slaves for the corresponding configuration prior to the cutoff time :  
     556  || '''18:00 Dayabay time''' || 
     557 
     558The '''slvmgr.py''' script accesses these pages in order to determine the blessed revisions for  
     559each configuration when it is invoked with the '''--diabolic''' option. 
     560The planting of daily links to revision dirs is best done from a cron job 
     561running at a coordinated time rather than as part of the copy step. 
     562 
     563For coordinated diabolic links it is recommended that cron invokes the diabolic option 15-min after the cutoff time,  
     564eg with cron command line ( with time converted to your machines timezone).      
     565  
     566{{{     
     567HOME=/home/joe 
     56815 18 * * * ( cd /path/to/dybinst/export/dir ; python installation/trunk/dybinst/scripts/slvmgr.py --diabolic dybinst opt.dybinst )  > $HOME/diabolic.log 2>&1 
     569}}} 
     570 
     571Note that diabolic calls outside the time window (cutoff + 10min, cutoff +20 min)  
     572do not plant links. Thus to avoid having to change cron config twice a year for  
     573daylight saving time changes you can add cron entries an hr ahead and behind  
     574the target time 18:15 in your timezone. 
     575