🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39662

Re: Mixing headerfeed with a normal feed in diablo

#39662
From: Joe Greco
Date: Sun, 05 Sep 1999 00:00
122 lines
7452 bytes
In news.software.nntp article <7qth64$33m$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
: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".

To me such functionality sounds "Yick."

: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.

It'd know this anyways, although potentially not before fetching the
article from storage.

: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.

YICK.  This gets REAL ugly...  you've just introduced the chance for dups
on spool, which means that you now have an ordering dependence if you need
to do a history rebuild from spool.  I'm not even sure that it would be safe
to do this without some careful changes of the history code; I'm sure that
it bails at the first match (even if expired).

: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.

Yeah, uh, dreaderd.

:>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.

Dreaderd happily does round-robin load balancing, and can be trivially
tweaked into doing other forms of load balancing.

You still haven't explained why it is so much more beneficial to have some
articles on spool and some not.  I find it hard to believe that your user
base reads a majority of any part of Usenet...  and even if they do, using
dreaderd to cache is only a minor additional cost of bandwidth.  This could
be completely recovered with a different type of patch which would be more
generally useful (IMHO):  when fetching the remote article, send a "BODY"
instead of an "ARTICLE" command, and fill in the local cache with the local
stored header and the remote body.  This now uses the same amount of
bandwidth as your solution (in the worst case) or less (in the case I'd bet
on), and is also an obvious optimization that is generally useful.

I think you're trying to make this much more complex than it needs to be.
And in my experience, that's usually a Really Bad Thing.

... JG

Technical Details
Message-ID: <37d2bec4$0$446@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
References: <7qrmlp$i0u$1@zeus.fw.cuci.nl> <7qsibf$5qf$1@zeus.fw.cuci.nl> <37d1f171$0$447@news.execpc.com> <7qth64$33m$1@zeus.fw.cuci.nl>

Show Full Headers
Complete Article Headers
Message-ID: <37d2bec4$0$446@news.execpc.com>
Subject: Re: Mixing headerfeed with a normal feed in diablo
Date: Sun, 05 Sep 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <7qrmlp$i0u$1@zeus.fw.cuci.nl> <7qsibf$5qf$1@zeus.fw.cuci.nl> <37d1f171$0$447@news.execpc.com> <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-mail
X-Deja-AN: 521397995
Sender: jgreco@earth.execpc.com
X-Trace: reader0.chcgil.newsops.execpc.com 936558276 446 jgreco@169.207.16.1
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com