Article View: news.software.nntp
Article #2236News.admin.technical draft FAQ.
From: ian
Date: Sun, 14 Nov 1993 00:30
Date: Sun, 14 Nov 1993 00:30
994 lines
42687 bytes
42687 bytes
I'm sorry that I've not had more time to do more with this file than
tinker with it, but I thought I really ought to post it. There are a
few emails I've had with corrections which aren't yet included, mainly
since the machine I was using to edit it on is out of commission at the
moment. Sorry, but all contributions welcome.
I intend that this should be a file with non-software specific things
in. Much of the ground is covered by excellent and long-standing
postings originated by Spaf, and others, but I hope to fill in
much-needed gaps, and provide pointers to what's where.
Followups set to "poster" on this one. I'm too ashamed of it..
Ian
News.Admin.Technical Frequently Asked Questions W/Answers (version 0.51)
-----------------------------------------------------------------------
<<< the NAT FAQ >>>
Last modified: 93/09/19
These answers come almost exclusively from the comments of other net
persons. (Thanks especially to Scott our fearless moderator.) I do NOT
have experience with every one of these topics. If I mis-speak, please
let me know, and I will attempt to correct it in future versions of the
FAQ.
For now, I'm just going to post this to N.A.T. When I get something
more complete together, I'll try to arrange for it to go to news.answers
and to be avaialble via ftp. Also, keep in mind that this is still a
draft. Grammar will improve along with everything else as time goes on,
and I make future releases.
Questions modified since last posting are marked with an `!'. In the
future new questions will be marked with a `+', but right now every
question except 5.3 is new. Finally, questions marked with a `*' are
ones for which I do not have a good answer.
Index
=====
Section 0: Meta Issues
0.01 Where can I get a copy of this FAQ?
0.02 What is News Admin Technical (NAT) all about?
0.03 What other postings are there relevant to news admin?
0.04 What books are there on the subject?
0.05 What news groups other than NAT are relevant?
Section 1: Getting Ready to be a Server
1.01 What resources are required?
1.02 What software do I need?
1.03 How do all of these packages go together?
1.04 How much time will I spend administering it?
1.05 How do I get a feed?
Section 2: Server Software
2.01 B-News
2.02 C News
2.02.01 Where do I find the source for C News?
2.02.02 Where else can I find information on making my C News setup work?
2.02.03 What's the difference between the various versions?
2.02.04 What are some intricate examples for expire?
2.02.05 What might my crontab look like?
2.02.06 A bunch of articles got junked because of bad info in the active
file how do I put them where they really belong?
2.03 INN
2.03.01 Where do I find the source for INN?
[obs 2.03.02 Do I upgrade to 1.3 or wait for 1.4?]
2.03.03 What makes INN so different from C News?
2.04 What are my options if I run some operating system other than unix?
Section 3: Transport Software
*3.01 UUCP
*3.01.01 How do I do UUCP over the internet?
*3.01.02 << DON'T REALLY KNOW WHAT TO DO HERE--I HAVEN'T USED IT FOR NEWS >>
3.02 NNTP (aka the Reference Implementation)
3.02.01 Where do I find the source to NNTP?
3.02.02 What's the difference between NNTP and INN?
*3.02.03 What are some examples of nntp-access entries?
3.02.04 What are some extensions to NNTP?
*3.03 NNTPLink
*3.03.01 Where do I find the source to NNTPLink?
*3.03.02 What is it/why might I want it?
3.04 E-mail
3.04.01 How do I email articles to someone?
3.04.02 How do I load email into a usenet group?
3.04.03 How about a full-gateway of mailing-lists?
Section 4: Newsreaders
4.01 What are some of the more popular news readers for Unix and where
can I find them?
4.02 ...for X-windows?
4.03 ...for PCs?
4.04 ...for Macs?
*4.05 ...for VMS?
Section 5: Administration Issues
5.01 What's NOV?
5.02 What software currently uses NOV?
!5.03 How do I provide news to multiple hosts for reading while maintaining
only one news spool? (a.k.a. "The Great NNTP vs. NFS Debate")
*5.04 How can I improve performance/decrease load on my system?
*5.05 How do I keep my newsgroups file current?
*5.06 Should I let control messages be handled automatically?
5.07 Should I remove groups upon receipt of an rmgroup message?
5.08 Why shouldn't I alias unmoderated groups to moderated ones?
5.09 How do I set up locally moderated groups?
*5.10 Do distributions work?
5.11 What is sendsys bombing?
5.12 What's some good software for calculating news statistics?
Questions and Answers
=====================
========Section 0: Meta Issues========
0.01 Where can I get a copy of this FAQ?
At the moment the NAT-FAQ is only posted to news.admin.technical. Maybe we
will aspire to comp.answers someday, but for the time being you can find it
there and via anonymous ftp to "ftp.pipex.net:pub/news/natfaq-draft".
----------------------------------------------------
0.02 What is News Admin Technical (NAT) all about?
From the "News.admin.technical moderation policies" August 8, 1992:
This group is dedicated to the technical aspects of maintaining the
netnews environment. Puzzled by the RFCs? Trying to diagnose a tricky
problem on your system? Then post here.
Personal abuse, repetition of things that have been hashed to death
already, and articles more appropriate for news.admin.policy (questions of
law and policy) would be rejected by the moderator with a request to post
them there instead.
----------------------------------------------------
0.03 What other postings are there relevant to news admin?
USENET Software: History and Sources
posted to: news.admin.misc, news.announce.newusers, news.software.readers,
news.software.b, news.answers [BUT NOT SINCE APRIL]
maintainer: <none>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/usenet-software/part1.Z
How to become a USENET site
posted to: news.admin, news.announce.newusers, news.answers
maintainer: Jonathan I. Kamens <jik@athena.mit.edu>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/site-setup.Z
How to Construct the Mailpaths File
posted to: news.lists, news.admin.misc, news.answers
maintainer: Gene Spafford <spaff@cs.purdue.edu>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/mailpaths/part1.Z
INN General Information (and compiling)
posted to: news.software.nntp, news.software.b, news.answers
maintainer: Tom Limoncelli <tal@warren.mentorg.com>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/inn-faq/part1.Z
INN Configuration FAQ
posted to: news.software.nntp, news.software.b, news.answers
maintainer: Tom Limoncelli <tal@warren.mentorg.com>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/inn-faq/part2.Z
UNIX Email Software - a Survey
posted to: news.admin.misc, comp.mail.misc, news.answers, comp.answers
maintainer: Chris Lewis <mailfaq@ferret.ocunix.on.ca>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/mail-setup/part1.Z
UUCP Mail, News, and Gateway Software
posted to: alt.bbs.waffle, comp.mail.uucp, news.software.readers,
vmsnet.uucp
maintainer: James H. Thompson <jimmy_t@verifone.com>
ftp from: ???
FAQ: news.software.anu-news
posted to: news.software.anu-news, news.answers
maintainer: Billy Barron <billy@sol.acs.unt.edu>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/anu-faq.Z
NN Frequently Asked Questions (FAQ) with Answers
posted to: news.software.nn, news.answers
maintainer: Bill Wohler <wohler@sap-ag.de>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/nn-faq.Z
Waffle Frequently Asked Questions
posted to: comp.bbs.waffle, news.answers
maintainer: Vincent D. Skahan <vds7789@aw2.fsl.ca.boeing.com>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/waffle-faq.Z
List of Active Newsgroups, Parts I and II
posted to: news.lists,news.groups,news.announce.newusers,
news.announce.newgroups,news.answers
maintainer: David Lawrence <tale@uunet.uu.net>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/active-newsgroups/*
Alternative Newsgroup Hierarchies, Parts I and II
posted to: news.lists,news.groups,news.announce.newusers,
news.announce.newgroups,news.answers
maintainer: David Lawrence <tale@uunet.uu.net>
ftp from: rtfm.mit.edu:pub/usenet/news.answers/alt-hierarchies/*
----------------------------------------------------
0.04 What books are there on the subject?
_Managing UUCP and Usenet_
A Nutshell Handbook from O'Reilly & Associates, Inc.
ISBN 0-937175-48-X
_Unix Communications_, 2nd Edition
by Bart Anderson, Bryan Costales and Harry Henderson
The Waite Group
ISBN 0-672-22773-8
James Deibele writes:
"I cannot recommend this book highly enough. It covers mail,
mailx, mush, elm, mh for mail, plus readnews, rn, vnews, nn, and
postnews. It includes articles on the history of Usenet, how
news works, netiquette, etc. For those who have access to the
UUCP and tip/cu commands, it discusses those too. It gives some
coverage of /bin/mail (all it deserves), write, talk, chat, ftp,
gateways, kermit, and xmodem."
later in the same article (which was posted to misc.books.technical):
I think this is a much better book than _Using UUCP and Usenet_,
$21.95, ISBN 0-937175-79-X, published by O'Reilly and
Associates. That book only covers a fraction of what _UNIX
Communications_ does, and while the smaller size may be less
intimidating to the complete novice, the missing material will
soon prove annoying. It's better than nothing, but I wish that
O'Reilly had been overhauling it regularly the way that they've
been doing with the companion volume, _Managing UUCP and
Usenet_, $27.95, ISBN 0-937175-93-5, now in it's 10th edition.
_Managing UUCP and Usenet_ is the best book for people who are
administering mail and news. It's also the only book for people
who do that type of thing. It's a solid book, but don't expect
it to make you a sendmail expert overnight.
----------------------------------------------------
0.05 What news groups other than NAT are relevant?
There are a number of news groups which might be worth your consideration,
but a short list might include:
news.software.b C news, B news, INN
news.software.nntp NNTP issues
news.software.readers readers (nn has its own group)
news.software.anu-news ANU-NEWS
comp.protocols.tcp-ip.ibmpc if you use PCs in an IP network
----------------------------------------------------
========Section 1: Getting Ready to be a Server========
Read Jonathan Kamens' article "How to become a USENET site".
1.01 What resources are required?
In order to become a "real" usenet site, you need server software, a
machine to run it on, and disk space for the news spool itself. The
actual resources that are required will depend greatly on the size
of your feed and the software you run. Here's an idea of what might
be required for a unix based server:
[Maintainer's note: Anyone out
there want to send me some info about resources needed for VMS,
VM/CMS, DOS, etc.?)
Memory:
C News - modest requirements.
INN - as much as you can get. INN holds a lot of things in
memory, and was designed on the assumption that it is cheap
and plentiful. It typically takes around 6-10Mb of virtual
memory, and seems comfortable in a working set of around 2Mb.
If your OS doesn't support virtual memory, forget it.
Disk:
As of mid-1993, you might find that 300-400 megs is adequate to
keep a full feed - everything you can lay your hands on - for
about 5 days Several sites publish lists of volumes in
news.lists, notably uunet's "********" and Matthias's
"NewsStats" postings.
- you could save a lot by not carrying or trimming expire time
on the picture binaries groups (alt.binaries), etc.
On the subject of news volume, David Lawrence <tale@uunet.uu.net> (chief
news admin at uunet) writes:
Based on data collected since 1984:
value doubles correlation coefficient squared
(months) (exponential fit)
articles/day 15 0.98
megabytes/day 15 0.99
posting sites 18 0.99
posting users 17 0.99
groups 20 0.96
Time:
- you will need someone to set things up and maintain them (see
question 1.04 for more info)
----------------------------------------------------
1.02 What software do I need?
There are three parts to any news system (occasionally, however, a
particular software package will implement more than one part). First,
you must have the server software. Secondly, you need transport
software, and, finally, you need reader software.
The choice of a news reader is highly personal, and you will probably
find that almost any group of users will neccesitate support for more
than one reader. Readers come in two varieties: filesystem and NNTP
based. If you choose an NNTP based news reader, the reader may be run on
a machine different from the server, but the two must be connected via
TCP/IP, or possibly DECnet, and you must have an NNTP program (nntpd, or
nnrpd from the INN package) on the server.
There are a great many viewpoints on the subject of server and transport
software, but I would suggest one of the following combinations:
- unix; well-connected; ethernet based; full-feed (maybe multiple feeds):
INN for server and transport
- unix; less hardware, worse connections, or stranger variety (harder to
port to):
C News for server, UUCP or NNTP for transport
- DOS, UUCP based:
waffle (includes server and UUCP for transport)
- DOS, NNTP based:
use an NNTP client and find a unix server :-)
(I don't know how to recommend adequately for other platforms. In many
cases, however, the point is moot because most platforms do not afford
very many options.)
----------------------------------------------------
1.03 How do all of these packages go together?
Server software has 3 basic functions: Unpack articles from a
feed and maintain the news spool. Queue articles for feeding to other
systems. And, expire articles according to a modifiable schedule.
Transport software serves one and some times two funcitons.
Most importantly, it provides the basic connectivity between servers.
Articles propagate in an eclectic fashion--each server is connected to
one or more other servers. It stores articles of local interest and
forwards articles which are of interest to its neighbors and which it
cannot readily determine that the neighbor has already seen. In some
cases an article will be sent to a given site more than once in which
case the server just ignores it. The second, and optional, function of
transport software (in the case of NNTP) is to provide a means for
reading news from a system which has only client and not server
software. The two most common ways of news transport are UUCP (store
and forward--usually over serial lines) and NNTP. NNTP is implmented by
both the so-called Reference Implmentation (NNTP) and INN.
News readers access the news spool and present articles to the
user. They may get to the articles via NNTP, an NFS mounted file
system, or directly on a local disk. Typically, they are independent of
the server software, but in some cases they require more information
than the basic news headers provide in order to efficiently provide
advanced article viewing based on article inter-relationships. If this
is the case, you may need to run a special program on the server to
provide this additional information in the database. Historically, this
extra information is very different from one system to the next, but the
new News Overview System (NOV) promises to change all that by providing
a common database format for a variety of different readers.
----------------------------------------------------
1.04 How much time will I spend administering it?
Usenet administration will consist of various periods of
frenzied activity when new software is installed or a crises occurs
(such as finding that news traffic has increased to the point that your
disk has filled up or you have run out of inodes). Spread among long
periods during which you can spend nearly as much or as little time as
you want.
It is easy to become involved in making sure that you have all
the right groups, political issues are properly addressed, articles are
canceled whenever something goes wrong and that your feeds are running
at high efficiency, but it is also quite possible to setup a feed which
will run itself for the most part and send you email whenever something
goes really wrong.
You should note, however, that most of the software will not
come configured with "good judgement". If you want a feed which will
truly run itself, you will probably have to spend a fairly large amount
of time at some point customizing everything so it complains at (and
only at) the right times.
Naturally, you should also consider the amount of time you will
spend teaching/placating the users. This last consideration will very
greatly from place to place.
----------------------------------------------------
1.05 How do I get a feed?
This depends a lot on what type of connection you have. If you have a
full internet TCP/IP connection, ask your service provider or for
advice. Most commercial IP providers will give you a newsfeed if you
buy IP connection from them.
If your connection is UUCP, you might find a local
organization which will give you a feed, or else you might connect to a
commercial provider. See Jonathan Kamens' "How to become
a USENET site" posting for more information.
There is a regular posting listing Internet service providers in the
UK [Hmm.. is it archived? check] posted to uk.net [check] and
alt.internet.services
----------------------------------------------------
========Section 2: Server Software========
2.01 B-News
B-News is no longer being maintained; it has all but been disowned by its
maintainer, Rick Adams. UUNET, the site he runs, uses INN and C News.
Some vendors provide versions of B News with their OS. The level of support
from the vendor varies.
If you must run B News, run either version 2.11.8 or 2.11.19, which were both
stable versions. B News 2.11.19 can be enhanced with the public-domain 'dbz'
fast database manager for Usenet news. This provides a significant speedup
to article filing and expiration, and a later version of 'dbz' is used in
C News.
----------------------------------------------------
2.02.01 Where do I find the source for C News?
The official archive site for C News is:
cs.toronto.edu:pub/C News/C News.tar.Z
----------------------------------------------------
2.02.02 Where else can I find information on making my C News setup work?
Step 1: Read the file doc/problems in the distribution.
Step 2: Read the file doc/problems in the distribution again to make
sure you didn't miss anything.
Step 3: Vikas Aggarwal <aggarwal@r2d2.jvnc.net> says:
I have a Cnews setup document available via anonymous FTP from
ftp.jvnc.net:docs/news-setup.ps (or txt).
Step 4: Try posting to news.software.b or news.admin.technical.
[This could do with some expansion. I must admit to finding the C news
docs rather daunting at first sight.]
----------------------------------------------------
2.02.03 What's the difference between the various versions?
The most recent version is the "20 Feb 1993 Performance Release" which
contains some minor fixes to the "2 May 1992 Performance Release". The
Performance Release was designed to improve performance for sites with a
number of large feeds and to enhance the ihave/sendme system. Among
other things, many of the shell scripts were rewritten in C and the
documentation was improved somewhat. The "Performance Release" is
supposed to be a half step on the way to the "Cleanup Release" which
should be a major over-haul.
Should I wait for the Cleanup Release? No, if you've
inherited a B news system and are running out of CPU/disk speed.
Possibly, if you're running a pre-Performance release and ditto.
Yes, if you want to use the built-in NNTP of the forthcoming version.
[Ask Henry/Geoff for estimates and release notes].
----------------------------------------------------
2.02.04 What are some intricate examples for expire?
The best examples of how to set up the C News expire control file
are built into the prototype file as comments. Only a very few
installations will ever need to use most of the advanced features.
Key point: the /expired/ entry controls how many days' worth of
history file lines get saved. This only needs to be one, or at most
two, days longer than your longest expiry time.
The /bounds/ entry controls how long any article will stay in the
spool. This is used to put an upper limit on the effects of the
Expires: header, used in certain FAQ postings. Lowering the /bounds/
entry means that FAQ-type postings will get expired more quickly.
Both C News and INN can control expiry times for moderated groups.
You might consider putting in extended maximum times for moderated
groups, especially the {news,comp,rec}.answers groups. The FAQ
postings have "Expires" and/or "Supercedes" lines which, if
respected, ensure that there's just one copy of the FAQ file on your
system at once. Abuse of "Expires" seems mercifully rare on Usenet,
so you may decide to respect all "Expires" up to 35 days or so. The
only groups where longer times are used are comp.mail.maps (on a
6-week cycle [check it]) and news.announce.conferences, whose
postings expire when the conference does.
----------------------------------------------------
2.02.05 What might my crontab look like?
My crontab (minus some totally local garbage) looks like the following:
0,15,30,45 * 1-31 * * /usr/lib/newsbin/input/newsrun
30 1 1-31 * * /usr/lib/newsbin/expire/doexpire
10 8 1-31 * * /usr/lib/newsbin/maint/newsdaily
20 8 1-31 * * /usr/lib/newsbin/local/cnews.logrep
00 3 1-31 * * /usr/lib/newsbin/trn/mthreads -ae > /dev/null
30 10,16 1-31 * * /usr/lib/newsbin/trn/mthreads -a > /dev/null
0,10,20,30,40,50 * * * * /usr/lib/newsbin/nntpsend alaska.et.byu.edu fcom
.cc.utah.edu mica-nsf.inel.gov >/dev/null 2>&1
The user "news" is allowed to have cron jobs on my system. So, I just
made a separate crontab instead of running all of the jobs in the root
crontab along with an su to the news user.
Basically, you need to unbatch received articles regularly. This is
done by newsrun. Next you need to expire articles--I do so once a day
at 1:30 in the morning. "newsdaily" is a script which checks to make
sure everything is running fine and sends me a report. Most people will
need to modify "newsdaily" first when they begin customizing their
system. Then I run a script I found on the net which gives a better
daily report than newsdaily.
Mthreads is the thread database generator for "trn". It absolutely
blasts my CPU. So, I currently only run it 3 times a day instead of as
a daemon. That means users occasionally find articles which are not
threaded. My long term solution is a move to NOV using INN 1.4 and Trn
3.0.
Finally, I run nntpsend to forward queued articles to my feed sites
every 10 minutes.
----------------------------------------------------
2.02.06 A bunch of articles got junked because of bad info in the active
file how do I put them where they really belong?
If you receive articles from your newsfeed which are destined for a
group which you do not have listed in your active file, then they will
be filed in the group "junk". Can you get them back into the right
group after fixing your active file?
Thanks to Henry Spencer (henry@zoo.toronto.edu), of C News fame, for this
and a great many other timely and accurate answers:
This one gets asked constantly.
The answer is: you can't.
Moving the articles is easy... but if you want them to expire
properly, you also have to fix up the history file, and that's
very difficult to do right.
Unless you keep really abnormal amounts of news online, those
articles will all expire within a few days anyway. It hardly
seems worth taking the trouble.
The other possible solution to this problem is a script which will
automatically add any group not in your active file that receives a
certain number of articles. Such a script was posted recently, and a
large discussion ensued. Some will say that it will result in the
propagation of a great many bogus groups--especially when there is a
large thread with cross-postings between a totally bogus group and a
valid one. Others will argue that this isn't a big problem and there is
a tremendous advantage to having automatic group creation--especially
when you get a feed for some large new hierarchy you didn't receive
previously. You make the call.
----------------------------------------------------
3.03.01 Where do I find the source for INN?
The official archive site of INN is in the directory
ftp.uu.net:networking/news/nntp/inn
----------------------------------------------------
3.03.03 What makes INN so different from C News?
----------------------------------------------------
2.04 What are my options if I run some operating system other than unix?
For VMS: ANU-News
For DOS: UUPC or Waffle
For IBM VM/CMS: PSU NetNews
There are also readers for a great many systems ranging from Macs
to Tops-20.
For more information consult the postings:
USENET Software: History and Sources
UUCP Mail, News, and Gateway Software
(See 0.03 for information on where to find these.)
----------------------------------------------------
========Section 3: Transport Software========
3.01 UUCP
So-called uucp transfer of mail and news work in very similar ways. In
each case, the transmitting site requests (using uux, q.v.) that the
receiver executes a program, rmail or rnews, with an input file which is
copied implicitly. In the case of news, what is copied is a "batch" of
articles, usually compressed, with markers showing where each article
begins.
UUCP is normally used between systems that are connected only by dialup
lines, where the marginal cost-per-bit is quite high. NNTP transmission
places far fewer disk and CPU demands on the transmitting site, at the
expense of more bits transmitted over the link. Many modems have
built-in data compression (e.g. V.42bis) making the gains from explicit
compression much less.
UUCP can be run over TCP, e.g. during a transition period before the
receiving site has installed NNTP.
Detailed UUCP questions can be referred to comp.mail.uucp or its FAQ
file.
----------------------------------------------------
3.02.03 What are some examples of nntp-access entries?
Some notes from ian:
I have never got wildcards to work in this file. Host names must be
spelled out as gethostbyaddr returns them; whether this includes the
full domain or is just the hostname part probably depends on your OS.
The abbreviation "*" for all local hosts doesn't work. I hope that
someone who has made this work right can correct me on all this.
The simplest way I have found of giving blanket permission to a local
network is to define a name for it in /etc/networks (or the NIS
equivalent) and give the permission to that.
[ A better example wanted - ]
----------------------------------------------------
3.03 NNTPLink
The nntplink program provides for several ways of transmitting
articles over nntp. It is an alternative to nntpxmit and innxmit
[check name]. It will run with INN as a direct channel feed (i.e.
conncected to innd with a pipe) to provide
"instant propogation". For some people, that's an objective in its own
right. For others with many outgoing feeds, the synchronised sending
of articles that results decreases disk activity.
It can also read the "log" files produced by C News or INN and send
articles based on this output.
[Check on official archive site]
----------------------------------------------------
========Section 4: Newsreaders========
4.05 for VMS
There's one included in ANU-news.
----------------------------------------------------
========Section 5: Adminstration Issues========
5.03 How do I provide news to multiple hosts for reading while maintaining
only one news spool? (a.k.a "The Great NNTP vs. NFS Debate")
This is a complicated and highly debated topic. Before I present the
various sides of the issue let me provide some general comments:
1. Do NOT even think about using NFS read-write. This just doesn't
work and everyone will be more than happy to tell you so. (Well,
to be more specific the problem lies in NFS's file-locking or
lack thereof. So, if you really know what you are doing and can
make sure that there is no contention for writing files then you
might mount read-write.) This means that your alternatives are
either NFS read-only with some other method for posting or NNTP
only. If you choose NFS read-only your posting options are: use
rsh to export an inews command to the server, mail the articles
to the server, or NNTP. It seems to be the general consensus that
rsh is not the best of options (even though it does work and some
people swear by it) because of potential access problems especially
when you have a lot of users. Mailing the articles to the server
would work, but it's kind of a pain because you have to setup some
special software on the readers as well as on the server (ie. only
do this if you REALLY don't want to compile NNTP for some reason).
NNTP seems to be the best choice for posting with NFS.
2. Keep in mind that these two options (NFS and NNTP) do not have
to be exclusive of one another. You can do both (NFS for some
people and NNTP for others).
3. Which method gives you the best performance (that is, quick
response time for the readers, minimal server load, and minimal
network load--or the best trade-off of the three) is VERY, VERY
dependent on your hardware, your implementation of NFS and the
habits of your readers. If performance is your primary concern,
you will probably have to try both methods and see which one
works best under your particular circumstances.
4. You may lower the priority on your server of the nntpd or the
nfsd processes if you need to reduce your load. The whole
issue of load is complicated because NNTP and NFS are like
apples and oranges. If you reduce the priority or number of
processes for nfsd, then you are also reducing the priority
nfsd gets for serving other NFS requests. (Of course, this
isn't a problem if the only thing you use NFS for is serving
news.) On the other hand, nntpd uses a separate process for
every news reader which uses lots of RAM in your server.
Basically, NFS seems to cause greater load on the network.
(I don't know why precisely, but this seems to be the experience
of most people who have tried it.) NNTP on the other hand, seems
to cause a greater load on the server (uses more ram, etc.).
5. While some would argue that NFS creates a security hole
especially if used on an internet gateway machine, this isn't
really a factor for most people because the real answer to
this problem is to get a good router and have it filter
dangerous packets (like rpc, rsh, rlogin) that come from
outside of your local net.
6. Some of the previous and following discussion may not apply
to INN's nnrpd. I haven't had the time to check it all out.
Now, on to the debate...
Arguments for NFS (w/NNTP for posting):
1. Users can grep through the news spool, use an editor to read
news if they so desire, etc. Basically, regular file access
to news gives users more access methods if they want them.
2. You don't need to have multiple copies of the thread databases
used by nn, trn, etc. This is not a tremendous advantage for
most news-readers, however, since you can get patches for
NNTP which will allow it to transport thread information from
the server's database.
3. The bits might actually get from your server to your readers
more quickly.
4. The load might be almost unnoticeable if you already use NFS
for other things.
5. If your server goes down, your readers can leave their news
reading programs running (but hung) and start reading again
immediately when the server comes back up. (In my opinion,
this is kind of a weak argument, but there it is nonetheless.)
Arguments for NNTP (maybe with NFS export of the thread databases):
1. If you use NFS, users can grep through the news spool, use an
editor to read news, etc. Even though this can be convenient
for them, it could cause major load on your server if they,
for instance, execute a find command on the entire news spool.
This may or may not be a factor depending on the your readers.
2. NNTP give much better statistics/information on news reading.
Basically every article read this way goes through your NNTP
daemon. So, for instance, you can determine exactly what is
and isn't being read. In contrast, there isn't any practical
way to tell which articles some user might have read directly
out of the spool using more...
3. NFS isn't always readily available on the machines that readers
use. For instance, they might have a PC or a Mac in which case
NFS is expensive and NNTP based news readers are free (or cheap).
4. NNTP can give you increased control over the news readers and
maybe some optimization.
- You can filter groups by which machine is reading.
- You can simulate a shared library used by all news
readers through hacking on NNTP. For example, at least
one individual has created a secondary NN database
containing all the information needed to answer XHDR
requests which rrn/trrn use. This way all the info is
in a few big files. Opening files can be very expen-
sive. So, it is much more efficient than the usual
way (and the only option if you use NFS) of opening each
file maybe to just get the header info from the article.
(You can find an implementation of this particular hack
via ftp to sgigate.sgi.com:~ftp/net-services/nn-nntpd.
Thanks to "lear@sgi.com".)
Final analysis/my opinion: Most of the time control is more important
than raw performance. Also, machine power seems to be progressing
faster than network band-width at the moment. So, I would suggest
sticking with NNTP and getting more RAM for your server if possible.
If you really need to maximize performance, though, you simply have
to try both options.
----------------------------------------------------
5.04 How can I improve performance/decrease load on my system?
If you are running B News, stop doing so and switch to C News.
If you are running C News, use 'dbz'. See the C News documentation for
details. Run the latest release of C News for the best performance.
If you are running on a system that supports virtual filesystems, stripe the
news spool across multiple spindles. In any case, locate the news library
directory on another spindle. If possible, locate the in.coming and out.*
directories on another spindle. Spread the disk drives over as many disk
channels (controllers) as you can afford. Throw as much memory into the system
as you can spare. Use multiple ethernet interfaces to maximize the amount
of traffic into/out of the system.
If you are running INN, put as much memory into the system as it will accept.
If you really can't afford the load on the current system, the best solution
is almost always to find an unused box and dedicate it to doing news.
In many cases, the biggest load on the news system is the thread database
generator used by trn, nn, or tin (or worse yet: trn, nn, AND inn). This
can consume a tremendous amount of resources. The answer? NOV. The news
overview database is common to multiple news readers. Also, it can be
generated as news articles arrive (particularly if you use INN 1.3 or later).
This spreads the load across the entire day (assuming that you recieve news
across a long the entire day and not in one big batch).
----------------------------------------------------
5.05 How do I keep my newsgroups file current?
This is fairly difficult. There is a control message, called 'checkgroups'
that is sent out periodically by Gene Spafford (spaf@cs.purdue.edu). This
checkgroups covers all of the 'Big 7', comp, misc, news, rec, sci, soc and
talk. It does not cover alt at all, and alternate heirarchies are either
covered by private checkgroups messages or not at all. The best source for
information again is Gene Spafford, who posts regular lists of groups and
heirarchies to news.lists.
----------------------------------------------------
5.06 Should I let control messages be handled automatically?
There are in an average Usenet system 7 control messages. We will answer this
question on a case-by-case basis.
cancel - The cancel control message is normally handled inline to the main
processing of incoming news. Handling is not optional under UNIX, though it
is under some DOS-based news systems. Handling should be turned on.
There has been some, but probably not extensive, abuse of the "cancel".
checkgroups - Older versions of C News did not process a checkgroups control
message properly. It should be disabled in these versions. The C News
Performance Release fixed the known problems.
newgroup - Automatic newgrouping should in general be disabled, unless there
will be no administrator assigned to keeping Usenet running. In more modern
news software such as the C News Performance Release it is possible to allow
specific addresses to automatically add new groups. In such systems it makes
sense to allow the moderator of news.announce.newgroups to add groups under
the Usenet comp, misc, news, rec, sci, soc and talk heirarchies.
rmgroup - Automatic rmgrouping is off in most news versions and should be left
that way.
sendsys - The sendsys control message has frequently been abused as a method
of mailbombing third parties. Modern versions of news software implement some
sort of delay before responding to a sendsys, or in some other fashion either
require permission or allow action before sending out a response.
senduuname - The senduuname control message should be treated the same as
sendsys.
version - The version control message should be treated the same as sendsys.
----------------------------------------------------
5.08 Why shouldn't I alias unmoderated groups to moderated ones?
DON'T EVER, EVER DO THIS. The moderator will get very mad. Moderators
receive copies of every message posted to their group, which they must
sift through by hand. If you alias an unmoderated group, then the
moderator will likely find his or her mailbox continually filled with
garbage until YOU fix it.
----------------------------------------------------
5.10 Do distributions work?
Distributions are badly affected by the administrative shortcut of putting
'all,!local' (or just 'all') or the equivalent into the distributions field
for outgoing feeds. Enough sites do this that distributions in general do not
work. If someone dedicates sufficient time and can rouse the administrators
of leaky sites, it is frequently possible to plug all or most of the holes in
a given distribution, so they occasionally do work correctly.
Also, many sites request distributions that they are not logically part of
for various reasons, so even properly-functioning distributions sometimes get
sent to odd places.
Technical Details
Message-ID:
<natfaq-931114@pipex.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!gmd.de!xlink.net!news.belwue.de!news.dfn.de!darwin.sura.net!europa.eng.gtefsd.com!uunet!pipex!not-for-replyShow Full Headers
Complete Article Headers
Message-ID: <natfaq-931114@pipex.net> Subject: News.admin.technical draft FAQ. Date: Sun, 14 Nov 1993 00:30:00 +0000 From: <ian@pipex.net> (Ian Phillipps) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!gmd.de!xlink.net!news.belwue.de!news.dfn.de!darwin.sura.net!europa.eng.gtefsd.com!uunet!pipex!not-for-reply Newsgroups: news.admin.technical,news.software.b,news.software.nntp Followup-To: poster Organization: Pipex Ltd (A member of the Unipalm Group), Cambridge, England Lines: 985 Approved: news@pipex.net Supersedes: <natfaq-930919@pipex.net> Reply-To: news@pipex.net