wiki:JobIntro

Version 5 (modified by davea, 10 years ago) (diff)

--

Introduction to job processing

In conventional distributed processing systems a job consists of an executable and some input files. The system runs the job on a remote computer and gives you the output files when it's done.

You can do this type of single job submission in BOINC. However, BOINC is designed for situations where

  • You need to process thousands or millions of jobs, using only a few applications.
  • You want jobs to be platform-independent, i.e. you don't have to specify what kind of computer to use.
  • You don't trust remote computers, so you want to to "validate" their results.

To handle these requirements, BOINC defines an architecture in which jobs are processed in a pipeline consisting of the following steps:

  • You submit jobs.
  • The jobs are executed on remote hosts.

In some cases, jobs may be "replicated", i.e. executed on multiple hosts.

  • A ''validator'' examines replicas and selects one of them as 'canonical', or correct.
  • An ''assimilator'' handles validated results, storing them in an archive or database.

Typically validators and assimilators are application-specific, and you'll need to develop them (usually in C++) using frameworks supplied by BOINC. In some cases you may be able to use sample versions that are part of BOINC. Each program should be listed as a daemon in the config.xml file.

Submitting jobs

To set up for submitting jobs, you must

  1. Create an app and app versions.
  2. Write XML template files that describe the job's input and output files (typically the same template files can be used for many jobs).
  3. Set up a validator and assimilator for the application.

Then, for each job, you must

  1. Stage the job's input file(s) on the BOINC server.
  2. Submit the job, using any of several methods (see below).

Once this is done, BOINC takes over: it creates one or more instances of the job, distributes them to client hosts, collects the output files. It validates and assimilates the results, and deletes the input and output files.

Local submission

In this approach, jobs are submitted by programs or scripts run on the BOINC server. The job submitter, of course, must have login access to the server.

Web-based submission

In this approach, jobs are submitted via web pages running on the BOINC server. The job submitter need not have login access to the server.

Remote submission

In this approach, jobs are submitted by programs or web pages running outside the BOINC server.