loadwatch

loadwatch project allows a single child process to run only when the load on a machine is within certain bounds.
Download

loadwatch Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Lantz Moore
  • Publisher web site:
  • ftp://rplay.doit.org/pub/loadwatch/

loadwatch Tags


loadwatch Description

loadwatch project allows a single child process to run only when the load on a machine is within certain bounds. loadwatch project allows a single child process to run only when the load on a machine is within certain bounds. When the machines load passes the high load mark, then the child process is stopped.The process is only restarted when the machines load drops below the low load mark. The load is checked at a user definable interval. loadwatch is distributed under the GNU GPL.Usage:loadwatch -d < int> load sampling interval (10 seconds) -h < float> high load mark (1.25) -l < float> low load mark (0.25) -n < copies> number of children to fork (1) -u < filename> file that will be used to externally control a loadwatch process. -p < pid> pid of process to control (loadwatch will actually send signals to the group containing this pid) NOTE: -p and < command> are mutually exclusive, but one has to be specified.Example:loadwatch -d 10 -h 1.25 -l .25 -- ./rc5deswhich means: check the load every 10 seconds, stop rc5des when the load is greater than 1.25 and restart rc5des when the load drops to .25.lw-ctl < filename> < cmd> < filename> is the control file, this corresponds to a unix domain socket. < cmd> is the command to send to the loadwatch process. RUN -> put loadwatch into RUN mode, that is the child process runs regardless of the load. STOP -> put loadwatch into STOP mode, that is, the child process will not run regardless of the load. WATCH -> WATCH mode, the normal load watching mode.Example:lw-ctl ./fooey RUNCauses the loadwatch process (if it was started with "-u ./fooey") to gointo RUN mode. you could put lw-ctl in a cron job that runs in themorning to put the job in STOP mode and then again in the evening to putthe job back into WATCH mode.The children which loadwatch forks are all part of the same process group.loadwatch stops and starts the processes by signalling the processgroup with SIGSTOP and SIGCONT respectively.Send suggestions and bug reports to . if you do anythinginteresting with loadwatch, let me know. i use it for controlling thedistributed.net clients, but i figure it'd be good to control thinks likecrack as well.


loadwatch Related Software