🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38656

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

#38656
From: Joe Greco
Date: Wed, 14 Jul 1999 00:00
165 lines
9292 bytes
In news.software.nntp article <brad-1407991940530001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
: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.

That's because you costed it with all that RAM.  A DAC960SXI with 5
channels, 16MB RAM, etc., will cost about 20% more than the machine it
is attached to...  assuming the type of machines I've been spec'ing in
recent months.  (ASUS P2B-DS ~= $425, case ~= $250, 2 x PII-xxx ~= $400,
1GB RAM ~= $1100 ...  DAC960SXI ~= $2600)  I've been recycling 64MB SIMM
modules and putting 128MB in my DAC's, and since I don't have a reasonably
priced source for 128MB SIMM's, I'm happy with that.

:    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.

Rich folks, fools, and idiots buy storage systems from hardware vendors.

:> 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.

I'm not confident of that, I'm still speccing my reader machines to be
quad drive machines.  The cost is still below the price dictated by the
design.

:> You want to replace NFS with NNxP.
:
:    NFS was never really a player in the new model I've been trying to build.

Yes, but you said the evil letters anyways.

:> 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?

No.  You missed the point.  The readers and the master are the only places
where there is knowledge of so-called "article numbering".  The readers
then have access to the Message-ID:, as part of the overview, and the
spool servers don't need to be able to handle things like GROUP commands
and the heavy duty indexes that are associated with them.  Doing an
"ARTICLE <mess@geid>" type command is very lightweight:  maybe a history
access (if it isn't in RAM already) and then an article retrieval.

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

Uh, actually, im my implementation - they _don't_.  Articles flow from the
news spool servers (where article numbering is irrelevant and useless) in
_to_ the master server.  This is simply to assure that an article is there
on at least one spool server before the master assigns it a number and
passes that on to the reader machines.  The spool servers are directly
peered with my transit servers, keep no active file, and have only one
outgoing feed - to the master.  They just suck in the data sent by the
transit servers, store it, and feed it to the master.  The master assigns
article numbers, passes that on to the readers via a header-only feed.
Each reader builds its independent overview and active file databases, and
when a user goes into "alt.sex" and asks for "ARTICLE 1", the reader gets
the overview data for alt.sex:1, parses out the Message-ID:, and then
goes around asking each spool server for that Message-ID.

:> 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 lose then in the event that a server is down (etc).  Diablo handles
it fairly well, though, so if that is acceptable to you, so be it.

:>                                                           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 ;-).

Write to me in e-mail if you need more convincing.

:> 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!!!

Uh, what was that...  I hope you're not laughing at me.  :-)

:> 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.

This is both a strength and a weakness of Diablo.  The structure of the
system allows a single Message-ID to be assigned several times into a
group, since the reader does not maintain its own history.  This does
allow you to feed the same article with the same Xref: data in several
times, without problems, but in the event where you were to lose the
history on your master, you could end up with duplicate stuff in your
overview.

I do not think that is a bad thing.  :-)

:> Now everybody knows why I decided to dump my INN development efforts...
:> :-)
:
:    I've been wondering what the heck you've been up to....  ;-)

Lots of trouble.

... JG

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

Show Full Headers
Complete Article Headers
Message-ID: <378cf321$0$374@news.execpc.com>
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: jgreco@ns.sol.net (Joe Greco)
References: <brad-1407991832480001@brad.techos.skynet.be> <378cc595$0$374@news.execpc.com> <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
X-Deja-AN: 501062539
Sender: jgreco@earth.execpc.com
X-Trace: nreader1.newsops.execpc.com 931984161 374 jgreco@169.207.16.1
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com