🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38672

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....

#38672
From: Brad Knowles
Date: Wed, 14 Jul 1999 00:00
110 lines
6241 bytes
In article <378cc595$0$374@news.execpc.com>, jgreco@ns.sol.net (Joe Greco)
wrote:

> The cost of the machine is not an issue.  A good PC server class system
> can be built for ~$2K-$3K, but it is the I/O subsystem, disks and RAID
> controller, that will co$t you to death.

    Yes, of course.  And a Mylex DAC960SXI controller with five channels,
256MB cache, battery-backup, etc... will cost about 3x that of the machine
it's connected to (yes, I've done the math ;-).  And 9GB 10kRPM disks from
either Seagate or IBM will cost around $600/each, at least from the best
prices I've seen.

    However, these controller costs and disk media costs are *greatly*
exaggerated in the DECompaq/Sun solution, so not only do you end up paying
more for the somewhat more reliable machine, you also end up paying a lot
more for the priviledge of buying your I/O subsystem from them.

> You are going in the right direction, you just don't have the right
> technology.  You want big spool servers.  Machines that have lots of
> disk and lots of speed but aren't being bogged down by dealing with
> the inane stuff clients like to spew at a NNRP daemon.

    I figured that part.

>                                                         You want
> smaller reader servers.  Machines with small amounts of disk that
> handle the NNRP transactions.  Machines that handle managing the
> overview data, active files, etc.

    I also grokked that.  I could easily re-use existing Pentium Pro 200
servers, so long as they've got decent OSes and disks underneath them to
do the job.

    If I use something like NNTPCache, I'll want to replace the disks with
small striped arrays of fast disks.  If I go with something like
Diablo/dreaderd, then local disk writes should be virtually non-existant
(except for keeping track of the history file, logging, etc...), and
single replacement reliable and high-speed drives should be sufficient.

> You want to replace NFS with NNxP.

    NFS was never really a player in the new model I've been trying to build.

> Look at Diablo.  Matt Dillon has done a fantastic job of solving your
> problem for you.  You set up reader boxes running dreaderd.  These
> accept a header-only feed from a master server, and create an overview
> database from the Xref: data and other headers.  This is very low-cost
> in terms of bandwidth, etc.  Each reader can handle hundreds of users,
> and talks to the spool servers via a dozen or so NNTP channels which
> are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
> fast for the spool server to do.

    Hrm.  So the news flows into the master server, which sends a
header-only feed to the reader servers, but then how do the articles get
written with the same article ids, etc... on the news spool servers? 
Wouldn't that also require a header-only feed, but then wouldn't you also
need to follow that up with a full article feed?

    I'm confused regarding how articles flow from the master server to the
news spool servers.  I think I understood the rest.

> You do not have to have one spool server that has all your articles.
> You can have a spool server for binaries (with big disks) and one for
> regular articles.  You can have redundant spool servers.

    My plan was actually to be redundant for !alt.binaries.*, and to split
alt.binaries.* across the servers (so that I don't waste all that disk
space across each and every news spool server).

>                                                           You can do
> lots of neat stuff from an architectural point of view.  Can you say
> "implement a geographically/topologically diverse spool architecture
> and put reader machines at every major POP"?

    That's kind of where I'm headed.  I'm just not yet quite convinced
that I need to use Diablo to get there (although you're doing a pretty
good job of convincing me ;-).

> I'm currently shooting to build such a system that will scale into the
> millions-of-subscribers range.  I've solved a number of scalability
> issues, implemented some fairly comprehensive audit trail facilities in
> Diablo, and done a whole bunch of other neat and cool stuff.  It works.

    MOOF!!!

> Yes, you still have a SPOF... the master server.  I know that I don't
> care about this.  It is a small SPOF that can be handled by keeping a
> hot spare machine around, and it need not be a huge system since it
> only really needs to keep a days worth of news or so.  When it fails,
> you pull the dactive from a reader and away you go.  Maybe you lose
> some articles in the process if you're sloppy.

    I was thinking pretty much the same thing.  Some SPOFs aren't
avoidable (there has to be either just one machine or some sort of locking
mechanism used across multiple machines in order to guarantee unique
sequential article numbers), but at least you can work to avoid the rest
and make the machine that is the SPOF as reliable and easy to quickly
replace as possible.

> Now everybody knows why I decided to dump my INN development efforts...
> :-)

    I've been wondering what the heck you've been up to....  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Technical Details
Message-ID: <brad-1407991940530001@brad.techos.skynet.be>
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: <brad-1407991832480001@brad.techos.skynet.be> <378cc595$0$374@news.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <brad-1407991940530001@brad.techos.skynet.be>
Subject: Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
Date: Wed, 14 Jul 1999 00:00:00 +0000
From: brad@shub-internet.org (Brad Knowles)
References: <brad-1407991832480001@brad.techos.skynet.be> <378cc595$0$374@news.execpc.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: 501003648
X-Complaints-To: abuse@skynet.be
X-Trace: news0.skynet.be 931974059 23197 195.238.1.121 (14 Jul 1999 17:40:59 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
NNTP-Posting-Date: 14 Jul 1999 17:40:59 GMT
Newsgroups: news.software.nntp