🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38647

Re: Submitting to Freenix

#38647
From: Russ Allbery
Date: Tue, 13 Jul 1999 00:00
39 lines
2786 bytes
T William Wells <bill@twwells.com> writes:

> This is a major design defect which must be remedied in order to
> eliminate the tradeoff. Two solutions come to mind. The first is
> returning to the status quo ante (which also applies with the new code,
> if you use the traditional storage method), in which the spool
> determines the existing articles. The second is to have a second file,
> similar to the active file, which is updated only after articles are
> entered into the overview.

The active file currently contains three separate facts:  The range of
articles in the group currently present on disk, the article number to
assign to the next incoming message in that group, and mode of the
newsgroup.  The first fact is used only by readers.  The second fact is
used only by transit, provided that the first fact gets updated reasonably
when new articles come in.  The third fact is used by both.

To me, this argues strongly for breaking these things into three separate
files.  The range of available articles should be written by the same
thing that writes out the overview information, which can be offloaded
outside innd.  The second file, the next number information, is entirely
internal to innd, since Xref in the articles provides the only information
anything else need care about, so innd should maintain it internally and
just checkpoint it periodically.  The third file would need to be
assembled with the second file internally by nnrpd to answer active file
queries from the client, but it also could contain the mapping of
newsgroup to number needed by the tradspool storage method and usable by
other parts of INN (such as the new overview mechanism, which needs a hash
of the group; a number would be ideal).

That's a pretty serious architecture change, but it might be worthwhile.
One of the problems would be keeping those three files in sync.  The third
file, if it contains tradspool mapping info, also needs to retain deleted
groups for some time.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylbtdgc9w5.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.software.nntp.mbox.zip!not-for-mail
References: <7g24e7$ckh$1@info.cs.uofs.edu> <7m2ot6$1a9u$1@newssvr03-int.news.prodigy.com> <yl673uqpv3.fsf@windlord.stanford.edu> <7m5heu$3uai$1@newssvr03-int.news.prodigy.com> <7mgnmn$28h$1@twwells.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylbtdgc9w5.fsf@windlord.stanford.edu>
Subject: Re: Submitting to Freenix
Date: Tue, 13 Jul 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7g24e7$ckh$1@info.cs.uofs.edu> <7m2ot6$1a9u$1@newssvr03-int.news.prodigy.com> <yl673uqpv3.fsf@windlord.stanford.edu> <7m5heu$3uai$1@newssvr03-int.news.prodigy.com> <7mgnmn$28h$1@twwells.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 500744869
Organization: The Eyrie
Newsgroups: news.software.nntp