🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Mike Neagle Fri, 20 Feb 1998 00:00
INN 1.7.2 & long NNRP startup delays
#26425
Author: Mike Neagle
Date: Fri, 20 Feb 1998 00:00
7 lines
839 bytes
When I connect to my newserver running INN 1.7.2 for client viewing, it
takes 10-20 seconds before printing out the opening status message. 
Once connected, it runs quick and beautifully.  What could be causing
INN to take so long to start nnrp?

Re: INN 1.7.2 & long NNRP startup delays
#26490
Author: Chris Dent
Date: Tue, 24 Feb 1998 00:00
35 lines
1985 bytes
In article <34EDA43B.41C67EA6@ka.net>, Mike Neagle  <mneag@ka.net> wrote:
>When I connect to my newserver running INN 1.7.2 for client viewing, it
>takes 10-20 seconds before printing out the opening status message. 
>Once connected, it runs quick and beautifully.  What could be causing
>INN to take so long to start nnrp?

From what I've been able to tell this is usually caused because innd 
is too busy dealing with incoming feeds to get around to spawning off
the nnrpd process.

Or put another way innd is too busy going round it's select loop to
complete the accept and fork required to start up the nnrpd process.

There are a few different ways around this: 

 have a reader machine and a feeder machine
 run innd on another port and have your feeds feed to that port and
  run nnrpd out inetd.
 get innd to bind to port 119 on only one interface, give that IP to
  your feeders. use a tool that listens for connections on the other
  interfaces and spawns nnrpds

Joe Greco mentions that last method on his patches page and has some
tools do it. That's at: http://www.nntp.sol.net/patches/index.html

I've been working on a similar thing called connd which you can get
from http://www.kiva.net/~cdent Feel free to give it a try if you
want, but it hasn't been extensively tested. I've been using it on
my server for a couple of weeks without issue.
-- 
Chris Dent........SysAdmin
...........Kiva Networking

Re: INN 1.7.2 & long NNRP startup delays
#26530
Author: Chris Dent
Date: Wed, 25 Feb 1998 00:00
18 lines
1041 bytes
In article <6cu2n3$pip$1@kold.kiva.net>,
Chris Dent <cdent@kold.kiva.net> wrote:
>I've been working on a similar thing called connd which you can get
>from http://www.kiva.net/~cdent Feel free to give it a try if you
>want, but it hasn't been extensively tested. I've been using it on
>my server for a couple of weeks without issue.

Sorry, bad URL, I meant to type: http://www.kiva.net/~cdent/inn/




-- 
Chris Dent........SysAdmin
...........Kiva Networking

Re: INN 1.7.2 & long NNRP startup delays
#26632
Author: Edward S. Marshall
Date: Wed, 04 Mar 1998 00:00
50 lines
3102 bytes
[Posted and mailed]

In article <6cu2n3$pip$1@kold.kiva.net>,
	cdent@kold.kiva.net (Chris Dent) writes:
>  run innd on another port and have your feeds feed to that port and
>   run nnrpd out inetd.

I have a question for anyone who has done this: how did you handle the
transition from one port to the other? Specifically, are there patches out
there that give INN the ability to bind more than one port?

Basically, I'm working on splitting our services out, but right now, the
easiest way would really be to fire up either two copies of innd (blecch)
or have one copy bind and monitor two ports.

>  get innd to bind to port 119 on only one interface, give that IP to
>   your feeders. use a tool that listens for connections on the other
>   interfaces and spawns nnrpds

The nice part about this is that it prepares you for an eventual split of
services into two physically separate machines, and you can do it without
any real disruption of service, since the IP address will simply route to
the new machine when you end up moving to a multi-machine architecture.

> I've been working on a similar thing called connd which you can get
> from http://www.kiva.net/~cdent Feel free to give it a try if you
> want, but it hasn't been extensively tested. I've been using it on
> my server for a couple of weeks without issue.

Just to throw one more into the mix...inetd is traditionally very bad for
this kind of thing, because of the fact that it can croak when it gets
pummelled with too many connections. Dan Bernstein's ucspi-tcp package,
which includes a little tool called tcpserver, works wonders in this case;
it'll handle concurrency (like inetd) without bugging out (unlike inetd ;-).
You can get it at:

	ftp://koobera.math.uic.edu/www/ucspi-tcp.html

(Those of you running QMail have probably come across this package already.)

-- 
.-----------------------------------------------------------------------------.
| Edward S. Marshall <emarshal@xnet.com> | Systems/Network Administrator,     |
| http://www.xnet.com/~emarshal/         | XNet Information Systems, Inc.     |
`-----------------------------------------------------------------------------'
[ Do you spam? Massmail? Crosspost heavily? Are you in violation of RFC 1855? ]
[        Then send email to spam@logic.net, and repent your evil ways.        ]

Re: INN 1.7.2 & long NNRP startup delays
#26636
Author: Dan Foster
Date: Wed, 04 Mar 1998 00:00
21 lines
1430 bytes
In article <6di7pn$qic$1@flood.xnet.com>,
Edward S. Marshall <emarshal@xnet.com> wrote:
>
>Just to throw one more into the mix...inetd is traditionally very bad for
>this kind of thing, because of the fact that it can croak when it gets
>pummelled with too many connections.

What do you mean by 'croak'? Usually if one gets too many connections, inetd
will refuse new connections - that can be adjusted by adding a parameter
specifying max number of connects in some time period in inetd.conf... like
45 connects/60 seconds for telnet, upping to 300/60 or something else depending
on local needs.

I personally like going the inetd route because that means even if INN dies,
people can still read/post news. It's saved my bacon on more than one
occasion ;-)

-Dan

Re: INN 1.7.2 & long NNRP startup delays
#26641
Author: Edward S. Marshall
Date: Wed, 04 Mar 1998 00:00
44 lines
2842 bytes
In article <6di9d3$1a2g$2@node17.frontiernet.net>,
	dsf@frontiernet.net (Dan Foster) writes:
> In article <6di7pn$qic$1@flood.xnet.com>,
> Edward S. Marshall <emarshal@xnet.com> wrote:
>>
>>Just to throw one more into the mix...inetd is traditionally very bad for
>>this kind of thing, because of the fact that it can croak when it gets
>>pummelled with too many connections.
> 
> What do you mean by 'croak'? Usually if one gets too many connections, inetd
> will refuse new connections - that can be adjusted by adding a parameter
> specifying max number of connects in some time period in inetd.conf... like
> 45 connects/60 seconds for telnet, upping to 300/60 or something else depending
> on local needs.

I'm referring to the usual implementation of inetd which will shut down a
service if it gets hit too much within a certain time frame, taking the whole
service offline for a few minutes. Dan's tcpserver doesn't suffer from this,
and instead of rejecting connections when the limit is reached, it defers them
until a slot is free, and then handles the request (with a configurable
backlog). Even under this system, you'll eventually hit a wall, but at least
you won't get connection refused errors; just a slight delay during connection
until a slot frees up for your request.

> I personally like going the inetd route because that means even if INN dies,
> people can still read/post news. It's saved my bacon on more than one
> occasion ;-)

Having a separated system is just fine; that's actually what I was advocating.
The problem I have with inetd is that it's DoS prevention code actually
produces a DoS of it's own. I'd rather have the service out there to be beaten
on than have someone be able to completely offline it with a few rapid
connections.

All IMHO, of course. YMMV. :-)

-- 
-------------------.   emarshal at xnet.com   .--------------------------------
Edward S. Marshall  `------------------------'   http://www.xnet.com/~emarshal/

      Spammers: Please email my blacklisting service at "spam@logic.net".

Re: INN 1.7.2 & long NNRP startup delays
#26990
Author: Mike O'Connor
Date: Wed, 18 Mar 1998 00:00
14 lines
1273 bytes
In article <34EDA43B.41C67EA6@ka.net>, Mike Neagle  <mneag@ka.net> wrote:
:When I connect to my newserver running INN 1.7.2 for client viewing, it
:takes 10-20 seconds before printing out the opening status message. 
:Once connected, it runs quick and beautifully.  What could be causing
:INN to take so long to start nnrp?

Are you running the insync 1.7.2 release and not running actived?  :)
 
--
 Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: mjo@dojo.mi.org
 InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481

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