🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38732

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

#38732
From: Simon Lyall
Date: Fri, 16 Jul 1999 00:00
105 lines
5661 bytes
Brad Knowles <brad@shub-internet.org> wrote:
>In article <7mk5uk$eqk$1@hama.darkmere.gen.nz>, Simon Lyall writes:
>> Alternatively you could have a diablo server on your reader box handling
>> multiple incoming header feeds to weed out dups. It could get a bit ugly
>> running article, header and reader servers all on the same machine (for
>> smaller pops) but I can't see any obvious problem with it.
>    I presume that this would then turn around and send it's own
>header-only feed to a dreaderd process running on the same machine, but
>listening on a different address and/or port?

Yes. The key thing to remember is that the movement (and location) of the
actual articles themselves is completely independent of the header
information from the moment you split them in your incoming.

>    Assuming you replicated this across all reader servers, how would you
>then guarantee that they have the same "uniq-ified" view of the
>potentially duplicated articles across the servers, etc...?

Running a diablo on each reader box to handle the header feed is mainly to
weed out duplicate articles. This means that you can have multiple feeds
of the headers from the machine that generates them to the reader servers.
Obviously you are still going to get some problems if your article
generator falls over and then comes back up with information lost
in-between. I am not sure what will happen if/when it sends out Xref info
saying two different articles are number 13452 in news.software.nntp 

>> A possible idea would be to have a backup main server that normally runs
>> in Xref slave mode. When your normal one bursts into flames the backup
>> stops and restarts itself in Xref-creating mode. I'll have to check
>> exactly how I was going to do this though.

>    Yes!  I'd be *very* interested in hearing more about this!  I didn't
>know that Diablo was capable of being run in Xref slave mode....

Okay, top of my head model with just one incoming box shown (obviously
there are more) and two master servers. Header feeds are marked with an
"H" .


Normal Operation
================

The peers feed into the gateway server(s) which store the articles and
forward header feeds to the two masters. Master 1 takes there header
feed(s) and generates the Xref info which it passes on to master 2 (which
is in Xref slave mode) and the reader boxes (which get a backup feed from 
master2 in case information is lost on the way). While the gateway server
is trying to feed master 2 this feed is blocked (and a backlog queue is
kept). The reader boxes get actual articles off the gateway servers and
feed posted articles to the masters (although master 2 does not accept
these feeds)


                      --- H --> master 1  -- H --> reader             
                     /            |       -- H --> servers
peers  ---->  gateway             H                 ^
       ---->  server \       |    V                 |
                      - H -> |  master  --- H ------/
                             |    2


Master 1 dies
-------------

When master 1 dies then everything stops until this is detected, Articles
are queued on the gateway and the reader boxes. Then the server on master
2 is stopped, config files are changed and it comes back in Xref
generating mode (this should take about 10 seconds) . It now accepts feeds
from the gateway boxes and passes it on to the reader boxes. A feed for
master 1 is queued up so that when it comes back ( in Xref slave mode) it
will catchup and have the same configuration as master 2.




                      --- H --> master 2  -- H --> reader             
                     /            |       -- H --> servers
peers  ---->  gateway             H
       ---->  server \       |    V
                      - H -> | ------- 
                             |  master 1 
                                 dead



NOTE 1: When 'master' servers are started they are in slave mode be
default to ensure that there is only one host generating Xref's at any one
time. Some sort of mechanism (external program or whatever) is used to note
that there are no live Xref creators and kick one of the master's into
this mode.

NOTE 2: Xref is consistent across all servers. The live Xref generating
server always assumes the correct identity for the whole organisation.

NOTE 3: I have a nagging feeling that I have missed something.


-- 
Simon J. Lyall  |  Very Busy  |  Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.

Welcome to the world of strategic analysis, where we build weapons 
    that don't work to counter threats that don't exist.

Technical Details
Message-ID: <7mlv94$50l$1@hama.darkmere.gen.nz>
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> <378cf321$0$374@news.execpc.com> <7mk5uk$eqk$1@hama.darkmere.gen.nz> <brad-1507991201570001@brad.techos.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <7mlv94$50l$1@hama.darkmere.gen.nz>
Subject: Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
Date: Fri, 16 Jul 1999 00:00:00 +0000
From: Simon Lyall <simon@darkmere.gen.nz>
References: <brad-1407991832480001@brad.techos.skynet.be> <378cc595$0$374@news.execpc.com> <brad-1407991940530001@brad.techos.skynet.be> <378cf321$0$374@news.execpc.com> <7mk5uk$eqk$1@hama.darkmere.gen.nz> <brad-1507991201570001@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: 501537007
Organization: Darkmere Private Access Internet, Auckland, NZ.
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (Linux/2.0.34 (i586))
Newsgroups: news.software.nntp