🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by float Mon, 27 Aug 2001 22:37
Re: slave servers with INN
#54024
Author: float
Date: Mon, 27 Aug 2001 22:37
22 lines
1787 bytes
RECAP: In <slrn9id3e5.cha.float@panix1.panix.com>, I asked about
how to set up two INN reader machines with synchronized article
numbers.  Russ Allbery gave me a very informative answer in
<ylr8wp5jdd.fsf@windlord.stanford.edu>.

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

Thanks.

-- 
 Ben

ENOSIG
Re: slave servers with INN
#54025
Author: Russ Allbery
Date: Tue, 28 Aug 2001 00:12
33 lines
2542 bytes
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.

> 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;
if you have an article crossposted between a comp.* group and an alt.*
group, the comp.* feed may be faster and therefore the article may show up
on the slave server in both groups before some earlier articles in the
alt.* group have arrived.  This opens windows of opportunity for a reader
pointed at the slave server to get confused about what articles are
available and end up missing entirely the articles that were late in
arriving.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: slave servers with INN
#54030
Author: Alexis Rosen
Date: Tue, 28 Aug 2001 08:41
80 lines
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
Re: slave servers with INN
#54029
Author: Mike O'Connor
Date: Tue, 28 Aug 2001 15:11
17 lines
1565 bytes
In article <9mflf2$io5$1@panix1.panix.com>,
Alexis Rosen <alexis@panix.com> wrote:

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

nntplink, which as I recall, die due to a lack of streaming more than
lack of multiple connections.
 
--
 Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: mjo@dojo.mi.org
 Royal Oak, Michigan | (has my PGP & Geek Code info) | Phone: +1 248-427-4481
 =--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--=
"I'm not bad, I'm just drawn that way."                       -Jessica Rabbit

Re: slave servers with INN
#54032
Author: Russ Allbery
Date: Tue, 28 Aug 2001 22:34
41 lines
2790 bytes
Alexis Rosen <alexis@panix.com> writes:

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

Ahh, nntplink.  It died because no one ever fixed it to understand the
storage API in current versions of INN.

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

The problem with using innfeed is that innfeed will spool to a backlog
file and then won't necessarily feed the backlog before new messages when
it works on the backlog, and pretty much all feeds will backlog at least a
little bit from time to time for various reasons.

I have some patches to add an option for innfeed to always feed the
backlog first, but they aren't in the source tree yet.

innxmit doesn't have this problem; it always starts at the beginning of a
list and feeds the articles in order.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: slave servers with INN
#54033
Author: Andrew Gierth
Date: Tue, 28 Aug 2001 22:53
47 lines
3157 bytes
[bogus "Distribution: inet" removed]

>>>>> "Alexis" == Alexis Rosen <alexis@panix.com> writes:

 Alexis> The idea is to prevent temporary news holes in high-volume
 Alexis> groups, without losing the never-touch-the-disk article
 Alexis> feeding you can get from innfeed.

I once did a hack to innfeed that forced it to feed articles more or
less in order of arrival (every article was forced to go through the
backlog). It could still get slightly out of order due to the use of
parallel streams, but it didn't have the usual innfeed problem where a
backlog of articles can hang around almost indefinitely while newer
articles continue to be fed.

 >> The problem with splitting the feed is that you can then have
 >> articles arrive out of order on the slave server.  Consider
 >> crossposted articles;

 Alexis> Right, I thought of that. Judicious use of "@pattern" in the
 Alexis> feeds should prevent this from being an issue. Consider:

 Alexis> reader1-bin:!*,alt.binaries.*:...
 Alexis> reader1-nobin:*,@alt.binaries.*:...

this can still be an issue. If someone crossposts between an
alt.binaries.* group and a non-alt.binaries.* group, then if the
binary feed is running slower than the non-binary one, articles with
higher numbers in the _non-binary_ group will show up before the
crossposted article does.

 Alexis> A good implementation of this strategy would micromanage
 Alexis> things a bit more- perhaps one feed for each of the big 8,
 Alexis> one for alt except binaries, and several for subsets of
 Alexis> binaries. That way you could be blasting news over a dozen or
 Alexis> so connections without being subject to the transient-holes
 Alexis> problem.

It's essentially impossible to avoid the transient-holes problem and
still have multiple feed channels running, unless you actively filter
out certain types of crossposts, or you have feeder code that
understands the dependencies between articles (never seen anything
like that yet)

-- 
Andrew.
Re: slave servers with INN
#54039
Author: Mark Hittinger
Date: Wed, 29 Aug 2001 00:41
38 lines
2761 bytes
Russ Allbery <rra@stanford.edu> writes:
>Ahh, nntplink.  It died because no one ever fixed it to understand the
>storage API in current versions of INN.

nntplink also has some buffer overflow conditions that will cause it to core
if you try to use it these days.  It was showing the first signs of these
problems years ago and has just not been workable for a long while.

In the old netcom days I toyed with multiple innxmit feeds between our master
and slaves located in different data centers.  The article "out of order"
problem would be very noticed by the customers at times when the connectivity
between the data centers was bad or there was some sort of flooding activity
going on.  

I was experimenting with a hacked 'actived' that had knowledge of the high
water mark on each slave.  It also knew what the highest contiguous high 
article was in each group.  The idea was to have each slave lie to any
connecting clients about what the active file data was.  Instead of telling
the client what the highest article was on the slave, actived would tell
the client only what each slave could always deliver.  This let slow slaves
catch up and allowed holes to be filled.  Faster servers told clients only
what the slower slaves would have told them.

It didn't work if the holes were large or the slaves were terribly out of
sync.  It looked like the feed was down in that situation.

I suppose if we were to look at something like this again the data that the
hacked 'actived' knew about could lead to a priority list of articles to
be transmitted.  The hacked 'actived' could influence the distribution of
articles to the slave farm in order to more quickly cure lagging groups,
lagging slaves, or older holes.

Later

Mark Hittinger
Earthlink
bugs@netcom.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads