2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2004-01-04 06:48:40 +00:00
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Trickle messages");
|
|
|
|
echo "
|
|
|
|
<b>Trickle messages</b>
|
|
|
|
let applications communicate with the server
|
|
|
|
during the execution of a workunit.
|
2004-03-21 00:10:15 +00:00
|
|
|
They are intended for applications that have
|
2004-01-04 06:48:40 +00:00
|
|
|
long work units (multiple days).
|
2004-03-21 00:10:15 +00:00
|
|
|
Trickle messages may go in either direction:
|
2004-03-17 01:26:44 +00:00
|
|
|
'trickle up' messages go from application to server,
|
|
|
|
'trickle down' messages go from server to application.
|
2004-01-04 06:48:40 +00:00
|
|
|
Typical uses of this mechanism:
|
|
|
|
<ul>
|
2004-03-02 03:46:04 +00:00
|
|
|
<li>
|
2004-03-21 00:10:15 +00:00
|
|
|
The application sends a trickle-up message containing
|
|
|
|
its current CPU usage,
|
2004-01-04 06:48:40 +00:00
|
|
|
so that users can be granted incremental credit
|
|
|
|
(rather than waiting until the end of the work unit).
|
2004-03-02 03:46:04 +00:00
|
|
|
|
|
|
|
<li>
|
2004-03-21 00:10:15 +00:00
|
|
|
The application sends a trickle-up message
|
|
|
|
containing a summary of the computational state,
|
2004-01-04 06:48:40 +00:00
|
|
|
so that server logic can decide if the computation should be aborted.
|
2004-03-21 00:10:15 +00:00
|
|
|
|
|
|
|
<li>
|
|
|
|
The server sends a trickle-down message
|
|
|
|
telling the application to abort.
|
2004-04-23 00:05:16 +00:00
|
|
|
|
|
|
|
<li>
|
|
|
|
The server sends a trickle-down message
|
|
|
|
containing the user's current total credit.
|
|
|
|
|
2004-01-04 06:48:40 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>
|
2004-03-02 03:46:04 +00:00
|
|
|
Trickle messages are asynchronous and reliable.
|
2004-03-21 00:10:15 +00:00
|
|
|
Trickle messages are conveyed in scheduler RPC messages,
|
|
|
|
so they may not be delivered immediately after being generated.
|
2004-03-02 03:46:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
<p>
|
2004-07-08 17:59:46 +00:00
|
|
|
To handle trickle-down messages, a project must include the line
|
2004-03-17 01:26:44 +00:00
|
|
|
<pre>
|
2004-07-08 17:59:46 +00:00
|
|
|
<msg_to_host/>
|
2004-03-17 01:26:44 +00:00
|
|
|
</pre>
|
2004-04-23 00:05:16 +00:00
|
|
|
in the <a href=configuration.php>configuration</a> (config.xml) file.
|
2004-03-02 03:46:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2004-01-04 06:48:40 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
?>
|