Changes between Version 2 and Version 3 of AssignedWork


Ignore:
Timestamp:
Feb 15, 2008, 4:44:15 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AssignedWork

    v2 v3  
    44
    55 * To assign a particular job to a particular host.
    6  * To assign a particular job to be done on ALL hosts for which an app version exists.  This could be used to run application-specific benchmarks, to test CPUs, etc.
     6 * To assign a particular job to be done on ALL hosts for which an app version exists.  This could be used to run application-specific benchmarks, test for hardware or softwar features, or test CPUs.
    77
    8 A host with assigned jobs won't get sent any other jobs until the assigned ones are reported.
     8A host with assigned jobs won't get any other jobs until the assigned ones are finished and reported.
    99
    1010Assigned jobs are not validated or assimilated.
     
    1313To enable this feature you must add
    1414{{{
    15 <enable_assigned_work>1</enable_assigned_work>
     15<enable_assignment>1</enable_assignment>
    1616}}}
    1717to your config.xml file.
     
    2424If positive it means assign the job to the host with that ID.
    2525
    26 The names of workunits for assigned jobs must include '''asgw'''.
     26The names of workunits for assigned jobs must include the string '''asgw'''
     27(this prevents them from being validated or assimilated).
    2728
    2829== Management tools ==
    2930
    30 The following scripts (in ops/) manage assigned work:
    31 {{{
    32 show_assignments
    33 }}}
    34 print a list of assigned jobs.
    35 
    36 {{{
    37 remove_assignment wu_name
    38 }}}
    39 
    40 Removes an assignment (the WU and results records remain in the database).
     31The '''assignment.php''' script (in ops/) manages assigned work.
     32It shows a list of assignments and their status,
     33and lets you remove assignments (the WU and result records remain in the database).
    4134
    4235== Implementation ==
     
    4639Assignments are stored in an '''assignments''' table.
    4740Each record contains a host ID (or -1) and a WU ID.
     41
     42If <enable_assigment> is set in the config file,
     43the scheduler checks for assignment records for the given host.
     44If it finds any for which the result has not already been reported
     45and the job is not in progress, it creates a result record and sends it to the host.