boinc/db
David Anderson 2e4d561647 sample work generator: wait until transitioner has processed jobs before creating any more
Work generators create jobs (workunits);
the transitioner creates instances (results).
If a work generator tries to maintain a certain number of unsent results
(as the sample work generator does)
it must wait for a bit, after creating jobs,
to let the transitioner create instances of those jobs.
The example work generator waited 5 seconds.

Problem: on a heavily loaded project, the transitioner can fall behind -
minutes or hours behind.
So the above policy can create way too many jobs.

Solution: after creating jobs, the sample work generator
notes the current time X,
then waits until the transitioner catches up to time X
(i.e., until the min workunit.transition_time exceeds X).
This ensures that instances have been created for all the new jobs.

Other work generators the limit the number of unsent jobs
should use the same technique;
use min_transition_time(x) to get the min transition time.

Code cleanup: get_double should be a member of DB_CONN, not DB_BASE.
2013-12-14 16:36:18 -08:00
..
Makefile.am Server: various fixes for "make install" 2013-08-24 20:36:49 -07:00
boinc_db.cpp sample work generator: wait until transitioner has processed jobs before creating any more 2013-12-14 16:36:18 -08:00
boinc_db.h Add support for multi-size apps 2013-04-25 00:27:35 -07:00
boinc_db_types.h scheduler: parse <opencl_cpu_prop> in scheduler requests correctly 2013-11-28 14:11:42 -08:00
bolt_constraints.sql
bolt_schema.sql
bossa_constraints.sql
bossa_schema.sql
constraints.sql server/web: preliminary support for badges 2013-12-05 10:14:26 -08:00
db_base.cpp sample work generator: wait until transitioner has processed jobs before creating any more 2013-12-14 16:36:18 -08:00
db_base.h sample work generator: wait until transitioner has processed jobs before creating any more 2013-12-14 16:36:18 -08:00
init_db
schema.sql server/web: preliminary support for badges 2013-12-05 10:14:26 -08:00
schema_condor.sql Condor: debug set_expire_time RPC 2013-09-17 23:14:57 -07:00
schema_locality.sql - GUI RPC: more replacement of std::string 2010-03-13 04:40:37 +00:00
schema_vda.sql - file upload handler: add an #ifdef for disabling locking of files 2012-08-15 21:27:38 +00:00