🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21969

Re: nnrpd going berserk (INN-1.5.1sec2, Linux pre-2.0.31-9)

#21969
From: Lars Syrstad
Date: Mon, 29 Sep 1997 00:00
58 lines
2756 bytes
"Georg v.Zezschwitz" <gvz@popocate.hamburg.pop.de> writes:

> In news.software.nntp Lars Syrstad <lars@idb.hist.no> wrote:
> : What happens is that occasionally, the server's load will go totally
> : wild.  The record so far is 47.  This seems to be caused by a
> : ....
> 
> I noticed the same problem. Imagine what happens when just another
> alt.binaries.-junk is clicking to the next images while the recent
> one is still transfered: Each time a new connection is being built
> up. 

But, but, but.  A client shouldn't _do_ that!  

Note that when nnrpd gets started, there is nothing at the other end
of the connection.  If the client attempts to download articles with
several parallel connections, it doesn't make sense that it drops the
connection before anything is sent.  (nnrpd doesn't even get to log
the IP-adress of the client before the connection is gone.)

> This means nearly nothing for the client, but a hell of work
> for the server: INN is forked just to recognize that the IP-number
> is a client one and that nnrpd should be called. Linux has to copy
> the whole memory descriptor table for innd to fork and some other
> work, too.
> 
> This might result in a really bad situation where the client is
> trying faster to open new connections than the server can cope
> with the started ones.

But why should the client try to open more than one connection to the
server?

[...]

> - Directly starting nnrpd for the readers. There are two ways 
>   to do so:

[...]

>   c) You use "transparent proxying" in Linux (beta feature) to
>      redirect requests from certain IP-numbers to a certain port
>      on your server (119) to port 120 and start nnrpd in the
>      nnrpd. 

I've been considering this.  We'd have to choose your method c), as we
do have a few minor incoming feeds that are unable to change the port
they feed to, so just forwarding connections to another port for those
few ip-adresses might to the trick.

Ohmygod, off into the Firewall-HOWTO we go...

  - Lars.
-- 
Not flogging a DOA MULE.

Technical Details
Message-ID: <vz90wfq266.fsf@kvakk.idb.hist.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <vzyb4hov9n.fsf@kvakk.idb.hist.no> <60muan$a78$1@alzheimer.hamburg.pop.de>

Show Full Headers
Complete Article Headers
Message-ID: <vz90wfq266.fsf@kvakk.idb.hist.no>
Subject: Re: nnrpd going berserk (INN-1.5.1sec2, Linux pre-2.0.31-9)
Date: Mon, 29 Sep 1997 00:00:00 +0000
From: Lars Syrstad <lars@idb.hist.no>
References: <vzyb4hov9n.fsf@kvakk.idb.hist.no> <60muan$a78$1@alzheimer.hamburg.pop.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 276501389
Organization: Organleggers, Inc.
Newsgroups: news.software.nntp,comp.os.linux.networking