Article View: news.software.nntp
Article #39665Re: 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
119 lines
6756 bytes
6756 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
>In news.software.nntp article <7qth64$33m$1@zeus.fw.cuci.nl>, srb@cuci.nl (Stephen R. van den Berg) wrote:
>: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."
Without the functionality, people would be able to break things badly
(by accident, or on purpose) by mixing header and normal feeds (and they
can do so now already).
With the functionality, things won't break if they do.
Anyway, the point is moot, since I just discovered that Diablo already
supports it.
>: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.
The current code already knows (apparently).
>: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).
You're overreacting, I think. Consider the following:
- I'm almost never recovering history from spool, so if I'd simply lose
that functionality when I mix feeds, I won't miss much.
- Due to the fully redundant setup, I can easily switch dreaders to
other servers and simply start with an empty history in case of disaster.
- Even if the history recovery picks up the header-only article part,
nothing is really lost. It means that people fetching this article
will have to wait until dreaderd fetches it from elsewhere. The integrity
of the system and all the articles is still guaranteed.
So, yes, it's a minor problem. Not much to worry about even when not
fixed, not impossible to fix either (actually, I wouldn't be surprised
if it can easily be fixed, because the history code *knows* if it's a
header only article and is able to do the override in recovery as
well as in reception mode).
Then again, this is just a minor optimisation, which doesn't affect
the concept.
>: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.
Actually, diablo, as I just found out.
>: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
Well, there still are these things to consider:
- I can't control the expiration speed on the external diablo feeders.
We want longer times for most groups than what they offer.
For binary groups, what they offer is fine.
- There is such a thing as peaks in bandwidth usage. The nice thing
about a regular feed is that it acts as a cache-preloader. I.e. the
newsfeed for most regular groups runs all day, taking up a more or less
fixed amount of bandwidth on all of the leased lines to the Internet.
So we know we take a penalty on these lines, but it's roughly constant
and 24 hours a day. Now, when the users come in, they generate peaks,
most of these peaks are absorbed by the local newsspool.
If we were to use dreaderd caching only, without normal feed, these
peaks would get much larger due to all articles needing to be fetched
from the external servers.
>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.
Yes, it allows for dreaderd to use an arbitrary diablo server as a "local"
cache. I'm all for this change (eliminates duplicate caching if your
diablo server is close enough).
>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.
I fully agree that making things more complex than necessary is a RBT(tm).
What I don't really see, is how the setup I'm trying to create is
supposed to be complex. It seems natural to me.
How is it more complex than the convoluted setups which create different
feeds for large, small, cancel and control articles?
--
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:
<7qulk1$72f$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> <37d1f171$0$447@news.execpc.com> <7qth64$33m$1@zeus.fw.cuci.nl> <37d2bec4$0$446@news.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <7qulk1$72f$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> <37d1f171$0$447@news.execpc.com> <7qth64$33m$1@zeus.fw.cuci.nl> <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 X-Deja-AN: 521431654 X-Trace: newspost.cuci.nl 936565189 5975 10.0.0.3 Organization: Cubic Circle Newsgroups: news.software.nntp