/[noctool]/source/scheduler.lisp
ViewVC logotype

Log of /source/scheduler.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.17 - (view) (annotate) - [select for diffs]
Fri Feb 13 16:20:23 2009 UTC (5 years, 2 months ago) by jprewett
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +5 -8 lines
Diff to previous 1.16
ONLY SPAWN 1 THREAD / MONITOR (!!!)

Revision 1.16 - (view) (annotate) - [select for diffs]
Fri Dec 19 21:14:23 2008 UTC (5 years, 3 months ago) by jprewett
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15
added PING-INTERVAL slot to PING-MONITOR class

made SHOW method on PING-MONITOR return the image

reworked how PROCESS works with PING-MONITOR
        uses new slot

made MAKE-PING take keyword args instead of optional, added interval arg


fixes with web UI

Revision 1.15 - (view) (annotate) - [select for diffs]
Mon Dec 8 20:53:50 2008 UTC (5 years, 4 months ago) by jprewett
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14
made various config objects set their PARENT slot

made "multiple after methods" work for web UI

Revision 1.14 - (view) (annotate) - [select for diffs]
Wed Dec 3 12:28:01 2008 UTC (5 years, 4 months ago) by jprewett
Branch: MAIN
Changes since 1.13: +15 -3 lines
Diff to previous 1.13
added OVER-RTT slot to PING-MONITOR class to keep track of how many times in a row the RTT limit has been exceeded.  This is mostly for the Web UI stuff.

Changed SCHEDULE from a function to a method so we can play some fun CLOS games there.

Added additional logic to PROCESS for PING-MONITOR
	- some of it is cruft!

reworked HOST-PINGS
	- only consider a host to not be pingable if it has FAILED previously

added more to the Web UI

Revision 1.13 - (view) (annotate) - [select for diffs]
Tue Dec 2 14:52:28 2008 UTC (5 years, 4 months ago) by jprewett
Branch: MAIN
Changes since 1.12: +54 -30 lines
Diff to previous 1.12
added load-monitor to config syntax (not named "load" for obvious reasons!)

added FIND-EQUIPMENT-BY-NAME function to find a piece of gear in the *equipment*
 list by its name.

added FIND-OBJECT method to find an object in a SCHEDULER, TIMESLOT, or EVENT.
This is used to see if an object is already scheduled!  Also hella useful for de
bugging! :)

fixed thunko where all monitors wouldn't be run if the host didn't ping INCLUDIN
G FREAKIN' PING MONITORS!!! D'OH!  (I think I introduced this bug! :P )
added code to ensure that the ping monitor is scheduled!  (may not be needed!)

Worked a little on parsing df output a little better.  Ignoring lines with Files
ystem at the beginning instead of simply assuming the first line is that (I had
some errors where, apparently, the first line was blank, then the second was the
 "Filesystem" line.. :P )

a little work on the Web UI

Revision 1.12 - (view) (annotate) - [select for diffs]
Wed Nov 12 17:56:28 2008 UTC (5 years, 5 months ago) by imattsson
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
IM

Ooooops! Too quick with the sexp-surgery. PROCESS (event) should hopefully
work better now.

Revision 1.11 - (view) (annotate) - [select for diffs]
Mon Nov 10 19:51:54 2008 UTC (5 years, 5 months ago) by jprewett
Branch: MAIN
Changes since 1.10: +0 -33 lines
Diff to previous 1.10
removed cruft

Revision 1.10 - (view) (annotate) - [select for diffs]
Mon Nov 10 19:07:10 2008 UTC (5 years, 5 months ago) by imattsson
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9
IM

Must Make Sure to MP-protect the part we actually care about MP-protecting
(that is, the call to PROCESS rather than the making of threads).

Revision 1.9 - (view) (annotate) - [select for diffs]
Mon Nov 10 18:59:53 2008 UTC (5 years, 5 months ago) by imattsson
Branch: MAIN
Changes since 1.8: +16 -0 lines
Diff to previous 1.8
IM

Checked in what SHOULD be a better way of guarding the number of
simultaneous processes, using SBCL semaphores to do the counting.

This way there should be next-to-no risk losing what we're trying to do,
with a slight downside of not having proper return values from the macro
(not, I believe, that they're actually used).

To change number of processes run-time, er... dunno (maybe
SB-THREAD:SIGNAL-SEMAPHORE with a "high" number?).

Revision 1.8 - (view) (annotate) - [select for diffs]
Mon Nov 10 14:29:45 2008 UTC (5 years, 5 months ago) by jprewett
Branch: MAIN
Changes since 1.7: +101 -43 lines
Diff to previous 1.7
tried to make multithreading stuff work better

XXX CHECK ME XXX

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue Aug 26 15:54:29 2008 UTC (5 years, 7 months ago) by jprewett
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6
added scaffolding to make it easier to get the alert-level of any object
without querying its children.

This should make it easier to instrument the code for web display stuff (I hope)

Revision 1.6 - (view) (annotate) - [select for diffs]
Wed Aug 13 05:56:29 2008 UTC (5 years, 8 months ago) by imattsson
Branch: MAIN
Changes since 1.5: +10 -0 lines
Diff to previous 1.5
IM

Added a scheduler loop and a control variable.

Revision 1.5 - (view) (annotate) - [select for diffs]
Wed Jul 9 14:40:06 2008 UTC (5 years, 9 months ago) by jprewett
Branch: MAIN
Changes since 1.4: +5 -0 lines
Diff to previous 1.4
moved :BEFORE PROCESS method for EVENT class into scheduler.lisp

Revision 1.4 - (view) (annotate) - [select for diffs]
Thu Jul 3 07:30:24 2008 UTC (5 years, 9 months ago) by imattsson
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3
IM

Bulk update of (mostly) network-code-related changes.
There's one change that pertains to graph code (setting the last-updated
field).

Revision 1.3 - (view) (annotate) - [select for diffs]
Fri Jun 20 12:19:58 2008 UTC (5 years, 9 months ago) by jprewett
Branch: MAIN
Changes since 1.2: +5 -0 lines
Diff to previous 1.2
factored out the ID slot from the EQUIPMENT, MONITOR, and BASE-GRAPH
classes.  Created ID-OBJECT mixin class with :AFTER method that causes
the instance to be added to the *ID-OBJECTS* hash table.  Instances may be retrieved
using the newly added GET-INSTANCE-BY-ID macro.

Modified NEXT-TIMESLOT so if it is called without the optional
scheduler and there is no *DEFAULT-SCHEDULER*, a default scheduler is
created and bound to *DEFAULT-SCHEDULER*.

Modified PARSE-DF so that if it is given a line, like an automount
line on MacOS, it munges the line into something useable.  This is
sort-of *(OK, REALLY)* kludgy but it makes it so NOCtool doesn't blow
up on my Mac :) .  Also modified PARSE-DF so that it says the disk is
100% full if there is 0 available space instead of signaling a
DIVIDE-BY-ZERO error.

Added SHOW method for DISK-CONTAINER class.

Revision 1.2 - (view) (annotate) - [select for diffs]
Fri May 16 19:23:06 2008 UTC (5 years, 11 months ago) by jprewett
Branch: MAIN
Changes since 1.1: +5 -1 lines
Diff to previous 1.1
made ip nested macro create ping monitor for the equipment

made process method with event argument use no-noctool-threads feature to turn off creating a separate thread (to help with debugging!).

wrote parse-df function to parse the output of df into a list of lists, each list containing the contents of one disk entry (which is not necessarily one line, at least on my systems).

rewrote process-disk to use parse-df function

Revision 1.1.1.1 - (view) (annotate) - [select for diffs] (vendor branch)
Mon Mar 17 08:27:58 2008 UTC (6 years, 1 month ago) by imattsson
Branch: imattsson
CVS Tags: prealpha
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 , to next main 1.17
Initial check-in.

Revision 1.1 - (view) (annotate) - [select for diffs]
Mon Mar 17 08:27:58 2008 UTC (6 years, 1 month ago) by imattsson
Branch: MAIN
Branch point for: imattsson
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5