🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10568

Re: problem with innfeed 0.9.1

#10568
From: kremžská HOŘČICE
Date: Fri, 30 Aug 1996 00:00
86 lines
5454 bytes
On Thu, 29 Aug 1996, Jeffrey C. Ollie wrote:

> I decided to give innfeed 0.9.1 a try on our system. Things work well
> until innd flushes the feed and tries to start a new copy of
> innfeed. The old feed takes so long to quit and release its locks
> (sometimes up to 5 minutes) that the new feed can't grab them.

    Not quite.  The old feed will release its locks quickly, but then
return to sending the backlogged data for minutes after (from here, I
routinely see much more than 5 minutes).  Unfortunately, the new innfeed
which is spawned is not always able to lock the feeds at times, like when
the server is being pounded into the ground and the original innfeed can't
get around to releasing the locks fast enough due to high system activity,
while a third innfeed, spawned pretty much immediately, is able to lock
the feeds.  When I'm not pounding the server, I don't see this problem no
matter how much I flush and abuse it.

    At other times, when I'm merely pummeling the server, I'll have only a
few unconfigured peers, with the majority of them set up and running. 

    Your lingering innfeed will hang around until it's done sending the
articles after releasing the locks, then it will close the connection.  If
that connection is idle (no articles pending), it should close quickly. 
If you've got a backlog and are in the middle of sending a big article
over a slow connection, the connection will stay around, so you will want
to make sure your downstream sites are able to handle this many
connections from you -- I keep seeing servers throttled for this reason. 
Repeated flushing can build even more connections -- particularly if the
newly-created connections have established and are themselves in the
middle of sending data.  From experience, closely-spaced flushes are less
dangerous in this respect, for here at this site the connections have less
of a chance to establish and negotiate transfer.  Space the flushes by a
few minutes and it spells almost certain death to an unprotected peer that
is dangerously close to its limit already. 


> Also, the code that is supposed to only log unconfigured peers once is
> horribly broken. When innfeed can't grab locks it doesn't configure
> the peer (even though it may appear in innfeed.conf). When innfeed
> sees a peer that it doesn't know about coming from innd it calls a
> function in innlistener.c to log it. That fuction is supposed to keep
> track of unconfigured peers so that it only gets logged once. However,
> the code to do that is broken (probably because that section of code
> is replete with uninitialized variables) and my logs fill up with
> error messages.  In one case, innfeed logged an unconfigured peer over
> 50,000 times before I killed it off.

    If you note an unconfigured peer, ctlinnd flush innfeed! should -- if
your server is relatively peaceful -- establish all the connections again,
without the danger inherent in killing a running innfeed.

    I got bit yesterday by this for a few hours, without noticing it. 
Hey, I have to sleep sometime.  This was when I was really punishing my
server so much that at times it would forget what TCP/IP was, or maybe it
was whimpering from being force-fed an article crossposted to newsgroup
alt.god.grubor.  What I have observed, in the cases where a peer cannot be
configured, is that apparently outbound articles for this peer are not
written anywhere -- in a controlled test, where only one unimportant peer
remained unconfigured for quite some time and articles were sent to other
peers which get the same groups, no host.output, host.input, or anything
I could see was written.  If this observation is really true, then this is
a possible source of lost articles, but usually if I notice this I try to
flush the feed and get the connections established, being the sole
provider for some sites, rather than verify the absence of tape files. 

    Ease up on your server a bit, if you can.  While it won't solve these
problems, it should minimize their occurrences.  I would expect that in a
case such as you have observed, innfeed should eventually grab the lock
(which will probably be free the second or third try), but until that
time, spool the articles in a tape file of some sort (host.output,
host.input, or just host, depending on what exists and what has been
locked).


    I've tried to explain the file locking as best I can from how James
described it to me, as well as provide my own observations.  I haven't had
time to try to investigate closely what's going on here, but I'm sure any
inaccuracies will be corrected.


Barry Bouwsma  <barryb@tuke.sk>
sick sadistic abUsenet adminstrator


Technical Details
Message-ID: <Pine.SGI.3.95.960830205431.28979B-100000@voskovec.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: <slrn452bm61.nen.jeffo@worf.netins.net>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.SGI.3.95.960830205431.28979B-100000@voskovec.radio.cz>
Subject: Re: problem with innfeed 0.9.1
Date: Fri, 30 Aug 1996 00:00:00 +0000
From: kremžská HOŘČICE <r00t@Radio.CZ>
References: <slrn452bm61.nen.jeffo@worf.netins.net>
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: 177529067
Content-type: TEXT/PLAIN; charset=US-ASCII
Organization: Radio Praha -- Cesky Rozhlas 7
Mime-version: 1.0
Reply-to: Barry.Bouwsma@tuke.sk
Newsgroups: news.software.nntp