Article View: news.software.nntp
Article #51993LISA 2000 Usenet BOF notes
From: Russ Allbery
Date: Mon, 23 Apr 2001 08:20
Date: Mon, 23 Apr 2001 08:20
267 lines
16805 bytes
16805 bytes
I realized that I still hadn't posted these. Whoops. *wry grin* Figured
I should probably post them before summer Usenix.
Notes courtesy of Phoenix <phoenix@eyrie.org>. Note that this dates from
December of 2000.
about 40 people in attendance
inn, diablo, cyclone in use. no dnews users present (second LISA in a row).
nntprelay.
Future of INN
--------------------------------------------------------------------------
INN 2.3.1 not quite released before this BoF; nearly ready for release.
INN 2.4 has some major improvements, but none of the things Russ really
wants in there -- e.g. at least the beginnings of a new configuration
parser. So any release for that is likely some ways off. Many good
chunks of work in there to be done yet. Russ has plans for a
configuration file standardized library, allowing the ability to write
back parts of the files, wrapper them in pretty web frontends, etc.
(inn.conf and maybe storage.conf; readers.conf probably to be done later,
as it's more to tackle)
INN's moving toward a more modular construction. More of that needs to
occur. History file format is a prime example: at least four in common
use. This is also desired for 2.4, and may not be difficult to do.
Long-term: nice to see INN interoperate with Diablo to do header feed
stuff. Diablo doesn't store all articles on all servers, but instead has
a master server that stores all articles, and all reader servers store
headers only and fetch articles as needed for reader clients. Should be
easy to make INN feed just headers; the hard part is getting INN to
support a storage backend for article content like the Diablo server
does. Once INN can do this, should be easy to intermix INN with Diablo.
From this, can potentially generate an INN Light where you try to massively
reduce INN's general footprint. A new history API, allowing for a smaller
volume server, would also reduce INN's footprint -- let history go to
disk, instead of memory mapping it, for the case where little comes in but
what's held locally is held basically forever.
CURRENT is 2.4 in the making.
STABLE is 2.3.x with bug fixes.
There are snapshots available nightly, not compiled.
inn1.7.2 still available, as the feature-poor but rock-solid stable release
version from years ago.
NAS still undergoing development; draft submitted to IETF. They're looking
for people to program it; they have money for 2.5 people. This is a
replacement for the old control message handling method. Instead of PGP
verification of incoming control messages, connect a client to an NAS
server and pull down canonical newsgroup list or what's changed since you
last asked, etc. Each hierarchy administrator can run their own NAS
server, and that can be collected into a master server. So instead of
doing control message handling at all, you just connect to whatever list
of NAS servers you want to pull data from and generate your active list
from that. Has more fields than control messages carry; room for xter
set, moderator address, preferred language, URL to group charter.
Designed to be useful for readers as well as news server administrators,
so they can contact NAS servers also. See: http://nas.cis.fu-berlin.de
-- DNS was the first approach, years ago. Difficulty with zone transfers
found. So this is a new protocol. DNS doesn't iterate through a list of
things very well. NEXT records in BIND 9, with TSIG for security, work;
if you're running authoritative only, should be okay to do zone transfers.
Problems of signing in BIND 9 still.
[NHHS uses DNS, NAS doesn't.]
-- fine for INN to support both NAS and whatever anybody comes up with that
utilizes BIND.
ctlinnd newgroup/rmgroup still parses the entirety of newsfeeds and active.
Really should cache something, perhaps just the wildmat expressions for
the sites. Most performance gain likely to come from that alone. wildmat
is fast and CPU not usually a problem on a news server, so reparsing the
active file and rematching the groups is probably an okay thing to do, at
least as a transitional step.
Would be a nice internal bottleneck to get fixed, sometime, depending on
whether somebody has time for it.
If you use CNFS to store news (cyclic buffers), the articles expire
immediately when space is a problem, but the overview data for them
persists. You can add a flag to stat the files in overview and not send
back to clients anything that is no longer on disk. Without that, various
random error messages appear to the users depending on their news client.
Ideally, when overwrite article in CNFS, want to notify overview to mark it
as expired. Hard problem: the storage manager thinks of everything in
terms of tokens. Each article is that token. Cross-posting handled at a
different level. Article retrieval is by token. Overview thinks in terms
of groups. So this communication requires the Storage Manager to figure
out which article numbers in which groups has been removed so it can tell
overview. Basically a problem of figuring out how you want Storage
Manager to tell overview manager which articles have gone away.
Diablo: master can't tell slave servers all the time about things, so they
make sure overview expires before articles do. Seems to require a
predictable expiration time/retention rate.
The article stat solution doesn't grovel through the entire CNFS buffer, so
it's not *that* bad, but it's clearly a performance problem now because
people turn it on and INN gets really slow. Though one report of no
performance problems, with thousands of users.
If you teach overview about article-IDs as well as article numbers, then the
problem solves in reverse. This is a data storage solution approach,
which is one way to do it. The other way is to expire overview
information before the articles go away.
Not sure we can get from just the headers of the CNFS buffer the exact
tokens of the articles going away.
OR: make nnrp be aware of where CNFS is currently writing and just discard
any tokens that are prior to that point.
Reservation about changing control.ctl file format: so much existing
documentation about how this gets done, Diablo maintains the same format
to be INN-compatible.
Rather than saying control.ctl is the list of canonical newsgroups on your
server, you can rethink of it as a database format of describing what
hierarchies are available -- and the server can separately track what you
want to actually carry locally.
INN currently collides the information of what's available and what you
actually are carrying. This is a problem, particularly for non-PGP-signed
ones, of which there are many: codewarrior.*, us.* (well sort of), a whole
bunch of little regional hierarchies.
control.ctl won't be modified in the first, second, or third pass. This may
wait for NAS before being reworked.
Russ wants to kill the newsfeeds parser so he can say "I'm adding peering
with this site" in one place instead of five.
Parser will take a syntax of a configuration file and turn it into a tree of
hash tables; what keys you pull out of that are application-dependent.
Russ is going to wrap a keys and hash interface around that.
Sounds similar to XML, which is way more complex than the syntax Russ sees
as needed. If someone else writes it, it'll likely go into INN.
INN aims to keep user-visible bits simple and basic setup of a server fairly
simple; a proliferation of available other tools is fine.
A set of perl scripts to interactively generate an initial setup would be a
cool thing.
Documentation for managing server: INN 2.0 or later? Grab a distribution
and read the INSTALL file.
Russ is maintaining the beginnings of a 2.x FAQ under
http://www.eyrie.org/~eagle/faqs/inn.html
INN has a pretty thorough and fairly comprehensive set of manpages, useful
once you have a basic idea of what commands do generally what.
IETF Stuff and News Standards
--------------------------------------------------------------------------
Has usefor actually progressed since the last LISA usenet bofh?
This is the RFC-1036 replacement for article content. There's a full draft
now. Most of the really weird additional bits didn't get in. No decent
security, no decent moderation approval system, still arguments over
signing systems, does provide a good deal of clarification of 1036 header
information, has some really trippy Path: stuff. It should work, but Russ
hasn't seen it actually implemented anywhere. Cleans up syntax and header
confusions. Can be a decent RFC, just rather disappointing in that it
didn't solve any of the hard problems that needed to be solved.
Somebody needs to go work on the signing-articles problem, write code, and
come up with something that works. Ideally based on something like ssh,
so everyone can use it; ideally based on a certificate system so
moderation issues are handled. Need practical experience so people can
stop arguing at length about it and forward progress can happen.
Right now usefor is descending once again down the rathole of how to tag in
the headers that followup email should be sent, whether anybody should do
this, how one can procmail filter it out. The issue just never seems to
go away.
The nntp working group really took off last year. Lots of forward progress
made. Hopefully a lot closer to an RFC. Draft now is *much* closer to
being at a state where you could go off and write a news server against.
There's a giant mess over the PAT command. XPAT extension to INN says match
all these headers against wildmat and give me all those. Spaces are
common and used extensively in headers. Current implementation collapses
random whitespace into a single space; so you can't match on
double-spaces. Miscellaneous proposals to introduce an escape character,
various ones proposed.
mission: document RFC-977 as it was actually implemented, take the
extensions that you have to have to run a news server these days (like
overview), and publish it. No dramatic new features. The only thing
they're allowed to do is introduce an extension mechanism.
So there's a proposal on the list to not standardize XPAT, but standardize
XHDR. And encourage somebody else to implement PAT, hopefully using
regular expressions and not wildmat, as wildmat really isn't the right
tool.
Once this draft is released, all the servers will hopefully start supporting
the new commands: over instead of xover, HDR instead of XHDR, etc.
And maybe 20 years down the road, can start removing support for ones that
don't begin with X.
Also standardizing on unicode. This is the long-term solution for
supporting all character sets. So arguments to NNTP commands are going to
be in UTF-8. So non-English languages should be able to create newsgroups
in their language without trying to force themselves into ASCII.
Russ has a wildmat implementation that supports UTF8. If trying to match
ISO-LATIN-1, it generally works. UTF-8 very, very rarely collides
incompatibly with ISO-LATIN-1 text. INN 2.4 has the UTF-8 wildmat stuff
in it. Likely very little left in INN that needs modification; clients
are a whole 'nother issue, but need server-side support first.
Andrew Gierth believed to have another UTF-8 wildmat implementation, too.
Some discussion whether want to pipeline reader commands. SMTP developed
this as a completely separate extension. For NNTP, all the servers
support this out of the box except for MODE READER and post. They may
just document this as a fait accompli; unclear at this point.
Does IMAP have an out-of-band abort command? Can be done with FTP. (This
came up in the context of users cancelling requests for 2MB articles,
etc.)
NNTP is a lock-step protocol, even if you get it to pipeline, too.
NNTP is fundamentally a one-line response protocol -- except for stuff that
sends a dot-terminated list. To allow multiline responses is a
fundamental protocol change. Much of this rehashes things IMAP has
solved/tried to solve, even though it has some problems of its own.
Many, many more people working on IMAP than NNTP; many, many more people use
email than news; so a large resource to potentially tap.
Distributions of newnews are gone.
"newnews <time> <wildmat expr> <distribution expr>" used to exist. And the
meaning of the distribution is gone. Distribution header isn't utilized
as a reader service, it's used to control feeds, where it's used.
Distributions on NEWGROUPS are gone away too, where they made even less
sense.
Draft language about "most people don't support newnews" has also been
dropped, as it was there because of INN, and that's not an issue now.
Pull feeds love it, as they don't have to store as much information
locally. Servers can be made to do what's needed now, reasonably
efficiently. Still not a favorite command, but can be better implemented
now, so that it's less problematic for the server.
Miscellaneous
--------------------------------------------------------------------------
What to run?
* if you're trying to carry binaries, CNFS is nice.
* if you're trying to serve lots of users, Heath's OVDB is blazingly fast.
* if you're trying to take a full feed, Katsuhiro's buffindexed writes
faster than anything else.
* Do need more diskspace if going from 1.7 to 2.3: overview is bigger, but
CNFS can use your diskspace better than tradspool.
Filtering Tools
-- cleanfeed is under development, but slow. There's some motion afoot to
get it put onto sourceforge. Provides good support for some issues
affecting Diablo servers that aren't issues for INN.
-- Russ has entirely separate tools that have never been released.
-- For INN, wants to break out the stuff that handles filtering within INN,
which is all different for tcl, perl, python, etc. Russ wants to lift out
the binary-recognition regexps and put them in INN so they can be written
in C. Binary matching probably shouldn't be done in regexps. Joe Greco's
done work on this kind of thing for Diablo. He's also got work for
allowing you to set binary policies on outgoing side as distinct from
incoming.
Scaling in General
--------------------------------------------------------------------------
Most protocols have switched to a model where you tend to go to the
orignating site for content. Question is whether news can do that, so
everybody doesn't have 300GB of binaries everywhere. Argument that it's
the nature of news that's allowed such things to occur, as bandwidth is
prohibitive for most folks to pull it all down themselves. Nature of news
distribution sidesteps some legal issues: once it's out there, it's really
out there. Plusses and minusses there. Once articles are posted, they're
basically out there for the world, and they're difficult if not impossible
to completely eradicate later, despite sending cancels.
Is caching effective for protocols like HTTP? You can think of flood fill
as a form of caching for NNTP.
Another tack: how can you get news sites to peer and make reciprocal use of
resources?
If you have a backend that pulls down articles, perhaps you want some
servers to specialize some, be canonical for some topics, share resources
for others in a better-distributed fashion?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylhezghvrs.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <ylhezghvrs.fsf@windlord.stanford.edu> Subject: LISA 2000 Usenet BOF notes Date: Mon, 23 Apr 2001 08:20:55 +0000 From: Russ Allbery <rra@stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp,news.admin.misc Organization: The Eyrie Lines: 266 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 988014059 23514 171.64.13.23 (23 Apr 2001 08:20:59 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)