Article View: news.software.nntp
Article #44962Re: Pipelining IHAVE commands with INN
From: Brad Knowles
Date: Thu, 09 Mar 2000 00:00
Date: Thu, 09 Mar 2000 00:00
131 lines
7238 bytes
7238 bytes
In article <20000308144707.860$xL@newsreader.com>, curt@kcwc.com (Curt
Welch) wrote:
> Yes, that's what I do. I say that below. But if for example you have
> a small number of peers (2 or 3) which offer you one class of articles
> (say
> the large ones), then for some articles in the day, you can almost
> gurantee
> that the other two feeds will offer you the article within that X
> seconds.
> And then you are left trusting that first feed to actually deliver what
> it
> said it had. If it ever fails to do so, you have lost the article for
> good.
True enough. I guess small sites should use IHAVE and not CHECK.
Or, they should ensure that for all the categories of feeds they have,
they have at least one feed which is real-time and one that is
time-delayed (either intentionally or by the transmission method, such
as satellite).
> The comments in my version say the same thing. The code howerver doesn't
> match the comments. Does your code look like this:
Hmm. I think I was looking at different code. I'll have to
re-check this.
> It would be interesting to know more about this. What I want to do if I
> can find the time is add code to analize more of this on my incomming
> feeds. i.e., keep track, by Message-ID of what was offered from who
> and when.
You'd need to do this with good accuracy -- at least down to the
millisecond level. That's the only way you can be sure to know which
peer offered you what article at what time. I think INN logs this level
of information by default, but I suspect that you might have to add this
code to your server.
> A IHAVE is the same load as a CHECK + TAKETHIS. It's actually a little
> less because you only have to process one command instead of two.
Except IHAVE is not streaming, whereas CHECK+TAKETHIS is, and the
former may cause problems with processes getting paged out or not as
much CPU when they want it on a busy server (as they sit there waiting
for input from the other end), whereas a streaming feed shouldn't have
that problem.
> Overall, both sides have to do just as much work either way.
Considering that I have a lot of high-latency peerings, I'm rather
fond of streaming CHECK/TAKETHIS. I hope you'll understand. ;-)
> streaming makes more sense for _small_ article and high latency.
Which is the bulk of the news we have to receive or transmit --
according to
<http://www.news-feed.inet.tele.dk/innreport/news-notice.2000.03.07-05_29
_33.html#inn_dist>, about 75% of all articles are 16KB or smaller, and
about 55% of them are 2KB or smaller.
Since most of the good news servers I peer with are in the US, and
routes between our site and others over here in Europe can easily wind
up going through the US and back, I'd say that I tend to have pretty
high latency.
> I'm not sure what you are saying here. But an IHAVE feed doesn't need
> to put any extra load on the server. The only problem is that a busy
> server can't service the incomming feed fast enough to make it work
> well at 10 articles per second. But if you are only sending large
> articles on the IHAVE feed, then the IHAVE's per second drops from 10
> to 1. And that shouldn't be a problem for an IHAVE feed to a busy
> server.
Okay, so with large enough articles, IHAVE would be a more secure
way of transmitting those articles -- especially for small sites with a
limited number of peers.
But for sites that have a lot of peers (95), I would tend to believe
that the article arrival times would be sufficiently distributed that
properly handling precommit cache collisions should be a more than
adequate method of dealing with the problem.
> Diablo can can do it. You just set up multiple feed definitions. In one
> you include all the small files.
At least with version 1.24-REL, Diablo does have the "minsize"
command, and you can set up multiple different feed definitions for a
particular peer. You can group all articles less than a certain size
separate from those between other certain sizes, etc....
However, this is quite a bit more work than letting INN fire up
multiple innfeed processes for a single feed definition, and letting INN
handle the round-robin (or whatever) method of parcelling out articles
to be offerred to a peer by which process.
This method is also sensitive to being backlogged. If you have a
maximum of X connections that you can open to a particular peer and you
want to open up X-n (where "n" is a small number) connections to your
peer, you have to restrict the number of queue files that can be created
and the number of dnewslink processes that can be running
simultaneously, and then once that peer gets behind they're likely to
semi-permanently stay behind.
> Then just set up
> the nostream option in the dnntpspool.ctl file for the large file feed.
That's assuming the peer in question wants you (or is willing) to
use IHAVE, in order to get the increased reliability and delivery of
articles. If they've got sufficient numbers of peers, they may not be
interested in doing that.
> If one IHAVE feed isn't enough for the large articles then Diablo will
> open more after it backlogs. I'm guessing it will work fine.
Again, once you start talking about multiple streaming connections
to a peer, you want to make certain that they never get backlogged,
otherwise you're going to have a serious problem ever clearing that
backlog.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Note: No Microsoft programs were used in the creation or distribution of this
message. If you are using a Microsoft program to view this message, be
forewarned that I am not responsible for any harm you may encounter as a
result.
See <http://i-want-a-website.com/about-microsoft/twelve-step.html> for details.
Technical Details
Message-ID:
<brad-7021C5.00462609032000@news.skynet.be>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:
<20000307112107.524$na@newsreader.com> <brad-208040.20222807032000@news.skynet.be> <20000307144134.035$KD@newsreader.com> <brad-E330A5.20514107032000@news.skynet.be> <952460805.821101@news.netscum.dk> <20000307170425.247$Qv@newsreader.com> <brad-BF24CC.08211508032000@news.skynet.be> <20000308115245.420$Lt@newsreader.com> <brad-964AFF.19323608032000@news.skynet.be> <20000308144707.860$xL@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <brad-7021C5.00462609032000@news.skynet.be> Subject: Re: Pipelining IHAVE commands with INN Date: Thu, 09 Mar 2000 00:00:00 +0000 From: Brad Knowles <brad@shub-internet.org> References: <20000307112107.524$na@newsreader.com> <brad-208040.20222807032000@news.skynet.be> <20000307144134.035$KD@newsreader.com> <brad-E330A5.20514107032000@news.skynet.be> <952460805.821101@news.netscum.dk> <20000307170425.247$Qv@newsreader.com> <brad-BF24CC.08211508032000@news.skynet.be> <20000308115245.420$Lt@newsreader.com> <brad-964AFF.19323608032000@news.skynet.be> <20000308144707.860$xL@newsreader.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: 594931287 Mail-Copies-To: poster X-Complaints-To: abuse@skynet.be X-Trace: news1.skynet.be 952559208 10427 194.78.233.6 (8 Mar 2000 23:46:48 GMT) Organization: Shub-Internet X-URL: http://www.shub-internet.org/ User-Agent: MT-NewsWatcher/3.0 (PPC) NNTP-Posting-Date: 8 Mar 2000 23:46:48 GMT Newsgroups: news.software.nntp