🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #33502

Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)

#33502
From: Ragnar Lonn
Date: Thu, 03 Dec 1998 00:00
119 lines
7025 bytes
In article <Pine.LNX.4.00.9812030138200.202-100000@coredump.int.tele.dk>, 
BARRY BOUWSMA IS A PEDOPHILE <pedophiles@vszbr.cz> wrote:
>On Thu, 3 Dec 1998, Ragnar Lonn wrote:
>paying customers?  ;-)  And presumably the Swedes know how to spend
>their free time, like hunting whales or driving reindeer or whipping

No, you're mixing us up with the Norwegians. Here, we are far too many
 - at least it seems that way when I look at the load average on my news
servers or at the crowds on the bus during rush hour. We don't have any whales
either, maybe a seal here and there, but we do have a problem with all the
penguins, polar bears, and troublesome vikings out on the streets.

>Bingo.  I believe you have just discovered the essential karma of the
>business.  I make use of it often.  Every now and then, I wander down into
>the machine room after donning earplugs to mute the sound of the alarm,
>cleanly sever the 622Mbit/sec cable feeding the swerver farm with a
>finely-honed axe, and wander aimlessly back upstairs after giving the

The problem here is that our offices aren't located anywhere near the 
machine room. Our postmaster does have an axe on her desk for when
she needs to deal with spammers so I guess I could borrow that but
it's a lot of trouble going to the machine hall every day to sever the
cable to the news servers. Of course, it's only a 100Mbps connection
so maybe it'll do if I cut it less often?

>Give the redneck a redneck!  Hang 'em high!  Find the code for XGetGroupList()
>and put your hacking skills to suitable abuse!
>    syslog(L_ERROR, "%s NOT using actived",
>        ClientHost);
>/* Bail out now while the load is still low before it's too late */
>        Reply("%d CATASTROPHIC SERVER FAILURE!!!!!!!!  AIEEEE, WE ARE GOING
> DOWN
>

Well, as I mentioned (did I?), right now I don't get any "NOT using actived" 
messages so it appears actived is indeed being used by all nnrpd's. I do get
the request-ID mismatch messages, but from the code (nnrpd/group.c) it
looks as if that won't cause nnrpd to stop talking to actived so it shouldn't
affect performance if the problem was only caused by nnrpds reading the
active file by themselves. I may be wrong, of course, but as they say -
what's right's what's left when you do everything wrong! 

I think the function is called GRPfind() which in turn calls
GRPactivedfind()  (nnrpd/group.c)

>Or something like that.  Depends on how antagonistic a relationship you want
>with your luserbase and your Helldesk.  This also assumes that actived is
>normally working without failure, and that you have plans to restart it
>automatically otherwise.  The only time it's been a problem here is when

Yeah well, INN 1.7 actived usually stays up for a week or two, which would
be a good uptime if we were discussing aphrodisiacs or hanggliding, but then 
it dies so we have been using a script to restart it and it has worked pretty 
well. I'd rather have a working actived that dies now and then than the 
opposite.

>Possible ideas -- it may depend on the size of the active file (I really
>need to take a weed-whacker to mine, again), and it could very likely be
>a result of more widespread use of abusive readers that make multiple
>connections that are closed after every article.  It used to be that I
>could see something in the logs other than
<snip>

Well, our logs have been filled with "Connection reset by peer" for as long
as I can remember almost!  (of course, my memory is notoriously bad so
I'm not sure that's a significant statement)  So I don't *think* that's the
problem. Also, the number of readers isn't likely to have skyrocketed
the last couple of days just at the moment when we upgraded to 2.2.
Could have, but not very likely!

>from one customer, well, who knows).  What about the load on your machine?
>We see problems when the load reaches double-digits, so presumably then
>the new connections aren't serviced fast enough.

Yeah well the load starts out at 2-3 when readers start to connect, then it 
just slowly but steadily climbs until it reaches unforeseen heights... I 
stopped the show when the load reached 950 on one of the servers. 
You're probably right in that the system can't handle the connections fast
enough which causes a negative spiral but I'm curious as to how this could
be when I just installed a supposedly improved newsserver software and
are using a supposedly much faster article storage scheme?  I know that
CNFS may gain most performance on the feeder side, of course, but there
ought to be a little speed increase for the readers too, I would think. Maybe
I'm wrong again!

>Our current reader machine is too slow to even do adequate feed filtering
>(but normally disk access is not a problem), so we may be hitting the
>point where we can't do context switching fast enough, or something.
>I haven't tried to analyze why, as it's more important to do something
>about it than to know what to do.
>

Umm, actually, when I look now, I see there are enormous amounts of
context switching going on. With 206 nnrpd's on one reader machine with
load average 60-80 I see between 7000 and 13000 cs per second!  That's
quite a lot for a poor Ultra/170!   The writer host, as comparison, does
between 400 and 1500 cs per second, has a load average of about 3.5,
23 nnrpd's, and 13 incoming NNTP connections from the (2) feeder machines.
But the amount of context switches on the reader host is not normal, I'll
bet our last whales on that.

>able to be serviced before too many new ones arrived, but that's only a
>guess, along with an increase in the Swedish population.

Well I guess we'll have to cut down on immigration a bit then, to avoid
overloading our newsservers!

>>  How much can go wrong?  Argh!
>
>You're new to the business, no?  ;-)  I'm sure others can give far more
>interesting stories than I have to offer.
>

Don't tempt me or I'll write a multi-threaded, horribly bug-ridden actived
myself!

  /Ragnar

Technical Details
Message-ID: <7450tq$ivl$1@pepsi.tninet.se>
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: <74142e$9vf$2@zingo.tninet.se> <36650CED.5F12611E@wxs.nl> <744frg$glp$2@pepsi.tninet.se> <Pine.LNX.4.00.9812022329590.202-100000@cor edump.int.tele.dk> <744kmt$h6g$1@pepsi.tninet.se> <Pine.LNX.4.00.9812030138200.202-100000@coredump.int.tele.dk>

Show Full Headers
Complete Article Headers
Message-ID: <7450tq$ivl$1@pepsi.tninet.se>
Subject: Re: INN2.2 actived on strike! (Was: Re: INN2.2 - articles late to appear on NFS-clients?)
Date: Thu, 03 Dec 1998 00:00:00 +0000
From: prl@algo.net (Ragnar Lonn)
References: <74142e$9vf$2@zingo.tninet.se> <36650CED.5F12611E@wxs.nl> <744frg$glp$2@pepsi.tninet.se> <Pine.LNX.4.00.9812022329590.202-100000@cor edump.int.tele.dk> <744kmt$h6g$1@pepsi.tninet.se> <Pine.LNX.4.00.9812030138200.202-100000@coredump.int.tele.dk>
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: 418098004
X-Complaints-To: abuse@algo.net
X-Trace: pepsi.tninet.se 912656122 19445 195.163.77.82 (3 Dec 1998 03:35:22 GMT)
Organization: Telenordia
NNTP-Posting-Date: 3 Dec 1998 03:35:22 GMT
Newsgroups: news.software.nntp