home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / ServiceMail / doc / queuing / overview.doc < prev    next >
Encoding:
Text File  |  1993-05-04  |  1.7 KB  |  36 lines

  1. The ServiceMail queueing system -- overview
  2.  
  3.   In normal (non-queing operation) sendmail forks off one 'mesh' process
  4. to handle each incoming connection. Under light load, this is not
  5. particularly problematic, but under heavy load it could have the
  6. effect that all the jobs compete for time, with none of them making
  7. any real forward progress, slowing down response time dramatically.
  8.   The queueing mechanism is an attempt to alleviate this problem.
  9. Simply, rather than directing incoming mail to 'mesh', sendmail
  10. redirects it to 'pdinq', which logs it (if syslog(3) is enabled),
  11. (optionally) makes an estimate at the priority with which
  12. it is to be handled (Encoding that in the filename), and
  13. writes the message to a spooling directory.
  14.   The system continually runs a daemon 'dspd' which watches the
  15. spool file and dispatches 'mesh' jobs from that directory according to
  16. certain criteria. In the most basic use, you only need to
  17. chose how many jobs you want to run concurrently. (The more jobs
  18. you run, the greater the throughput, obviously, but the more
  19. the system is tied up. Having two many concurrent jobs running,
  20. though, will make the system thrash as before. 5 seems like
  21. a reasonable guess on a SPARC 1+ on a 56 Kb line.)
  22.   dspd wait()s for the jobs to finish and starts more if there are
  23. any, and basically makes it's best attempt to ensure that not less
  24. than 'n' jobs are running at any given time, provided that there
  25. is actually work to do.
  26.   In order to facilitate easy changes, scripts are provided for
  27. orderly starting and stopping of various functions. divert_mbox
  28. and revert_mbox divert aliases to temporary files. divert_svc
  29. and revert_svc divert services at the 'mesh' level, and halt_dequeue
  30. and restart_dequeue shutdown and startup 'dspd'.
  31.  
  32.  
  33.   
  34.  
  35.  
  36.