🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Sean T. Lamont . Thu, 13 Feb 1997 00:00
An interesting solution to INND's reader-starving problem
#15029
Author: Sean T. Lamont .
Date: Thu, 13 Feb 1997 00:00
55 lines
2945 bytes
I just came up with a relatively interesting solution to the problem of
multiple (especially streaming) feeds starving out nnrp readers. 

The problem: We have multiple incoming streaming feeds to our system. It's
a decent system ; multiple-spindles, multiple controllers, 128M physical
memory, barracudas, etc. running inn1.4unoff4. But still we were having
the problem of slow startups ; aparrently INN's article-processing loop
is so tight that polling incoming NNRP connections can be a relatively 
low-priority thing. We were seeing startup times for customer NNRP's 
occasionally as bad as 90 seconds.

This is what I did: our news server is 199.201.191.2. I modified 
rc.c and inndstart.c to, instead of binding the server to INADDR_ANY to
bind to inet_addr("199.201.191.2"). This effectively runs the server only
on a single local interface.

I then added an ip alias (multiple IP#'s on a single ethernet interface)
of 199.201.191.7 on the local system.

I then built a second copy of inetd, bound again not to INADDR_ANY, but
rather to inet_addr("199.201.191.7") - the address of the secondary
IP alias. Inetd2 read its configuration from /etc/inetd2.conf, which looks
as follows:

nntp    stream  tcp     nowait  root    /usr/local/news/etc/in.nnrpd    \
in.nnrpd

Starting innd and inetd2, we have a single server running on the
primary ethernet address (not the secondary) on port 119 for handling
feeds, and a second server running on port 119 of the secondary
interface (not the primary) for handling customer nnrp's. This
effectively takes the responsi- bility for picking up the net-phone
from out of INND's tight control loop and into a separate copy of
inetd, which really isn't doing anything.  (This obviously could be
anything, really. you could run a stand-alone NNTP server with the
same modification)

Using the ip# for the secondary interface is now substantially faster
than starting up a connection to the main innd process, and it helps
delay the inevitable day when we'll need to set up a dual
reader/feeder system.






-- 
Sean T. Lamont, President / Chief NetNerd, Abstract Software, Inc. (ServNet)  
- Internet access * WWW hosting * TCP/IP * UNIX * NEXTSTEP * WWW Development -
email: lamont@abstractsoft.com              WWW:  http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson

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