🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68801

Re: New NNTP standard in Working Group Last Call

#68801
From: Curt Welch
Date: Fri, 26 Mar 2004 01:47
112 lines
7641 bytes
"Dr.Ruud" <(rvtol+news(AT)hacktic.nl) Administrator@[127.0.0.1]> wrote:
> Toen ik Curt Welch kietelde, kwam er dit uit:
> > Francois Petillon:
>
> >> If there is no single point of failure, then I just do not care... :-)
>
> > That is the root issue of my comment earlier in this thread about how
> > the article numbering which the NNTP protcol requires is a problem.
> > The fact that you must number the articles sequentially as they show up
> > creates a single point of failure.  It's impossible to build a
> > completely redundant usenet server with no single point of failure
> > because of the article numbering requirement of the protocol.
> >
> > You have to either make the single point of falure as reliable as
> > possible to minimize down time, or you make it redundant, and accept
> > the fact that articles may be lost or duplicated when there's a
> > failure.
>
> (With possibly some lenience) you can have both.
>
> The system that does the numbering, should be redundant in a
> master/slaves way: if the master disappears, one of the slaves becomes
>   the new master
> (in a predictable order).

Yes, you can create a redundant system like that to attempt to improve
reliability, but you still can't make it work all the time.  You have
to accept the fact that articles may be lost or duplicated when there's a
failure.  You can't have error-free operation and redundancy.

> Each time a number (or a set or range of numbers) is requested from the
> numbering system, the master sends the reply to the requestor and to all
> the slaves. These slaves can be daemons on all machines involved.
>
> If you allow for a range of numbers to be requested, the number of
> requests
> is of course much lower, but articles are no longer numbered absolutely
> sequential, unless there is another layer added that translates the
> (still unique) local numbering to public numbering.

With distributed systems you have a well known problem of partitioning for
which there is no solution.  If you try to create a master/slave system,
there must be a provision for converting a slave into the master if the
master fails.  But, this conversion can only work without errors if all
servers in the system know who is the current master at the exact same
time, but that can't be done.  You have to replace your previous single
point of failure (article numbering) with a new one - a master arbitrator.
So by creating the master-slave system you have not created an error-free
reduant system.

The problem goes back to the issue of communication.  There must be
communication between the various distirbuted components, but
communication, as well as the servers/processes, can fail.  A server can
not tell the difference between failed communication, and a failed
processes.  If the master and slave loose touch with each other, they will
both think the other has failed, so the slave will think it needs to start
acting as the master, and the master will continue to be a master thinking
the slave has died.

If the communication failure that caused the master and slave to be
partitioned into two independent systems allowed some of the clients to be
partitioned with the slave, and left others partitioned with the master,
then you have two independent systems running with two independent masters,
totally corrupting article numbers left and right.

This partitioning problem has no solution.  It's well known in distributed
system design.  What you can do however is use a good design to greatly
improve your MTBF and to minimze the impact of the errors when they do
happen.  If you can push the MTBF to a few thousand years for a Usenet
server, you have more than solved all the practical problems even if the
ultimate 0 down-time distributed system hasn't been created.

In my current server, the numbering server acts as a master, and all my
front-end servers act as slaves.  However, there is no attempt to
auto-promote a slave to a master.  I can however manually convert any
front-end server into the master in a few minutes with a simple
configuration change.  However, it's quite possible that the old (now dead)
master had received some articles which it was not able to tell the
front-end server about.  Those articles will be lost.  But since the
probability of the master failling is small, the system is "good enough".

I'm quite sure it's impossible to create a distributed Usenet server that
won't at times mis-number articles and/or get out of sync and/or loose
articles.  You can shape the probability of the various types of errors
with the right designs, but you can't eliminate them all.

On the other hand, a news server that used a different protocol than NNTP
which didn't require article numbering would be easy to make redundant and
distributed.  The only error you would be left with is the same one Usenet
is already forced to live with - the possibility of two different articles
having the same Message-ID.  However, without something to replace article
numbers, the job of a news client to identify new articles becomes
unresonably expensive (it would require the client to request a dump of the
message-id of every article in the group on the server every time it
connected).

I've not spent a lot of time thinking about what a new version of an
NNTP-like protocol might make the job of of the client still resonobable
and also work better than article numbers for a redundant distributed
server.  Some use of timestamps might be a resonable middle ground between
the two extremes of strict article numbers and no sequencing at all.

When I tried to post the above message, I found my server was dead.  It
seems a raid controller wasn't working as well as it should have.  It's
funny how you can stop to write a message which touches on the subject of
server reliability and your server manages to die while you are writing it.
At least it wasn't my master server which numbers articles which died. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20040325204703.793$2V@newsreader.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!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <871xo3w5c6.fsf@windlord.stanford.edu> <xn0dfommipc6fs004@news.clara.net> <87u10t4qie.fsf@windlord.stanford.edu> <xn0dfq4tk2v2hm000@news.clara.net> <pan.2004.03.17.10.27.18.676702@proxad.net> <20040320013951.871$LX@newsreader.com> <pan.2004.03.22.11.54.11.362592@proxad.net> <20040322174557.634$2g@newsreader.com> <pan.2004.03.25.15.07.50.497679@proxad.net> <20040325112145.464$T5@newsreader.com> <c3vbim.1lg.1@news.isolution.nl>

Show Full Headers
Complete Article Headers
Message-ID: <20040325204703.793$2V@newsreader.com>
Subject: Re: New NNTP standard in Working Group Last Call
Date: Fri, 26 Mar 2004 01:47:03 +0000
From: curt@kcwc.com (Curt Welch)
References: <871xo3w5c6.fsf@windlord.stanford.edu> <xn0dfommipc6fs004@news.clara.net> <87u10t4qie.fsf@windlord.stanford.edu> <xn0dfq4tk2v2hm000@news.clara.net> <pan.2004.03.17.10.27.18.676702@proxad.net> <20040320013951.871$LX@newsreader.com> <pan.2004.03.22.11.54.11.362592@proxad.net> <20040322174557.634$2g@newsreader.com> <pan.2004.03.25.15.07.50.497679@proxad.net> <20040325112145.464$T5@newsreader.com> <c3vbim.1lg.1@news.isolution.nl>
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!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com Vf_1SCPG6H_gl8VajMvPMwwpoBXcvcrW6ZXZ8KlCINGSVL
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 111