🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by david Wed, 14 Jan 1998 00:00
Modify INND to control number of connections/host
#25203
Author: david
Date: Wed, 14 Jan 1998 00:00
22 lines
1334 bytes
Hey Anyone out there interested in modifying the rc.c source
file to restrict the number of simultaneous connections per
allowable host...

This would be a valuable addition to INND since my news feeds
seem to want to connect 6 to 8 times at once feeding my server
more files than it can process without slowing down the
newsreading services...

Anyone want to take a shot at this or have any suggestions on how
I can do this...

TIA

Dave.
david@nis.net

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

Re: Modify INND to control number of connections/host
#25202
Author: Marc G. Fournier
Date: Wed, 14 Jan 1998 00:00
21 lines
1412 bytes
In article <884792328.98566155@dejanews.com>,  <david@nis.net> wrote:
>Hey Anyone out there interested in modifying the rc.c source
>file to restrict the number of simultaneous connections per
>allowable host...
>
>This would be a valuable addition to INND since my news feeds
>seem to want to connect 6 to 8 times at once feeding my server
>more files than it can process without slowing down the
>newsreading services...
>
>Anyone want to take a shot at this or have any suggestions on how
>I can do this...

	Already implemented in 1.8current, but I don't know of a release
date yet...
-- 
Marc G. Fournier                                 scrappy@hub.org
Systems Administrator @ hub.org              scrappy@freebsd.org

Re: Modify INND to control number of connections/host
#25238
Author: Charlie Reboot
Date: Thu, 15 Jan 1998 00:00
44 lines
2693 bytes
On Wed, 45 Dec 1997, david@nis.net wrote:

> Hey Anyone out there interested in modifying the rc.c source
> file to restrict the number of simultaneous connections per
> allowable host...
> This would be a valuable addition to INND since my news feeds
> seem to want to connect 6 to 8 times at once feeding my server
> more files than it can process without slowing down the
> newsreading services...

    Why would you want to do this?  You're taking the wrong approach.
If your newsreading is being slowed down at all by multiple connections,
you need to tune your performance.  Our machine with 280 incoming
connections responds just as quickly as it does with 4, and is not slowed
down at all.

    The only thing that will help you apart from fixing the real problem
(your poor performance) would be to ask some of your peers to stop feeding
you.  Unless you have an excellent network, I can't see feeding a full
feed a single connection, especially when you're trying to push binaries
that take a lot longer to transfer than the 15 articles/sec average peak
rates we see here would permit.

    Even feeding a very nearby Cyclone peer which had limited us to 4
connections with two streams for small articles, and one each for large
articles up to some 50k and one for the larger ones, the large article
feeds could not keep up and as soon as we started to send a significant
amount of news over the smaller article streams, those would backlog
horribly.

    To those peers which have limited my number of incoming connections
(which I prefer to do by adjusting my own feeding paramaters rather than
discovering an imposed limit when I wonder why there are these huge
backlog files), I invariably find myself having to send a far larger
number of CHECKs at a time and the result I see is a far higher number of
rejected articles (and our wasted bandwidth).  I have to ask myself
whether feeding such a peer is even worth it.


Barry Bouwsma, newsmangler


Re: Modify INND to control number of connections/host
#25286
Author: haggisman
Date: Fri, 16 Jan 1998 00:00
42 lines
2554 bytes
Charlie Reboot <f00fc7c8@int.tele.dk> wrote:
>On Wed, 45 Dec 1997, david@nis.net wrote:

>> Hey Anyone out there interested in modifying the rc.c source
>> file to restrict the number of simultaneous connections per
>> allowable host...
>> This would be a valuable addition to INND since my news feeds
>> seem to want to connect 6 to 8 times at once feeding my server
>> more files than it can process without slowing down the
>> newsreading services...

>    Why would you want to do this?  You're taking the wrong approach.
>If your newsreading is being slowed down at all by multiple connections,
>you need to tune your performance.  Our machine with 280 incoming
>connections responds just as quickly as it does with 4, and is not slowed
>down at all.

I find the biggest problem not to be the actual number of connections, but
rather the *rate* at which new connections arrive. The faster they come,
the more work INND (or inetd) has to do. I'm looking at writing a small
rc.c hack to put a limit on the interval between successive connections
from the same IP address. This problem has surfaced since we had a very
large student residence wired directly into our backbone network in the
last few months, and you get users checking an individual newsgroup MANY
times per minute for new articles. Our INN CPU usage ballooned from less
than 10% to an average of 35-40% over the last year, with roughly the same
number of concurrent connections. I don't even want to start about how
brain-dead newsreaders like Nutscrape's exacerbate the situation. 

We've installed actived and found out it helps immensely in this area 
too. But even though it lets nnrpd do much less work per connection, it's 
can't control the rate of new connections

Scotty
-- 
Steve Howie			
Netnews and Listserv Admin
University of Guelph


Re: Modify INND to control number of connections/host
#25289
Author: Fabien Tassin
Date: Fri, 16 Jan 1998 00:00
18 lines
1340 bytes
In article <69ma3v$k6i@ccshst05.uoguelph.ca>,
	haggisman@moo.you writes:
> 
> I find the biggest problem not to be the actual number of connections, but
> rather the *rate* at which new connections arrive. The faster they come,
> the more work INND (or inetd) has to do. I'm looking at writing a small
> rc.c hack to put a limit on the interval between successive connections
> from the same IP address.

You can use the 'RemoterTimer'. Look at the X/L/T flags in the innd manual page.
If you want a global rate, use 'T' and if you prefer a per host limitation,
use 'L'.

-- 
Fabien Tassin -=- tassin@eerie.fr

Re: Modify INND to control number of connections/host
#25331
Author: haggisman
Date: Mon, 19 Jan 1998 00:00
27 lines
1695 bytes
Fabien Tassin <tassin@eerie.fr> wrote:
>In article <69ma3v$k6i@ccshst05.uoguelph.ca>,
>	haggisman@moo.you writes:
>> 
>> I find the biggest problem not to be the actual number of connections, but
>> rather the *rate* at which new connections arrive. The faster they come,
>> the more work INND (or inetd) has to do. I'm looking at writing a small
>> rc.c hack to put a limit on the interval between successive connections
>> from the same IP address.

>You can use the 'RemoterTimer'. Look at the X/L/T flags in the innd manual page.
>If you want a global rate, use 'T' and if you prefer a per host limitation,
>use 'L'.

Thanks Fabien - that's exactly what we're looking for. The reason I 
didn't see it before was that we're  still languishing with INN 1.4sec2 
(upgrading soon), and those flags aren't implemented in this release.

Scotty
-- 
Steve Howie			
Netnews and Listserv Admin
University of Guelph


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads