2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2003-08-19 06:44:58 +00:00
|
|
|
require_once("docutil.php");
|
2006-07-17 16:38:53 +00:00
|
|
|
page_head("Work-handling daemons");
|
2003-08-19 06:44:58 +00:00
|
|
|
echo "
|
2003-01-23 08:07:48 +00:00
|
|
|
|
|
|
|
<p>
|
2004-05-31 18:13:01 +00:00
|
|
|
A BOINC project includes of a set of daemons
|
2006-07-17 16:38:53 +00:00
|
|
|
for generating and handling work.
|
|
|
|
Each program should be listed as a
|
2006-07-18 20:08:25 +00:00
|
|
|
<a href=project_daemons.php>daemon</a> in the
|
2004-02-09 05:11:05 +00:00
|
|
|
<a href=configuration.php>config.xml</a> file.
|
2006-07-17 16:38:53 +00:00
|
|
|
Most daemons have the command-line options:
|
2005-07-17 21:19:35 +00:00
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("-d N",
|
|
|
|
"Sets the verbosity level.
|
|
|
|
1 = critical messages only,
|
|
|
|
2 = normal messages,
|
|
|
|
3 = detailed debugging info."
|
|
|
|
);
|
|
|
|
list_item("-one_pass",
|
|
|
|
"Process all available items, then quit."
|
|
|
|
);
|
|
|
|
list_item("-mod n i",
|
|
|
|
"Handle only workunits for which mod(id, n) = i.
|
|
|
|
This lets you run the daemon on arbitrarily many machines.
|
|
|
|
(available for feeder, transitioner, validator)."
|
|
|
|
);
|
2006-07-11 21:56:53 +00:00
|
|
|
list_item("-sleep_interval N",
|
|
|
|
"How long to sleep when there's nothing to do."
|
|
|
|
);
|
2005-07-17 21:19:35 +00:00
|
|
|
list_end();
|
2003-01-23 08:07:48 +00:00
|
|
|
|
2005-07-17 21:31:24 +00:00
|
|
|
echo "
|
2005-02-01 21:11:08 +00:00
|
|
|
<h3>Work generator</h3>
|
2003-01-23 08:07:48 +00:00
|
|
|
<p>
|
2004-02-09 05:11:05 +00:00
|
|
|
There is one work generator per application.
|
|
|
|
It creates workunits and the corresponding input files.
|
2004-04-13 21:31:55 +00:00
|
|
|
It is application-specific, and uses
|
2004-05-31 18:13:01 +00:00
|
|
|
<a href=tools_work.php>BOINC library functions</a>
|
2004-02-09 05:11:05 +00:00
|
|
|
for registering the workunits in the database.
|
2004-04-13 21:31:55 +00:00
|
|
|
<p>
|
|
|
|
During testing, you can create a single workunit using
|
2005-01-10 20:46:33 +00:00
|
|
|
<a href=tools_work.php>create_work</a>,
|
2004-04-13 23:55:05 +00:00
|
|
|
then use the daemon program
|
2005-02-01 21:11:08 +00:00
|
|
|
<a href=busy_work.php>make_work</a>
|
2004-04-13 23:55:05 +00:00
|
|
|
to copy this workunit as needed to maintain a given supply of work.
|
2004-02-09 05:11:05 +00:00
|
|
|
|
2005-05-26 20:25:00 +00:00
|
|
|
<h3>Feeder</h3>
|
|
|
|
<p>
|
|
|
|
This program is supplied by BOINC and is application independent.
|
|
|
|
It creates a shared-memory segment used to pass database records
|
|
|
|
to CGI scheduler processes.
|
2006-06-04 16:28:29 +00:00
|
|
|
This data includes applications, application versions,
|
|
|
|
and 'work items' (an unsent result and its corresponding workunit).
|
2006-05-04 04:29:28 +00:00
|
|
|
It has the following command-line options:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("-random_order",
|
2006-06-04 16:28:29 +00:00
|
|
|
"Enumerate work items in order of increasing result.random"
|
2006-05-04 04:29:28 +00:00
|
|
|
);
|
|
|
|
list_item("-priority_order",
|
2006-06-04 16:28:29 +00:00
|
|
|
"Enumerate work items in order of decreasing result.priority"
|
2006-05-04 04:29:28 +00:00
|
|
|
);
|
|
|
|
list_item("-priority_order_create_time",
|
2006-06-04 16:28:29 +00:00
|
|
|
"Enumerate work items in order of decreasing result.priority,
|
2006-05-04 04:29:28 +00:00
|
|
|
then increasing workunit.create_time"
|
|
|
|
);
|
|
|
|
list_item("-sleep_interval N",
|
|
|
|
"Sleep N seconds if nothing to do"
|
|
|
|
);
|
|
|
|
list_item("-allapps",
|
2006-07-11 21:56:53 +00:00
|
|
|
"Interleave work items from all applications.
|
|
|
|
Weight applications according to the value of their 'weight' field;
|
2006-10-20 15:56:22 +00:00
|
|
|
if all weights are zero, results are interleaved uniformly.
|
|
|
|
Without this option, runnable results are enumerated
|
|
|
|
in an indeterminate order,
|
|
|
|
and there may be periods when only results from
|
|
|
|
one application are available for sending.
|
|
|
|
"
|
2006-05-04 04:29:28 +00:00
|
|
|
);
|
|
|
|
list_item("-purge_stale X",
|
|
|
|
" remove work items from the shared memory segment
|
|
|
|
that have been there for longer then x minutes
|
|
|
|
but haven't been assigned"
|
|
|
|
);
|
|
|
|
list_end();
|
|
|
|
echo "
|
|
|
|
<p>
|
|
|
|
If a user's project preferences include elements of the form
|
|
|
|
<app_id>N</app_id>
|
|
|
|
then the scheduler will send the user work only from those applications.
|
2005-05-26 20:25:00 +00:00
|
|
|
|
2004-05-31 18:13:01 +00:00
|
|
|
<h3>Transitioner</h3>
|
2004-02-09 05:11:05 +00:00
|
|
|
<p>
|
2004-05-31 18:13:01 +00:00
|
|
|
This program is supplied by BOINC and is application independent.
|
|
|
|
It handles state transitions of workunits and results.
|
2004-02-09 05:11:05 +00:00
|
|
|
It generates initial results for workunits,
|
|
|
|
and generates more results when timeouts or errors occur.
|
|
|
|
|
2005-02-01 21:11:08 +00:00
|
|
|
<h3>Validator</h3>
|
2004-02-09 05:11:05 +00:00
|
|
|
<p>
|
|
|
|
There is one validator per application.
|
|
|
|
It compares redundant results and selects a <b>canonical result</b>
|
2003-01-23 08:07:48 +00:00
|
|
|
representing the correct output,
|
|
|
|
and a <b>canonical credit</b> granted to users and hosts
|
2004-02-09 05:11:05 +00:00
|
|
|
that return the correct output.
|
2006-06-09 20:47:09 +00:00
|
|
|
Depending on your application,
|
|
|
|
you may be able to use a BOINC-supplied validator,
|
|
|
|
or you may have to develop a customized validator;
|
|
|
|
<a href=validate.php>details are here</a>.
|
2004-02-09 05:11:05 +00:00
|
|
|
|
2005-02-01 21:11:08 +00:00
|
|
|
<h3>Assimilator</h3>
|
2004-02-09 05:11:05 +00:00
|
|
|
There is one assimilator per application.
|
|
|
|
It handles workunits that are 'completed':
|
2003-08-31 00:13:09 +00:00
|
|
|
that is, that have a canonical result or for which
|
2003-01-23 08:07:48 +00:00
|
|
|
an error condition has occurred.
|
|
|
|
Handling a successfully completed result might involve
|
2004-02-09 05:11:05 +00:00
|
|
|
record results in a database and perhaps generating more work.
|
2003-01-23 08:07:48 +00:00
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
<h3>File deletion</h3>
|
2005-02-01 21:11:08 +00:00
|
|
|
The application-independent program
|
|
|
|
<a href=file_deleter.php>file_deleter</a>
|
|
|
|
deletes input and output files when they are no longer needed.
|
|
|
|
|
|
|
|
<h3>Database purging</h3>
|
|
|
|
The application-independent program
|
|
|
|
<a href=db_purge.php>db_purge</a>
|
|
|
|
removes work-related database entries when they are no longer needed.
|
|
|
|
This keeps your database at a constant size even
|
|
|
|
when your project runs for a long time.
|
2003-08-19 06:44:58 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|