Article View: news.software.nntp
Article #21045Re: Future of INN
From: Joe Greco
Date: Thu, 28 Aug 1997 00:00
Date: Thu, 28 Aug 1997 00:00
63 lines
3684 bytes
3684 bytes
In news.software.nntp article <86k9hb8gm9.fsf@blah.erols.com>, coneill@blah.erols.com wrote: :I've been thinking about this for a while and I definitely think we need to :rewrite his.c. My opinion is that the overviews should provide the directory :functionality to nnrpd and friends, and that we shouldn't be linking the :articles all over the spool. If we agree thats a good idea then we can replace :the list of groups that the article is posted to in the history file w/a some :type of storage dependent fixed length pointer. I've been thinking of using :a single char to distinguish between multiple storage filers, and a 64 bit :number that would be storage filer specific. ie, for the standard spool, you :could have the first half of the 64bit number be a crc32 of the group name, and :the second half be an article number. For cnfs, it would storage which rawpart :held the article, and the offset into it. Once you split up operations this far, it's relatively easy to split INN into two discrete pieces. I've soapboxed about this before. You define a spool storage/retrieval mechanism. You ask it to store an article, it gives you some sort of string which can be used to retrieve that article. The current storage mechanism is, trivially, sprintf(file, "/news/spool/%s/%d", groupname, highnumber++); saveas(file); But there's no reason you can't use CNFS, etc., which already do this sort of thing. Such a library should probably be flexible, so that a spool could actually consist of different storage mechanisms, depending on what's appropriate. For feeds... innd should be responsible for handling the history, and writing the articles to disk, and queueing feed data. It should do what Diablo and/or Cyclone do, right now. No active file necessary, other than perhaps as a list of valid groups. Hand the articles off to the spool storage/retrieval mechanism, be it CNFS, regular spool, or HAL-9000 associative memory. You are given a location-identifier for each message. That identifier is placed in the history in place of the current list of filename(s). All INN knows are Message-ID's and those location-identifiers. The feed mechanisms are virtually unchanged, other than to extend them to work with the spool storage/retrieval mechanism. If you want to support readers: The reader aspect is then handled as a SUBSYSTEM. You change overchan to read a list of Message-ID/location-identifiers. It becomes a standard "feed" from INN's point of view. overchan maintains the real "active" file, and creates .overview index files as it does now. However, in addition to what is currently stored in .overview, it ALSO stores the "location-identifier". This means that .overview becomes mandatory. It's probably SIMPLER than the current implementation, if that makes any sense. And best of all, it's a great way to separate the feeding system from the reading system. ... JG
Technical Details
Message-ID:
<5u4o55$ans$1@earth.execpc.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-mailReferences:
<33fae65b.40324363@news.hom.net> <5toj3i$3ut$1@havoc.gtf.gatech.edu> <5tpvbu$nf1$2@synthemesc.insync.net> <86k9hb8gm9.fsf@blah.erols.com>Show Full Headers
Complete Article Headers
Message-ID: <5u4o55$ans$1@earth.execpc.com> Subject: Re: Future of INN Date: Thu, 28 Aug 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <33fae65b.40324363@news.hom.net> <5toj3i$3ut$1@havoc.gtf.gatech.edu> <5tpvbu$nf1$2@synthemesc.insync.net> <86k9hb8gm9.fsf@blah.erols.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: 268825610 Distribution: inet Sender: jgreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp