Article View: news.software.nntp
Article #54030Re: slave servers with INN
From: Alexis Rosen
Date: Tue, 28 Aug 2001 08:41
Date: Tue, 28 Aug 2001 08:41
80 lines
4702 bytes
4702 bytes
Russ Allbery <rra@stanford.edu> writes:
>float <float@panix.com> writes:
>> In the latter article, it was suggested to feed one reader from the
>> other using nntpsend, run every minute, to keep articles in order.
>> After a recent chat with Alexis, I have this question for you, Russ: why
>> nntpsend instead of innxmit? The way Alexis described innxmit to me, it
>> sounded like it would accomplish the same goal, and might even involve
>> less disk I/O.
>nntpsend is just a shell script wrapper around innxmit that does some
>locking, so they're essentially equivalent.
Sorry. It's been a long time since I touched news extensively and I forgot
the correct name for the software I was talking about. Before innfeed, there
was a program available that was essentially a single-connection innfeed.
When it was first written it put a big nail in C news' coffin because you
could finally kick articles through your server in under a second. I forget
what it's called, and I don't know if it's still available, though on the
net nothing ever dies completely... (But I don't think I actually need this
after all- see below.)
The idea is to prevent temporary news holes in high-volume groups, without
losing the never-touch-the-disk article feeding you can get from innfeed.
To do that you have to ensure that there can never be more than one
connection that might write a given group. Ben explained this (though
perhaps with insufficient detail, maybe because I was a bit terse myself):
>> He also had the cool idea of using one innxmit feed for each top-level
>> hierarchy. Is there any problem with this? We think it might reduce
>> the number of lost articles in case of a failover from the main reader,
>> the feeder-reader that is, to the other.
>The problem with splitting the feed is that you can then have articles
>arrive out of order on the slave server. Consider crossposted articles;
>[...]
Right, I thought of that. Judicious use of "@pattern" in the feeds should
prevent this from being an issue. Consider:
reader1-bin:!*,alt.binaries.*:...
reader1-nobin:*,@alt.binaries.*:...
Come to think of it, though, if I do this I think we can use innfeed and
have zero exposure to this problem:
group reader1 {
# other options may be set, this is just the interesting part
initial-connections: 1
max-connections: 1
peer reader1-bin {
ip-name: reader1.news.panix.com
}
peer reader1-nobin {
ip-name: reader1.news.panix.com
}
}
A good implementation of this strategy would micromanage things a bit more-
perhaps one feed for each of the big 8, one for alt except binaries, and
several for subsets of binaries. That way you could be blasting news over
a dozen or so connections without being subject to the transient-holes
problem. This would also, incidentally, probably drastically reduce the
number of out-of-order multipart binaries (at least, reduce the number
caused by our machines).
Anyone see a flaw in this scheme?
(BTW, a few years back, before the reader box was in an office with T3
service, just multiple T1s, it became clear that we couldn't stuff an entire
feed over a single T1 and the ciscos' load-balancing was getting completely
screwed by news anyway (this was before CEF per-packet round-robin was
feasible). We did something very similar to the above except we split the
feed based on article size, sending each subfeed to different IPs all of
which were on the same reader. The trick was, the routers in between
handled those various IPs in different ways to force the binaries traffic
over a line which didn't get used for anything else. It worked great.)
/a
Technical Details
Message-ID:
<9mflf2$io5$1@panix1.panix.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!panix!news.panix.com!panix1.panix.com!not-for-mailReferences:
<slrn9olit3.dm4.float@panix1.panix.com> <ylk7zpxctg.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <9mflf2$io5$1@panix1.panix.com> Subject: Re: slave servers with INN Date: Tue, 28 Aug 2001 08:41:06 +0000 From: alexis@panix.com (Alexis Rosen) References: <slrn9olit3.dm4.float@panix1.panix.com> <ylk7zpxctg.fsf@windlord.stanford.edu> 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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsxfer.eecs.umich.edu!panix!news.panix.com!panix1.panix.com!not-for-mail Newsgroups: news.software.nntp Organization: PANIX Public Access Internet and UNIX, NYC Lines: 79 Distribution: inet NNTP-Posting-Host: panix1.panix.com X-Trace: news.panix.com 998988053 3867 166.84.1.1 (28 Aug 2001 08:40:53 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: 28 Aug 2001 08:40:53 GMT X-Newsreader: NN version 6.5.6 (NOV)