Article View: news.software.nntp
Article #14262Re: caveat - multiple feeds to slaves
From: Joe Greco
Date: Tue, 21 Jan 1997 00:00
Date: Tue, 21 Jan 1997 00:00
70 lines
3440 bytes
3440 bytes
In article <5c3biu$qs4@dfw-ixnews11.ix.netcom.com>, Mark Hittinger <bugs@freebsd.netcom.com> wrote: >I do multiple feeds to the slaves here. Its either have larger backlogs >and nearly perfect fifo overviews or have no backlogs and not-in-order >overviews. This sounds like something I've been working on. >Overview can be sorted with 'sort -n' to make it acceptable to "less tolerant >readers(tm)" :-). Huh? The only consumer of the overview database files (at least in NNTP) is: nnrpd. (Well, also expireover, but...) nnrpd goes to great lengths to ALWAYS provide overview data to a client that requests it, using any existing ".overview" as a "cache" of already- generated overview data. In particular, the NOV code does a linear search forward through the .overview file, caching the current location. It will become very much less efficient - but still work - if it can not find the data in the .overview file, because it will open the ARTICLE and generate the data. But in no case that I have seen will it cause a client to stop functioning, because nnrpd always returns the data, one way or another. (I just rewrote all the NNRP NOV code yet again today, so I am particularly familiar with it)... What I did: I worked on the assumption that nonsequential delivery was a likely given - many times over. Inside nnrpd, I preprocess the data, essentially trading a full up front traversal of the .overview file (that allows me to very efficiently index the data by message number), on the assumption that once in a large group, one was likely to ask for many articles. It seems to be working okay, although the load averages on the machines seem nearly double, performance is still excellent and I have not seen any of the nasty side effects I have traditionally associated with a bunch of clients grinding on the spool to manually generate NOV data. You might be able to do the same thing by constantly sorting your files, but that's a lot of work, and doesn't happen in real time. What I haven't done: looked at expireover to see how to make that play ball. >The other problem that we see here is one of the feeds gets ahead of another >to the same target slave - so there is a gap in the articles on the spool >of the slave, i.e. > >news/software/nntp/100001 >news/software/nntp/100002 >news/software/nntp/100005 > >In very short order the other feed will fill in #100003 and #100004. >Unfortunately there is a brief window where someone using a "less tolerant >reader(tm)" will see #100005 as the high water mark and miss the slightly >delayed articles. > >I like the "." delay idea :-) I have a brilliant idea for that too, but I won't share it until I either have working code or a smoking heap of rubble. ... JG
Technical Details
Message-ID:
<5c4483$bg0@earth.alpha.net>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:
<5c3biu$qs4@dfw-ixnews11.ix.netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <5c4483$bg0@earth.alpha.net> Subject: Re: caveat - multiple feeds to slaves Date: Tue, 21 Jan 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <5c3biu$qs4@dfw-ixnews11.ix.netcom.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: 211384841 Distribution: inet Sender: joegreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp