🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38670

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

#38670
From: Joe Greco
Date: Wed, 14 Jul 1999 00:00
115 lines
6625 bytes
In news.software.nntp article <brad-1407991832480001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
:Folks,
:
:    I've been thinking about this problem quite a bit within the last few
:days.  The goal is to avoid Single Points of Failure (SPOFs), and what
:I've had rattling around in the back of my brain is something along the
:lines of RAIS (Redundant Arrays of Inexpensive Servers [0]).
:
:
:    It's easy to set up multiple news peering servers, and have each one
:handle 1/n of your news peers, and you can use "virtual" path elements
:that you tell your peers to look at (when considering feeding you back an
:article), but internally you instead pay attention to the host path
:element that gets the virtual path element appended on each server.
:
:    I think I understand this part, but of course would like to hear any
:thoughts that others might have.
:
:    You can set up a "master" news spool server and one or more "slave"
:news spool servers that get their article numbers, etc... from the master,
:and should the master die you can relatively quickly turn one of the
:slaves into a replacement master, etc....
:
:    Again, I think I understand this part.
:
:    However, now comes the problem of setting up multiple redundant news
:reader servers.  If you have them NFS mount the news spool, obviously they
:can only mount that from one server.  This creates a SPOF.
:
:    Based on previous bad experiences, I wouldn't bother looking at
:distributed file systems (which might implement multiple redundant copies
:of files) such as AFS, DFS, or Coda, although perhaps I'm wrong in this
:matter.
:
:    I'm leaning towards an NNTPCache-type solution, but I'm wondering how
:you would tell it to pull the same set of newsgroups from more than one
:server.  I'm also wondering how you would ensure that the article
:numbering, expiration, newsgroup file, etc... would stay in sync across
:multiple NNTPCache servers.  And how would you then extend this concept to
:allow for off-site "backup" news servers, perhaps run by a news
:outsourcing operation?
:
:    I think this part is where I could use the most help.  Any thoughts?
:
:[0]  In this case, "Inexpensive" is a relative term.  One news spool
:server built on top of high-end PC server hardware and running a
:relatively robust freely available OS (I would choose FreeBSD, but that's
:a personal preference) can be *quite* a bit less expensive (three to five
:times less expensive) than a well-configured DECompaq Alpha that has been
:configured throughout for internal redundancy and fault resiliance, and I
:have to assume that the same is true for Sun Solaris (the only other
:option I'd be likely to consider).
:
:In this case, I'd be willing to spend less money to buy multiple servers,
:and get my redundancy through having more machines than in having more
:expensive but more capable single machines.

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.

Using NFS is about the worst possible thing I can think of.  NFS is very
cruddy, unreliable, and noisy - causing system hangs in the event of
problems, etc.

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

You want to replace NFS with NNxP.

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.

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.  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"?

I'm heavily committed to this paradigm at this point.  It is conceptually
correct.  Your back end spool servers can be anything that is able to
answer "ARTICLE <mess@ageid>"...  INN, Typhoon, Diablo.  Your front
end reader servers are small and cheap to build.

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.
This article is being posted through one of my test servers.

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.

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

... JG

Technical Details
Message-ID: <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
References: <brad-1407991832480001@brad.techos.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <378cc595$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>
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: 500996255
Sender: jgreco@earth.execpc.com
X-Trace: nreader1.newsops.execpc.com 931972501 374 jgreco@169.207.16.1
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com