🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68802

Re: New NNTP standard in Working Group Last Call

#68802
From: Dr.Ruud
Date: Fri, 26 Mar 2004 03:27
116 lines
6616 bytes
Toen ik Curt Welch kietelde, kwam er dit uit:


Thanks for your reply. I am not very familiar with all the
constraints of feeding and sucking, I am comparing this to
database-replication.

> You can't have error-free operation and redundancy.

OK.


> [conversion from slave to master] 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 redundant system.

But that time-point can be stretched if the systems have a range of
numbers to work from. This means that each machine goes solo for a
while, receiving articles. When there are no more article-numbers
in stock, or some period of time has passed, the article-numbering
is synchronized with the master (which can send some numbers back
to the machine's article-number-store, because the article was
already known). This synchronization is logged by all the slaves
(and processed when possible or necessary). Is that feasible?

Or don't you want for machines to run independent for such a period
of time, because they can of course fail in that time? Or don't
you want article-numbers stay unused for a while, meaning that
article #100 is already promoted to the front-end server, while
article #1 is allocated but still has no actual article.


> The problem goes back to the issue of communication.  There must be
> communication between the various distributed 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.

Can a 'heartbeat' minimize that problem? A process that still sends
heartbeats, should acknowledge a communication within a few heartbeats,
or be considered failing.


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

Before it becomes a master, the converting slave asks for approvals.
There is a timeframe of a few minutes, since all machines that
receive articles have a range of article-numbers to use up.

Only a system that gets some minimum number of votes (more than
half the original number of slaves) can become master. There can
never be more than one master. If, even after some retries, the
voting fails, human intervention is called for.


> 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 don't see the master as a server that is receiving articles. OK,
it knows (a lot) about all articles. It might even have a copy of
important headerlines (or hashes of their values) of all articles.
Or just of all Message-IDs (and -hashes). But that is another subject.
Is that the right way to model a master?


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

Ack.


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

Yes, though proper hashing of Message-IDs minimizes the search area.


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

Lucky us.

-- 
Affijn, Ruud   `  -  ?
               + ` ? *
                 ? `
               ?  =  `


Technical Details
Message-ID: <c40bp2.1i8.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!news1.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!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> <20040325204703.793$2V@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <c40bp2.1i8.1@news.isolution.nl>
Subject: Re: New NNTP standard in Working Group Last Call
Date: Fri, 26 Mar 2004 04:27:28 +0100
From: "Dr.Ruud" <'t.leven.is.fijn@life.i$.great>
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> <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!news1.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!not-for-mail
Reply-To: "Dr.Ruud" <(rvtol+news(AT)hacktic.nl) Administrator@[127.0.0.1]>
Newsgroups: news.software.nntp
Organization: Chaos rules.
X-Newsreader: WMDIYB
Approved: yesterday
X-Face: &CQ$FIr!=+=w,8`0Q^Ug"1>F[(/op8->E;NQet`5fe$;=e*!Z5&REvp<~Tj|"Y[|8OcJ{w#z&mB7B:I)XO*%_|\]|YW$C>>$Q[9-#K~c$tQ^Mf0,wMo?h\C)TE>f
Lines: 115
NNTP-Posting-Date: 26 Mar 2004 05:01:57 CET
NNTP-Posting-Host: 194.109.164.102
X-Trace: 1080273717 news.xs4all.nl 560 [::ffff:194.109.164.102]:34264
X-Complaints-To: abuse@xs4all.nl