🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #16271

Re: Some Diablo questions!

#16271
From: Cracker Buster
Date: Tue, 25 Mar 1997 00:00
134 lines
8035 bytes
On 25 Mar 1997, Chris Sedore wrote:

>   If you look at stats
> for Maxwell (http://nntprelay.maxwell.syr.edu/stats.html), in the top
> section you'll notice a statistic called "precommit_saves".  This is a 25
> entry (configurable) circular cache of recently 238'd (or 335'd) articles. 
> We implemented this to cut down on this exact problem: we were rejecting
> articles solely because two (or more) peers had received 238s for the
> article.  This number now runs around 1.6x the number of articles
> received--all of these would have been transmitted and rejected without
> this cache.  Many of our articles are offered multiple times in a window of
> less than 2 seconds (quite a few in less than 1 second).  The more peers,
> the worse the problem gets, and it is pretty bad with the roughly 77
> incoming feeds we accept.  We do still reject some because of multiple
> delivery (the takethis_refuse statistic).
> 
> This does have a downside: if the transfer fails, we might not get that
> article.  To solve this problem, I'm working on a weighting system to allow
> multiple 238s to be issued depending on who asks, up to a maximum
> overcommit limit.  Interestingly enough, it also caused a significant shift
> in our feed base, in terms of who got credit for an incoming article.  It
> also reduced our outgoing acceptance rate some.  

    What response code do you return to the additional peers which offer
you an article?  If I recall, the response codes 436/431 can be used by
non-streaming/streaming (or vice versa, whatever) feeds to say ``Try again
in a bit'' with the intent of being used in just this situation.  (Some
sites give this code in response to full disk or other problems, which
would be better served by a 400 response, as 431/436 is a hint that the
next offered article might succeed, which is definitely not true when a
disk is filled.)

    It's also instructive to compare your statistics over time, so that
one can see which peers always perform well, which ones are connectivity-
limited on weekdays, and which ones just generally suck all the time. 
Unless the always-poor ones are at the end of a 64k satellite hop, they
probably will not be helped by additional parallel connections, while the
ones such as myself which fluctuate wildly around the clock will be
helped, particularly given non-streaming feeds (streaming being ideal for
less-than-ideal connections).  Hmmm, would be interesting to plot a graph
of % of articles processed over time for your peers which aren't above 90%
or below 10% overall.


> For most of our big peers, we have given up on outgoing streaming
> entirely--we get 238's at better than 50%, but every article after the
> first is then rejected.  We just use IHAVE.  In some rare cases, I've found
> that actually forcing the connection into NoCheck will generate >90%
> acceptance rate with small (<4k) articles.

    It depends on your peer too.  This is where fine-tuning of (in my
case) the innfeed configuration makes the difference -- I would get the
same result by setting the maximum number of CHECKs to 1 or disabling
streaming.  I'm now seeing 6 connections from Maxwell over my link in the
early morning hours, with transfer rates similar to
Mar 25 05:22:15 4H:kafka innd: news.maxwell.syr.edu:48 checkpoint seconds
    577 accepted 393 refused 124 rejected 7
Note that this particular machine only rejects articles due to duplicates
or problems such as bad Message-IDs or being too old (which ought not to
be a problem with most of its peers like Maxwell), as it is configured to
treat any newsgroup name like foo.bar.baz.sex.pictures.grubor.rot13.cancel
the same as news.software.nntp, and even accepts unmoderated posts to
alt.sysadmin.recovery (oh the shame, the horror).  For reasons which would
be obvious, I don't plan to support readers on this machine, while it is
quite possible I'd do that on the second machine with the same filesystem
(I did not write the code and am not trying to take any credit for it,
merely putting forth my observations on how it performs). 

    At the same time, Primenet's News Expedience, which has gone
significantly downhill recently, has a connection to me which looks like
Mar 25 05:34:09 4H:kafka innd: nntp.primenet.com:45 checkpoint seconds
    5354 accepted 942 refused 12110 rejected 58

    The initial strategy of Primenet was to issue a large number of
CHECKs, which works well for peers which accept a large percentage of what
is offered, or a small percentage.  At points in between, this is where
rejects due to multiple delivery becomes a problem.  I could probably go
through my innfeed configuration file once again and increase the number
of CHECKs I give Maxwell at a shot and lower the number of simultaneous
connections, but my present value dates from a time when I was giving a
somewhat larger share than today (probably due to the changes mentioned,
or to the addition of more peers with better connectivity whom I also
feed).

    The downside of a small number of CHECKs is that with the connectivity
I have, I must compensate by opening a larger number of connections.  As
I'm already dividing outgoing articles three ways by size getting a ratio
by count of 24:3:1, most peers are going to wig out when they see more
than half a dozen simultaneous connections from me.  Oh well...  Then
again, if it requires 15 connections to keep from backlogging to a peer
which performs well, you both would probably do better to relay the news
through a common peer to which you both have better connectivity.

    Just as an example of the difference the responsiveness of the
connection makes, here's what I see now for  what I send in the small
(size <4k) article feed to Maxwell:
news.maxwell.syr.edu
   seconds: 41061     art. timeout: 150          ip name: 128.230.129.107
   offered: 85656    resp. timeout: 900             port: 119
  accepted: 1663    want streaming: yes      active cxns: 3
   refused: 76144     is streaming: yes    sleeping cxns: 0
  rejected: 7810        max checks: 6       initial cxns: 1
   missing: 0         on threshold: 95.0%       max cxns: 8
  deferred: 0        off threshold: 90.0%
                or 1.79 ar 0.04 rr 1.69 jr 0.06
        missing 0 spooled 451

    One problem with my offerings that are apparently wanted is that they
are bursty in nature, with perhaps 3 or 4 never-before-seen-by-the-world 
articles arriving at my site in a tenth of a second, and with my
connectivity to Maxwell (or many other sites), I may get these articles to
a site in Scandinavia over a better link, which has better connectivity to
the US, before the second or third one has been completely transferred to
Maxwell.


> >   It is pretty much impossible that I would ever have given enough
> > CHECKs for 95% of them to be ACKed, which would trigger innfeed into
> > bypassing the CHECKs. 
> 
> My impression was that you didn't need 95% to be acked, just that 95% of the 
> acknowledgements received had to be positive.

    My apologies for my unclear terminology here and in reference to
bandwidth/latency.  One to two hours of sleep a night is *not* enough
over an extended period of time.  You are correct.


-Barry Bouwsma  http://www.dhp.com/~kibo/bouwsmb0.html
Official FAQ Maintainer


Technical Details
Message-ID: <Pine.LNX.3.93.970325070906.6808g-100000@radostne-vanoce.radio.cz>
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: <01bc38ca$fd538630$1f8fe680@spring>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.93.970325070906.6808g-100000@radostne-vanoce.radio.cz>
Subject: Re: Some Diablo questions!
Date: Tue, 25 Mar 1997 00:00:00 +0000
From: Cracker Buster <luser@Radio.CZ>
References: <01bc38ca$fd538630$1f8fe680@spring>
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: 228164358
Organization: Radio Praha -- Cesky Rozhlas 7
Reply-To: ag786@yfn.ysu.edu
Newsgroups: news.software.nntp
NNTP-Posting-User: luser