🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83818

Re: 2 readers, xrefslave, and HOWTO

#83818
From: Jeffrey M. Vinocur
Date: Thu, 13 Jan 2011 10:00
47 lines
3266 bytes
In article <igkt81$1q6p$3@de-l.enfer-du-nord.net>,
Michael Grimm  <trashcan@odo.in-berlin.de> wrote:
>
>I was thinking about syncing article numbers between both readers only,
>because my feeders are run by a minimal active file aka control.ALL and
>junk only. Thus, syncing feeder(s) and reader(s) won't work anyway, if
>I'm not mistaken ...

Correct.


>My current plan is using both feeders to feed one master reader which in
>turn exclusively feeds the slave reader server. That should keep my
>article numbers in sync. But that master reader server will screw my
>round-robin scenario as long there's no automatic role switching (master
><--> slave) in place. At least I don't know of one. Thus, all ideas,
>suggestions are highly welcome.

Well, if either reader server fails, having clients silently be
directed to the other one will work fine; the part that doesn't
work is the feeder->slave reader feeds.  However, the feeders
will happily queue up articles in this scenario, so you could (at
least in principle) automate some infrastructure where the slave
reader server performs frequent checks of the master's existence,
and if necessary promotes itself to independent functioning.

The second half requires some doing, in that the slave reader
server would have to turn off xrefslave and then rearrange the
feeds (in such a way to also get the queued articles); perhaps
the easiest way to arrange this for what should be an unusual
occurrence would be to have the former-slave use pullnews or
similar.

This system would cope fine with brief disruptions (e.g. you need
to take the master reader server down for a few minutes to do
some maintenance) with nothing visible to the readers except a
delay in incoming articles during that time.  However, if the
failure is dramatic enough to require promotion of the slave
server, it will require manual intervention to recover from (and
could be quite problematic for clients if the former-master
recovers on its own as then the two servers will have different
sets of articles and article numbers).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <igmifr$m58$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!news.litech.org!not-for-mail
References: <igd926$61j$1@de-l.enfer-du-nord.net> <igepil$ims$1@selene.doeblitz.net> <igkt81$1q6p$3@de-l.enfer-du-nord.net>

Show Full Headers
Complete Article Headers
Message-ID: <igmifr$m58$1@puck.litech.org>
Subject: Re: 2 readers, xrefslave, and HOWTO
Date: Thu, 13 Jan 2011 10:00:27 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <igd926$61j$1@de-l.enfer-du-nord.net> <igepil$ims$1@selene.doeblitz.net> <igkt81$1q6p$3@de-l.enfer-du-nord.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 47
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1294912827 22696 204.16.242.142 (13 Jan 2011 10:00:27
 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Thu, 13 Jan 2011 10:00:27 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)
X-Original-Bytes: 3011