🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6890

Re: newsfeed wanted.

#6890
From: Mark Delany
Date: Thu, 25 Apr 1996 00:00
52 lines
2982 bytes
chuckie@panix.com (Alec H. Peterson) writes:

>The news server needs to do other things besides receive articles.  On
>many sites, it also needs to accept reader connections.  And the
>biggest thing it needs to do is send out articles, which it cannot do
>until the stream is done.  If single IHAVEs are done instead, other
>people can connect, and articles are still sent to the feeder
>processes.

>This is the biggest reason that I shut off streaming at Panix, because
>people were complaining about huge lag in initiating reader
>connections.

>What I'd like to see is a hack to innd that would take in a streamed
>IHAVE command, do all of the relavent checks on the history database,
>and return the message IDs it wants all without select()ing onto
>another descriptor.  After that is done, the stream should be put onto
>the select() cycle just like all of the other feeds are.  That way,
>you get the win of doing the history lookup, which takes relatively
>little time, and you also get the win of not having the stream
>monopolize the server while it is coming in.


Gosh. Sounds like a simpler idea might be to disentangle the reader
process from the feeder process. If, eg, you could run two innds, one
that only handled reader processing and one that handles everything
else, wouldn't that get rid of your reader lags?

Sure you'd have to move one of the innds to a different port number -
naturally that'd be your feeder innd (as innxmit and nntplink both
trivially support that and negotiating a new port with your feeds is
typically much easier than getting all your readers to change).  You
also might want to slim down the reader innd to have just enough code
to fork an nnrpd.

Even so, those changes strike me as a lot simpler than putting in
complicated resource multiplexing code to try and make the one process
all things to all news sysadmins.

Of course once you have disentangled the reader innd, the
possibilities are open to further specialization for that particular
species: it might retain a bit of state across readers, it might learn
how to handle all readers in one process, it might even sprout threads
on certain systems...

(The news-cache proponents could have a quiet chuckle and call it
"hydra").


Regards.

Technical Details
Message-ID: <4lmibb$ce7@bushwire.mira.net.au>
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: <4l8jg8$pcd@bull.hkstar.net> <4lk4mg$sqg@olivea.atc.olivetti.com> <4lk7f1$9le@panix4.panix.com> <4llpk2$m0a@olivea.atc.olivetti.com> <4lmccn$6df@panix4.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <4lmibb$ce7@bushwire.mira.net.au>
Subject: Re: newsfeed wanted.
Date: Thu, 25 Apr 1996 00:00:00 +0000
From: Mark Delany <markd@mira.net.au>
References: <4l8jg8$pcd@bull.hkstar.net> <4lk4mg$sqg@olivea.atc.olivetti.com> <4lk7f1$9le@panix4.panix.com> <4llpk2$m0a@olivea.atc.olivetti.com> <4lmccn$6df@panix4.panix.com>
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: 151329240
Distribution: inet
Organization: Werple Internet, Melbourne
Newsgroups: news.software.nntp