Article View: news.software.nntp
Article #39664Re: Mixing headerfeed with a normal feed in diablo
From: Stephen R. van den Berg
Date: Sun, 05 Sep 1999 00:00
Date: Sun, 05 Sep 1999 00:00
93 lines
5854 bytes
5854 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
>In news.software.nntp article <7qsibf$5qf$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
>:This would maximise reading speed (often read newsgroups are in the
>:real feed), still allow all articles to be seen and read (using the
>:header only feeds), and provide for full redundancy (if ext-a would
>:have a problem, ext-b takes over completely, albeit a bit slower,
>:because many of the articles will receive as header-only).
>:As soon as ext-a recovers, I'd like the articles that (intermediately)
>:have been received as header-only from ext-b, to be replaced by their
>:full counterparts as they will arrive from ext-a.
>:Incidentally, the different header/full variations are of course dependent
>:on available bandwidth on that particular line segment.
>Yick. You can probably do it. However, it seems messy and complicated,
>two factors which usually scream "wrong design" to me.
Concerning "messy"... I don't think that's necessarily true.
I just want to have the freedom to throw around full and header
only feeds at will. Diablo should be able to sort it out.
To me such functionality sounds "orthogonal".
As far as "complicated" is concerned, I'd grant you "convoluted",
but, complicated, not really. The convoluted has its origins in the
fact that it's the most optimal solution for the constraints presented.
Once Diablo supports the separation, it's not complicated at all.
>You _can_ feed Diablo with a header only feed, but I think it's almost
>invariably a mistake to try what you're doing: It would mean that Diablo
>would need to know that it could only feed those out to feeds that are
>marked "header-only", something Diablo doesn't know about right now in
>the main process. It also means that ARTICLE <x> retrievals would need to
>fail on header-only articles, else your dreaderd's would see interesting
>behaviours when accessing an article that was on spool as header-only.
>This seems like a plan with lots of inherent evilness, particularly if you
>mess up and start pushing a feed containing some header-only articles back
>to Usenet peers.
There is not much inherent evilness. Three things need to be
taken care of, then all other problems will take care of themselves:
a. In the history database, an extra bit needs to be reserved to
store full/header-only state of the article.
Once this has been done, diablo will *know* if an article is complete
or not.
b. The ARTICLE command needs to check for this bit and refuse if the
body is missing (sounds easy enough).
c. For efficiency, we'd need a header-feed directive in the dnewsfeeds
file already which then sanity checks every article's history entry
to see if the bodies are all there before letting an article out of
a feed which is a normal feed.
And, as a bonus, to get maximum spool and bandwidth leverage, the incoming
history check for havethis etc. needs to take into account that if
it is accepting a normal feed, that it should pretend it doesn't have
an article which is marked as header-only in the history database.
I don't see any real problems patching diablo to perform this, I just
wanted to make sure that there wasn't some mechanism in place which took
(or was already supposed to take) care of these things.
>You wouldn't pull in enough headers over the 128Kb link to make all the
>extra effort worth it... so, if you're not going to have good redundancy,
>just do away with it entirely and be happy. Rely on the caching of
>dreaderd to manage your "often accessed news" and save on bandwidth; you
>WILL move the articles across the link one way or another.
The example presented is a simplified, yet logical equivalent of the
real-world situation. In reality the involved bandwidths are different,
and the number of connections is even greater (four backbone connections,
actually). Using a mix and match feed in the real situation *is*
beneficiary in this case.
>I think if it were me, I'd elect ext-a and ext-b as the two Diablo machines
>(which is already the case for you). Then pick ext-a as your header feed
>master, leaving ext-b entirely out of the picture. local-c and sat-d run
>dreaderd only and can either number themselves or use ext-a's article
>numbering. sat-d can then use dreaderd on local-c for article retrieval,
>which in turn uses ext-a as its primary and ext-b as a backup spool store.
>If you're insistent on making Diablo do this, make _everything_ a header
>only feed, running Diablo on local-c (no need at all on sat-d) and use
>dreaderd's cache mode for your actual "spool".
I agree that this would be simpler, but it would also make load balancing
the four backbone connections impossible. Since bandwidth costs
are prohibitive, load-balancing bandwidth is an absolute must.
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
"Real Life? I've played that game. The plot stinks but the
graphics are awesome."
Technical Details
Message-ID:
<7qth64$33m$1@zeus.fw.cuci.nl>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:
<7qrmlp$i0u$1@zeus.fw.cuci.nl> <brad-0509990100500001@dialup989.brussels2.skynet.be> <7qsibf$5qf$1@zeus.fw.cuci.nl> <37d1f171$0$447@news.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <7qth64$33m$1@zeus.fw.cuci.nl> Subject: Re: Mixing headerfeed with a normal feed in diablo Date: Sun, 05 Sep 1999 00:00:00 +0000 From: srb@cuci.nl (Stephen R. van den Berg) References: <7qrmlp$i0u$1@zeus.fw.cuci.nl> <brad-0509990100500001@dialup989.brussels2.skynet.be> <7qsibf$5qf$1@zeus.fw.cuci.nl> <37d1f171$0$447@news.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-mail X-Deja-AN: 521272057 X-Trace: newspost.cuci.nl 936527880 5975 10.0.0.3 Organization: Cubic Circle Newsgroups: news.software.nntp