Article View: news.software.nntp
Article #20746Re: Master and slave NNTP servers (was: Re: DO NOT INSTALL 1.6 or 1.6b1! (was Re: innd 1.6 ?!?!?!))
From: Joe Greco
Date: Wed, 20 Aug 1997 00:00
Date: Wed, 20 Aug 1997 00:00
55 lines
3200 bytes
3200 bytes
In news.software.nntp article <5t224h$20a$1@news1.bu.edu>, cball@bu.edu (Charles Ball) wrote: :A multi-master, or automatically switchable master, server is definitely :appealing. I could imagine building on the actived server to implement a :high availability multi-server article syncronization mechanism. Of course, :this isn't particularly useful if out of order article arrival break :newsreaders. You do a clever thing. Think fourth dimensionally. It's hard :-) I'm not going to tackle the multiple-master situation just yet. That's a complication of the idea I'm about to describe, but I want the concept to be clear. actived is currently set to read the local host's active file once every 30 seconds. Let's assume, for a minute, that we are sending a single sorted batch to a slave. It will become clear that this could be made valid for multiple unsorted feeds as well. The master server is responsible for numbering the articles. Let it do that for now. We assume that at the beginning and end of every batch, we must necessarily have a "stable" situation, where there are no missing articles. Think about it, it will make sense. However, while the batch is being sent, we may have article numbering gaps, particularly due to crossposts, etc. (One could fix the crosspost problem w.r.t. sorted batches, but that solution does not solve the multiple feed problem.) The solution is easy! Merely read the active file at the end of each batch, where all articles are guaranteed to have been processed, and the numbers are guaranteed to be coherent. I do 5-minute batches here... I would expect that one might be able to do slightly longer time periods. This neatly, and elegantly, could be used as the heart of an absolute synchronization mechanism for a single-master, multi-slave setup, that does not require "ordered" transmission of the articles to the slaves. Doing the multi-master thing is somewhat more complex, and involves removing the article numbering responsibilities from the "master". Those machines merely become transit machines (could be Cyclone or Diablo for that matter), and you arrange a clever set of servers on the slaves that actually work out article numbering on an agreement basis - which then drives the active file. This is all a little too complex to go into, right now, though. Wish I could hack code full time sometimes. ... JG
Technical Details
Message-ID:
<5tflbo$b08$1@earth.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-mailReferences:
<5r21gd$24r$1@pluto.sm.dsi.unimi.it> <gergEDxxIJ.9y6@netcom.com> <5rg3k9$rrk$1@pad-thai.cam.ov.com> <5t224h$20a$1@news1.bu.edu>Show Full Headers
Complete Article Headers
Message-ID: <5tflbo$b08$1@earth.execpc.com> Subject: Re: Master and slave NNTP servers (was: Re: DO NOT INSTALL 1.6 or 1.6b1! (was Re: innd 1.6 ?!?!?!)) Date: Wed, 20 Aug 1997 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <5r21gd$24r$1@pluto.sm.dsi.unimi.it> <gergEDxxIJ.9y6@netcom.com> <5rg3k9$rrk$1@pad-thai.cam.ov.com> <5t224h$20a$1@news1.bu.edu> 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: 265545824 Sender: jgreco@earth.execpc.com Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp