🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50910

Re: Diablo Web SIte

#50910
From: Mike O'Connor
Date: Thu, 01 Mar 2001 15:57
241 lines
13931 bytes
In article <insert-pseudo-random-number-here@insert.unique.domain.here>,
Charlie Charlatan  <autocyberretributionmeowbot@pl0nQ.invalid> wrote:
:*** post for free via your newsreader at post.newsfeeds.com ***
:
::: I think some amount of connection limits make sense.  News should not
::: be permitted to conduct itself like a denial of service attack.  In
:
:Yahbut, you need to be able to handle what it takes.  Our 2-disk
:top-rankin' news machine should be able to handle some 892 connections
:before we start unilaterally refusing connections, and since this
:is the select() loop doing this, we should have enough resources
:that our machine doesn't go down from this.  If you are serious
:about doing news, you have to be prepared to handle it.

I was thinking more about 'connections from one site'.  I've had 
lots of fun with old revs of Cyclone and innfeed wanting to beat my 
news server into submission with egregious amounts of connections, 
usually with no accompanying news.  :/

:Also, be realistic.  We're talking up to 12GB/hour, 20 articles/sec
:with peak counts over 5 minutes well over twice this.  So of course
:what you need today will be more that what it was years ago.
:
:Yeah, I know, you're non-binaries mostly.  I'm talking general now.

And, I happen to delight in running news on a tradspool with a 
"Junkyard Wars" configuration of 1992 and 1995-era hardware and
experimental OSes loaded on it, and make it in the Top 100 while
using only about a T1/E1's worth of bandwidth.  Some folks pay 
to get configurations like mine hauled into a scrapyard.  I admit
to operating under a sick and wrong model for contemporary Usenet.

:It all depends on the latency and how much of the above numbers
:you want to see.  If we are taking in binariez at eight articles
:per second, if you want to take them from us, you have to take
:them in at eight per second.  Articles that take time to transfer.
:Yesterday it used to be that I'd need to open more connections to
:get non-binaries out, but today, if a site nearby is taking in
:binaries from us, I seem to need as many connections as articles
:per second.  Here, streaming or non-streaming makes no difference,
:when a site takes a lot, as far more time is spent delivering the
:article than on any protocol.  The heck I'm going to CHECK one of
:a batch of 25 megabyte-sized articles and wait around until the
:remaining 24 have been delivered.

Just further evidence that the NNTP protocol has evolved with
binaries in mind...  :)

:Small article limits seem to depend on the latency of the link.
:A typical peer we send a lot to, may need 8 connections of small
:articles to keep up.  Add to that 8 connections for binaries and
:we've probably run into a limit that peer has imposed.  Reasonable?
:Depends.  I impose no limits on what our peers can open, other
:than that 892 that we're a bit less that halfway toward reaching.

You use non-streaming connections for your small articles, though.
I've found that just three streaming connections are enough for many
non-binaries sites to keep up with a fullish non-binaries feed.  In
my limited experiments with non-streaming feeds, I seem to get very
slightly better latency with non-streaming, but require more connects
to make it possible.  

:My rule is simple:  I start with five connections per feed, and
:tune it upwards or downwards as needed, to keep up in realtime
:without backlogging excessively.  If I run into an artificially-
:imposed limit on connections, then I forget about trying to keep
:backlogs.  I'll deliver everything we got with backlogs if that's
:what I'm able to set up (assuming the other site can keep up and
:not need too many connections); if not, then you run the risk of
:losing things since I can't allocate the resources needed to give
:you everything.  I can see, though, from the amount of old news
:flowing around out there, that there are sites with a week or
:more of backlogs waiting for them.  That either means they can't
:keep up or they aren't allowing their feeders what is needed to
:get the news to them.

I've been noticing this too.  It's remarkable -- the old decwrl news
server has been down for a couple weeks, yet the usepath server at
tfeed.maxwell.syr.edu, restarted a week ago, is still seeing 'new'
articles go through it.  

::: why.  Should one limit connections so feeder software is will use
::: basically-idle connections already opened rather than open new ones.
:
:This is the approach I take from the sending end.  I look at the
:backlogs, the internal queue status for innfeed, and decide if
:the peer is able to keep up well or not.  My goal is a queue of
:zero except during the evening peak of article flow (the number
:of connections needed nearly doubles, depending on time of day,
:with evening european time being the peak)
:
::: Or should there be a gazillion idle connections, creating potential
::: stack and fd hell at the recipient end, so the feeder's article will
:
:If you need a gaZILLION[service mark of TeleDanmarkCommunications]
:connections, then your peer probably can't keep up or you should
:re-evaluate the news you're sending.  If I need more than four
:connections per feed to nearby peers, then that site probably can't
:keep up no matter what I do, unless I'm pushing a lot of binaries.
:Because of the additional latency imposed by distance, that number
:will probably be more like eight connections for trans-atlantic
:peers for fast sites that don't take much, or maybe 15 for those
:sites that do take a lot.

Right, but you don't open 20 connections all the time, just waiting
for them to be in use all at once, do you?  In my case, I expect that
5 connections is enough for me to get what I'll get from you.  If
you have 50 peers all wanting to open 20 connections when you happen
to be recovering from a brief outage, you have a mess on your hands.
I'd like to see logic in the feeders that says "wait until feeder
is performing well with the connections they already have before 
opening new ones", or some sort of better congestion control than
what I see currently.  Right now, the only thing I see that feeders
react to from those being fed is 'backlog', not throughput, network
health, RTT, accept ratios, anything like that.  

:Now, if a connection is mostly idle, that shows up here, just like
:if the connections are backlogging.  The question then should be,
:do I want to tune the number of connections for the average article
:rate of 20/sec during peak evening hours, so that I see backlogs
:only during bursts, or for the low article rate of 10/sec during
:off-peak times, so that much of the day is spent backlogging, often
:a situation that one never can catch up from.

My observation is that peers that chronically backlog don't suddenly
stop sucking no matter how hard you try to feed them.  With enough
connections, you can thrash some into not having backlog, but often
at great feeder-side expense.  

:I choose to tune my outgoing feeds to handle the rate I see during
:the peak times, knowing that while lines might get slightly faster
:to some of our peers, the daily number of posts has once again
:started to increase after a year or so of being down from an earlier
:million-plus peak per day, due to the increase in binariez posts and
:a decrease in average binariez post size as people split their posts
:into ever-smaller parts (used to be you'd see a peak of articles at
:some 600k size; nowadays the peak is very sharp down around 300k,
:as apparently people have discovered that a lot of transit sites
:don't propagate or want articles larger than half a megabyte.
:This implies that sites who want to avoid propagating these 150GB/day
:of articles <512k size should change their cutoffs to 300k or 256k
:instead).  Over the last year, the daily count has roughly doubled
:from some 800 thousand to more like a million and a half now.
:
:Anyway, before I got distracted, I'm talking of a full feed here.
:Sites like you, well, I'm not sending a full feed, so I don't need
:as many connections.  But you're still on the other site of the
:ocean over a link that right now has 40ms higher RTT than it did
:several months ago, so more connections are called for to get the
:data to you.

Much depends on why the RTTs are higher. If it's a long-term sort 
of problem, I'd rather spend resource at fixing it than at trying
to work around it in software (thus causing a lot of pointy-haired
managers to perceive that it was never a problem in the first place).

::: always have an idle connection to go out there with?
:
:Of course, some people have a different idea of a gazillion than
:we do.  Personally, for the incoming feeds to me, I would say yes,
:it's okay to open as many connections as you need to keep from
:seeing backlogs, within reason, where 20 connections across the
:ocean would be reasonable if traceroutes don't look bad, for non-
:binaries.  A gazillion that matches two, or three, is not reasonable.
:Period.  And will never be.
:
:I'd also change the `always' that you give above to a `usually' and
:then say yes.  Remember that peaks will often be well above the 20
:art/sec average rate.  When low-life scum Repsis, Gartman or Bouwsma
:spammers spew their floods, we see well over 50 art/sec averaged for
:five minutes, so peaks can easily be higher over a shorter period.
:For my outgoing feeds, I'd say that the connections needed to handle
:50+ art/sec isn't necessary unless the peer being fed agrees, but
:20/sec or 30/sec is reasonable, as that's the rate being sustained
:over several hours every day now.

Do you think that if most people were issued 20-30 connects from their
peers, that they could really take advantage of it?  You're at the top
of the food chain, which makes you an exception in many ways.

::: In this case, I'd think you'd want to be sure that the other peers get
::: a lot of articles to the remote end, else you do lots of disk thrashing
::: because the huge articles are no longer in your buffer cache.
:
:True.  Also, the delayed feed needs to be gentle on the disks.  An
:easy way to do a delayed feed today is with innxmit, that I'm using
:more as a backup feed because of known innfeed problems causing the
:occasional lost bunch of posts, but the current innxmit k0de is so

What conditions cause innfeed to lose posts?  

:bad to the disks that even if it sends nothing, it still thrashed
:the disks enough to get rid of all idle time on the incoming feed
:before I hacked it (although on a Slowaris box that wasn't too far
:from its limits taking in the feed).
:
:If you use an innfeed delayed feed, you again need to pull old posts
:from the disks when you need to deliver them (innfeed is gentler on
:disks by not verifying articles before offering them, as new innxmit
:does).  Here you run into the problem that innfeed is single-threaded
:and as others have noted, if one peer starts to backlog, others will
:often follow, and often these backlogs just don't disappear, as the
:innfeed process spends too much time on disk activity.  This kills
:performance for everyone, not just the misbehaving peer.

I'm running innfeed on a 9-year-old CPU...  it's hard for me to tell.
I try to avoid chronically sucky backlogging peers, or relegate them
to innxmit and ditch 'em if they can't keep up with that and see if
they even notice.  
:
::: I'm feeling really glad that I exchange a newsfeed with Barry and he
::: _doesn't_ complain about it.  I only send him ~20k articles/day vs. 
::: the 40k articles/day he sends me.  Barry, if you're out there, please
::: take mercy and don't flog me in public for being such an inadequate
:
:You are a perfectly adequate peer.  In fact, given the configuration
:of our feed to you, I'm actually surprised that we're sending you as
:much as we are -- I would have expected it to be different, particularly

Doing some math for the past month, we send you 17k articles/day and
you send us 32k articles/day.  Part of the reason I have you use that
particular configuration is to optimize the amount of articles you're
feeding me, so I'm glad.  

:as I don't even bother to look at the transit machines anymore.  And I
:don't expect any site that isn't in the top five or ten to deliver any
:more to us than we deliver to them, with as many incoming fast feeds
:as we have.  So chill, relax, stop begging for a beating.  Those are
:only reserved for them what has earned themselves a hide-tannin'.
:
:Of course, I could be wrong.

I was being a bit silly.  And as for the hide tanning, I'll have to
ask my girlfriend about that...  (For anyone who's read this reply
for that long, they probably deserve a salacious ending.)
 
--
 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

Technical Details
Message-ID: <010301155745.AA6477@dojo.mi.org>
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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!enews.sgi.com!dojo.mi.org!not-for-PROFS
References: <Xns90457F1777DCDringdahlwebusenetcom@63.210.103.22> <982102871.742793@news.netscum.dk> <010214130237.AA17004@dojo.mi.org> <insert-pseudo-random-number-here@insert.unique.domain.here>

Show Full Headers
Complete Article Headers
Message-ID: <010301155745.AA6477@dojo.mi.org>
Subject: Re: Diablo Web SIte
Date: Thu, 1 Mar 2001 15:57:45 GMT
From: Mike O'Connor <mjo@dojo.mi.org>
References: <Xns90457F1777DCDringdahlwebusenetcom@63.210.103.22> <982102871.742793@news.netscum.dk> <010214130237.AA17004@dojo.mi.org> <insert-pseudo-random-number-here@insert.unique.domain.here>
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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!enews.sgi.com!dojo.mi.org!not-for-PROFS
Newsgroups: news.software.nntp
Reply-To: Mike O'Connor <mjo@dojo.mi.org>
Organization: Committee for Aesthetic Deletions
Lines: 240