home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume6 / newbatchb / README < prev   
Encoding:
Text File  |  1986-11-30  |  3.2 KB  |  70 lines

  1. This program is a ``posthumous'' publication of softare Chris Lewis
  2. posted to the net.  I felt it was worthwhile, and decided to clean up
  3. the documentation a bit and publish it in mod.sources.  This README,
  4. the manpage, and the sample control file come from Chris's original
  5. posting, combined with additional information I gleaned from the source.
  6. Read carefully -- there might be errors in the documentation.
  7.         /Rich $alz,
  8.          Moderator of mod.sources
  9.  
  10.  
  11. News admins!  Sick of having millions of cron entries, differing
  12. [cs7]sendbatch scripts, and blown out spool areas with your downstream
  13. feeds?  Well, have I got something for you!
  14.  
  15. The "batcher" program which works with 2.10.2 and 2.10.3 news, solves
  16. all of these problems (if your're lucky!).  You install it in
  17. /usr/lib/news along with a batch control file, "batcher.ctrl".  The
  18. control file contains one line per down-stream site which describes how
  19. to send news to that site.
  20.  
  21. To install, read these next few paragraphs and edit the source as
  22. appropriate.
  23.    +Batching instructions for all downstream sites is contained in one
  24.     file, instead of having to make customized *sendbatches (e.g.,
  25.     differing bits in compress, different grades, different batch
  26.     sizes).
  27.  
  28.    +You can speicfy the batch size for each site, tuning for various
  29.     link qualities.
  30.  
  31.    +If you have 4.3BSD UUCP, you can completely eliminate the chance
  32.     of filling up your spool area.  The control file lets you specify
  33.     the number of bytes allowable in the UUCP queue for each system;
  34.     the real batching is not invoked for a site until they make contact
  35.     and bring the queue size back down below the limit.
  36.  
  37.     This is done by 'popen("uuq -l -s<sitename>", "r")' to find out the
  38.     size of the queue for the site.  Non-4.3 sites can probably write
  39.     their own routine to scan UUCP "C." files to figure out how big the
  40.     queue is for a specific system.  If you don't have this uuq command,
  41.     #undef UUQ in the source.
  42.  
  43.    +If you are running on a 4.xBSD system, batcher will also not invoke
  44.     the real batching software if there is less than 5Mb free on the
  45.     UUCP spool file system.  This is done by doing "df /usr/spool/uucp"
  46.     which I believe works only on 4.[23]BSD systems.  If you can't do
  47.     this, #undef DFABLE in the source.  It should be fairly easy to
  48.     kludge something up for other sites, however.
  49.  
  50. Next, modify your news sys file so that each system you want to control
  51. this way has batching turned on:
  52.     mnetor:....:F:/usr/spool/batch/mnetor
  53. Add entries for those sites in /usr/lib/news/batcher.ctrl.  Information
  54. on the control file is given in the manpage, and in the sample file
  55. distributed.
  56.  
  57. Finally, via cron, run batcher setuid news with either the name of a
  58. site to feed, or a "class" (which'll run all sites with that class).
  59.  
  60. This software has made an incredible difference on this site.  We give
  61. full feeds to 7 sites, plus smaller ones to about another ten.  Until
  62. this was installed, we had to disable batching to one site or another
  63. every second day.  And we blew spool areas on weekends.  We haven't had
  64. to touch *anything* since this was installed.  Even when sites have
  65. been unreachable for weeks on end.
  66.  
  67. Chris Lewis
  68.     formerly at mnetor!clewis,
  69.     might now be reachable at utzoo!spectrix!clewis
  70.