Commit Graph

69 Commits

Author SHA1 Message Date
Bruce Allen fe47e56df6 scheduler: use locking to prevent more than one scheduler instance from
running for a given host.  This works by creating a file called
CGI_<HOSTID> in the cgi-bin/ directory, and using Posix advisory file
locking.  I have been testing this code for three days and am seeing
*some* invocations of this.  David, I'll send details to the dev mailing
list or talk with you about it later this week.  Note: this code probably
can be removed in the future, when the core client problems are fixed.
Also note: I don't know if this is compatible with the fast cgi sched.

svn path=/trunk/boinc/; revision=6172
2005-05-17 05:55:24 +00:00
David Anderson d8a43ac0fe *** empty log message ***
svn path=/trunk/boinc/; revision=5971
2005-04-29 06:55:44 +00:00
David Anderson 1c119cb037 *** empty log message ***
svn path=/trunk/boinc/; revision=5889
2005-04-18 18:42:29 +00:00
David Anderson 647c8122b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5886
2005-04-18 17:54:03 +00:00
David Anderson b152c3f453 *** empty log message ***
svn path=/trunk/boinc/; revision=5530
2005-02-26 00:24:37 +00:00
Bruce Allen 0f6202fc9e When daily result quota exceeded, tell users what its value is for that host.
svn path=/trunk/boinc/; revision=5493
2005-02-22 17:53:17 +00:00
David Anderson 8d0ab453b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5443
2005-02-16 23:17:43 +00:00
Bruce Allen 52d0c274c1 More sensible use of request_delay. If a host contacts the
scheduler, and fails to get work because there are N secs
      of pending work, then send a delay request of min(3600, N/5) secs.
      Otherwise the same host was coming back every hour, without being able
      to get additional work.
Implemented by adding a method set_delay() to
      SCHEDULER_REQUEST. This sets the delay to the maximum of the
      previous requested delay or the current requested delay. The
      delay is NEVER set longer than two days.

svn path=/trunk/boinc/; revision=5437
2005-02-16 01:14:12 +00:00
Bruce Allen e7e9d6d9a6 - Scheduler changes (global):
- Ignore CPU limitations and resource share entirely, IF
      a host:
        (1) has no work for this project
        (2) has no results in this sched reply
      This ensures that any host that wants to do work will at least
      get *something*. It liberalizes slightly David A's approach
      from 14 Feb 2005. Eliminate use_time_stats from wreq structure.
    - Scheduler changes (locality scheduling only):
    - Improve return value info for some functions.
    - Modify send_old_work() to accept a t_min < t < t_max time range
    - New sched locality algorithm to send work to hosts with no files.
      Send oldest result in the time range A < t < B where
      B = locality_scheduling_timeout/2
      A = B - rand*locality_scheduling_timeout/2
      Here rand is a uniformly distributed random number in [0,1].
    - When an unsent result is older than locality_scheduling_timeout, no
      longer send it to the FIRST host that requests work.  Instead send
      it to the first host which has a connection speed > 100kb/s.
    - Fix file deletion.  Previously we were deleting files from hosts
      when they got no work for that file.  But this might have been
      because the work was infeasible (cpu time).  Now delete files
      from host ONLY if there is no work remaining for that file.

svn path=/trunk/boinc/; revision=5434
2005-02-15 21:18:20 +00:00
David Anderson c825780c5a *** empty log message ***
svn path=/trunk/boinc/; revision=5426
2005-02-14 20:11:01 +00:00
David Anderson 0ddf2ed101 *** empty log message ***
svn path=/trunk/boinc/; revision=5423
2005-02-14 04:39:07 +00:00
David Anderson 7df0115850 *** empty log message ***
svn path=/trunk/boinc/; revision=5376
2005-02-09 20:06:15 +00:00
David Anderson daa7c4559d *** empty log message ***
svn path=/trunk/boinc/; revision=5335
2005-02-06 21:26:21 +00:00
David Anderson 4a0fb78aa6 *** empty log message ***
svn path=/trunk/boinc/; revision=5258
2005-01-31 23:20:49 +00:00
David Anderson 896d0b8a46 *** empty log message ***
svn path=/trunk/boinc/; revision=5257
2005-01-31 22:19:03 +00:00
Bruce Allen 60c569a644 Extended scheduler run-time debug option to include writing of requests as
well as replies to a file.

svn path=/trunk/boinc/; revision=5248
2005-01-31 16:10:49 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
David Anderson 2c5f1d1a5b *** empty log message ***
svn path=/trunk/boinc/; revision=4772
2004-12-06 22:41:19 +00:00
David Anderson 448c9ab56d *** empty log message ***
svn path=/trunk/boinc/; revision=4283
2004-10-01 22:00:39 +00:00
David Anderson 49b256f338 *** empty log message ***
svn path=/trunk/boinc/; revision=4280
2004-10-01 07:49:01 +00:00
David Anderson 900042214d *** empty log message ***
svn path=/trunk/boinc/; revision=4251
2004-09-27 19:44:40 +00:00
David Anderson 161fb2868f *** empty log message ***
svn path=/trunk/boinc/; revision=4189
2004-09-13 18:05:54 +00:00
David Anderson e01aa9de45 *** empty log message ***
svn path=/trunk/boinc/; revision=4182
2004-09-10 21:02:11 +00:00
David Anderson 76a5940333 *** empty log message ***
svn path=/trunk/boinc/; revision=4178
2004-09-10 00:41:48 +00:00
David Anderson 89b723e2d1 *** empty log message ***
svn path=/trunk/boinc/; revision=4067
2004-08-16 11:31:59 +00:00
Rom Walton 229c791dd4 *** empty log message ***
svn path=/trunk/boinc/; revision=4061
2004-08-14 00:37:38 +00:00
Brian Boshes 13200c3f4c *** empty log message ***
svn path=/trunk/boinc/; revision=3999
2004-08-05 22:14:23 +00:00
Daniel Hsu 1eb4a7a622 *** empty log message ***
svn path=/trunk/boinc/; revision=3972
2004-08-03 22:52:10 +00:00
Daniel Hsu fcb2a85388 *** empty log message ***
svn path=/trunk/boinc/; revision=3939
2004-07-22 18:56:54 +00:00
Karl Chen afd778de8a *** empty log message ***
svn path=/trunk/boinc/; revision=3863
2004-07-13 13:54:09 +00:00
Daniel Hsu 7879fe53e6 *** empty log message ***
svn path=/trunk/boinc/; revision=3801
2004-07-06 21:51:49 +00:00
David Anderson ce6210cff4 *** empty log message ***
svn path=/trunk/boinc/; revision=3784
2004-07-06 04:10:51 +00:00
David Anderson 290f54e6eb server_types.C
svn path=/trunk/boinc/; revision=3698
2004-06-24 21:00:13 +00:00
David Anderson 57f2aec66d *** empty log message ***
svn path=/trunk/boinc/; revision=3688
2004-06-22 22:56:50 +00:00
David Anderson d2f8addc5a *** empty log message ***
svn path=/trunk/boinc/; revision=3377
2004-05-13 18:18:22 +00:00
David Anderson 6769f9f1e5 *** empty log message ***
svn path=/trunk/boinc/; revision=3375
2004-05-13 04:48:19 +00:00
David Anderson 7615fe72fa *** empty log message ***
svn path=/trunk/boinc/; revision=3312
2004-05-03 02:18:35 +00:00
David Anderson 00191f0456 *** empty log message ***
svn path=/trunk/boinc/; revision=3308
2004-04-30 18:26:20 +00:00
David Anderson b13e9aa1bc *** empty log message ***
svn path=/trunk/boinc/; revision=3194
2004-03-31 06:07:17 +00:00
David Anderson a158092dd5 *** empty log message ***
svn path=/trunk/boinc/; revision=3128
2004-03-23 03:59:32 +00:00
David Anderson f80a5f1a12 *** empty log message ***
svn path=/trunk/boinc/; revision=3083
2004-03-17 01:26:44 +00:00
David Anderson ca54f0c552 *** empty log message ***
svn path=/trunk/boinc/; revision=2927
2004-01-26 19:29:39 +00:00
David Anderson a68fc8c6da *** empty log message ***
svn path=/trunk/boinc/; revision=2856
2004-01-08 00:27:59 +00:00
David Anderson 8bb76936a1 *** empty log message ***
svn path=/trunk/boinc/; revision=2753
2003-12-07 18:58:08 +00:00
David Anderson 738d605caf *** empty log message ***
svn path=/trunk/boinc/; revision=2629
2003-11-04 22:22:06 +00:00
David Anderson 54d5a1d8ca *** empty log message ***
svn path=/trunk/boinc/; revision=2617
2003-11-02 23:08:06 +00:00
Karl Chen bf69d83376 *** empty log message ***
svn path=/trunk/boinc/; revision=2123
2003-08-15 22:39:56 +00:00
David Anderson 636bb2ce04 license change
svn path=/trunk/boinc/; revision=1629
2003-07-01 20:37:09 +00:00
David Anderson fd316544cd various
svn path=/trunk/boinc/; revision=1536
2003-06-18 20:52:17 +00:00
Tim Lan b68ed44f56 Added support for project graphics
svn path=/trunk/boinc/; revision=1398
2003-06-11 23:36:41 +00:00