🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
29 messages
29 total messages Started by Brad Knowles Wed, 14 Jul 1999 00:00
Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38650
Author: Brad Knowles
Date: Wed, 14 Jul 1999 00:00
66 lines
3728 bytes
Folks,

    I've been thinking about this problem quite a bit within the last few
days.  The goal is to avoid Single Points of Failure (SPOFs), and what
I've had rattling around in the back of my brain is something along the
lines of RAIS (Redundant Arrays of Inexpensive Servers [0]).


    It's easy to set up multiple news peering servers, and have each one
handle 1/n of your news peers, and you can use "virtual" path elements
that you tell your peers to look at (when considering feeding you back an
article), but internally you instead pay attention to the host path
element that gets the virtual path element appended on each server.

    I think I understand this part, but of course would like to hear any
thoughts that others might have.


    You can set up a "master" news spool server and one or more "slave"
news spool servers that get their article numbers, etc... from the master,
and should the master die you can relatively quickly turn one of the
slaves into a replacement master, etc....

    Again, I think I understand this part.


    However, now comes the problem of setting up multiple redundant news
reader servers.  If you have them NFS mount the news spool, obviously they
can only mount that from one server.  This creates a SPOF.

    Based on previous bad experiences, I wouldn't bother looking at
distributed file systems (which might implement multiple redundant copies
of files) such as AFS, DFS, or Coda, although perhaps I'm wrong in this
matter.

    I'm leaning towards an NNTPCache-type solution, but I'm wondering how
you would tell it to pull the same set of newsgroups from more than one
server.  I'm also wondering how you would ensure that the article
numbering, expiration, newsgroup file, etc... would stay in sync across
multiple NNTPCache servers.  And how would you then extend this concept to
allow for off-site "backup" news servers, perhaps run by a news
outsourcing operation?

    I think this part is where I could use the most help.  Any thoughts?




[0]  In this case, "Inexpensive" is a relative term.  One news spool
server built on top of high-end PC server hardware and running a
relatively robust freely available OS (I would choose FreeBSD, but that's
a personal preference) can be *quite* a bit less expensive (three to five
times less expensive) than a well-configured DECompaq Alpha that has been
configured throughout for internal redundancy and fault resiliance, and I
have to assume that the same is true for Sun Solaris (the only other
option I'd be likely to consider).

In this case, I'd be willing to spend less money to buy multiple servers,
and get my redundancy through having more machines than in having more
expensive but more capable single machines.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38656
Author: Joe Greco
Date: Wed, 14 Jul 1999 00:00
165 lines
9292 bytes
In news.software.nntp article <brad-1407991940530001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
:In article <378cc595$0$374@news.execpc.com>, jgreco@ns.sol.net (Joe Greco)
:wrote:
:> The cost of the machine is not an issue.  A good PC server class system
:> can be built for ~$2K-$3K, but it is the I/O subsystem, disks and RAID
:> controller, that will co$t you to death.
:
:    Yes, of course.  And a Mylex DAC960SXI controller with five channels,
:256MB cache, battery-backup, etc... will cost about 3x that of the machine
:it's connected to (yes, I've done the math ;-).  And 9GB 10kRPM disks from
:either Seagate or IBM will cost around $600/each, at least from the best
:prices I've seen.

That's because you costed it with all that RAM.  A DAC960SXI with 5
channels, 16MB RAM, etc., will cost about 20% more than the machine it
is attached to...  assuming the type of machines I've been spec'ing in
recent months.  (ASUS P2B-DS ~= $425, case ~= $250, 2 x PII-xxx ~= $400,
1GB RAM ~= $1100 ...  DAC960SXI ~= $2600)  I've been recycling 64MB SIMM
modules and putting 128MB in my DAC's, and since I don't have a reasonably
priced source for 128MB SIMM's, I'm happy with that.

:    However, these controller costs and disk media costs are *greatly*
:exaggerated in the DECompaq/Sun solution, so not only do you end up paying
:more for the somewhat more reliable machine, you also end up paying a lot
:more for the priviledge of buying your I/O subsystem from them.

Rich folks, fools, and idiots buy storage systems from hardware vendors.

:> You are going in the right direction, you just don't have the right
:> technology.  You want big spool servers.  Machines that have lots of
:> disk and lots of speed but aren't being bogged down by dealing with
:> the inane stuff clients like to spew at a NNRP daemon.
:
:    I figured that part.
:
:>                                                         You want
:> smaller reader servers.  Machines with small amounts of disk that
:> handle the NNRP transactions.  Machines that handle managing the
:> overview data, active files, etc.
:
:    I also grokked that.  I could easily re-use existing Pentium Pro 200
:servers, so long as they've got decent OSes and disks underneath them to
:do the job.
:
:    If I use something like NNTPCache, I'll want to replace the disks with
:small striped arrays of fast disks.  If I go with something like
:Diablo/dreaderd, then local disk writes should be virtually non-existant
:(except for keeping track of the history file, logging, etc...), and
:single replacement reliable and high-speed drives should be sufficient.

I'm not confident of that, I'm still speccing my reader machines to be
quad drive machines.  The cost is still below the price dictated by the
design.

:> You want to replace NFS with NNxP.
:
:    NFS was never really a player in the new model I've been trying to build.

Yes, but you said the evil letters anyways.

:> Look at Diablo.  Matt Dillon has done a fantastic job of solving your
:> problem for you.  You set up reader boxes running dreaderd.  These
:> accept a header-only feed from a master server, and create an overview
:> database from the Xref: data and other headers.  This is very low-cost
:> in terms of bandwidth, etc.  Each reader can handle hundreds of users,
:> and talks to the spool servers via a dozen or so NNTP channels which
:> are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
:> fast for the spool server to do.
:
:    Hrm.  So the news flows into the master server, which sends a
:header-only feed to the reader servers, but then how do the articles get
:written with the same article ids, etc... on the news spool servers? 
:Wouldn't that also require a header-only feed, but then wouldn't you also
:need to follow that up with a full article feed?

No.  You missed the point.  The readers and the master are the only places
where there is knowledge of so-called "article numbering".  The readers
then have access to the Message-ID:, as part of the overview, and the
spool servers don't need to be able to handle things like GROUP commands
and the heavy duty indexes that are associated with them.  Doing an
"ARTICLE <mess@geid>" type command is very lightweight:  maybe a history
access (if it isn't in RAM already) and then an article retrieval.

:    I'm confused regarding how articles flow from the master server to the
:news spool servers.  I think I understood the rest.

Uh, actually, im my implementation - they _don't_.  Articles flow from the
news spool servers (where article numbering is irrelevant and useless) in
_to_ the master server.  This is simply to assure that an article is there
on at least one spool server before the master assigns it a number and
passes that on to the reader machines.  The spool servers are directly
peered with my transit servers, keep no active file, and have only one
outgoing feed - to the master.  They just suck in the data sent by the
transit servers, store it, and feed it to the master.  The master assigns
article numbers, passes that on to the readers via a header-only feed.
Each reader builds its independent overview and active file databases, and
when a user goes into "alt.sex" and asks for "ARTICLE 1", the reader gets
the overview data for alt.sex:1, parses out the Message-ID:, and then
goes around asking each spool server for that Message-ID.

:> You do not have to have one spool server that has all your articles.
:> You can have a spool server for binaries (with big disks) and one for
:> regular articles.  You can have redundant spool servers.
:
:    My plan was actually to be redundant for !alt.binaries.*, and to split
:alt.binaries.* across the servers (so that I don't waste all that disk
:space across each and every news spool server).

You lose then in the event that a server is down (etc).  Diablo handles
it fairly well, though, so if that is acceptable to you, so be it.

:>                                                           You can do
:> lots of neat stuff from an architectural point of view.  Can you say
:> "implement a geographically/topologically diverse spool architecture
:> and put reader machines at every major POP"?
:
:    That's kind of where I'm headed.  I'm just not yet quite convinced
:that I need to use Diablo to get there (although you're doing a pretty
:good job of convincing me ;-).

Write to me in e-mail if you need more convincing.

:> I'm currently shooting to build such a system that will scale into the
:> millions-of-subscribers range.  I've solved a number of scalability
:> issues, implemented some fairly comprehensive audit trail facilities in
:> Diablo, and done a whole bunch of other neat and cool stuff.  It works.
:
:    MOOF!!!

Uh, what was that...  I hope you're not laughing at me.  :-)

:> Yes, you still have a SPOF... the master server.  I know that I don't
:> care about this.  It is a small SPOF that can be handled by keeping a
:> hot spare machine around, and it need not be a huge system since it
:> only really needs to keep a days worth of news or so.  When it fails,
:> you pull the dactive from a reader and away you go.  Maybe you lose
:> some articles in the process if you're sloppy.
:
:    I was thinking pretty much the same thing.  Some SPOFs aren't
:avoidable (there has to be either just one machine or some sort of locking
:mechanism used across multiple machines in order to guarantee unique
:sequential article numbers), but at least you can work to avoid the rest
:and make the machine that is the SPOF as reliable and easy to quickly
:replace as possible.

This is both a strength and a weakness of Diablo.  The structure of the
system allows a single Message-ID to be assigned several times into a
group, since the reader does not maintain its own history.  This does
allow you to feed the same article with the same Xref: data in several
times, without problems, but in the event where you were to lose the
history on your master, you could end up with duplicate stuff in your
overview.

I do not think that is a bad thing.  :-)

:> Now everybody knows why I decided to dump my INN development efforts...
:> :-)
:
:    I've been wondering what the heck you've been up to....  ;-)

Lots of trouble.

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38657
Author: Joe Greco
Date: Wed, 14 Jul 1999 00:00
93 lines
5741 bytes
In news.software.nntp article <7mj19t$l8c$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
:In article <378cc595$0$374@news.execpc.com>,
:Joe Greco <jgreco@ns.sol.net> wrote:
:
:| The cost of the machine is not an issue.  A good PC server class system
:| can be built for ~$2K-$3K, but it is the I/O subsystem, disks and RAID
:| controller, that will co$t you to death.
:
:That somewhat depends on what you want to do with the machine. If you
:use software RAID in the o/s you can keep the cost low, and for the
:redundant reader machines you only need raid-0 for performance. The i/o
:is always the most expensive part of a large system, even back in the
:days of memory at $4Million/MB mainframes (1960's).

If you use software RAID in the OS, you impact performance.  You do
not need RAID for the inexpensive readers, but you do for the central 
spool machines - at least if you are planning to hold on to stuff for
any period of time.

:| Using NFS is about the worst possible thing I can think of.  NFS is very
:| cruddy, unreliable, and noisy - causing system hangs in the event of
:| problems, etc.
:
:I ran a bunch of NFS slaves in 1.4 and 1.5, and they had none of those
:problems, they were just slow and used a lot of bandwidth. Had no hangs
:or bad data, just poor performance. We agree that's this is not the way
:to go, for whatever reasons.

Your NFS implementation doesn't hang the client and render it unusable
if the NFS server goes away?  What OS is _that_?

:| You are going in the right direction, you just don't have the right
:| technology.  You want big spool servers.  Machines that have lots of
:| disk and lots of speed but aren't being bogged down by dealing with
:| the inane stuff clients like to spew at a NNRP daemon.  You want
:| smaller reader servers.  Machines with small amounts of disk that
:| handle the NNRP transactions.  Machines that handle managing the
:| overview data, active files, etc.
:| 
:| You want to replace NFS with NNxP.
:| 
:| Look at Diablo.  Matt Dillon has done a fantastic job of solving your
:| problem for you.  You set up reader boxes running dreaderd.  These
:| accept a header-only feed from a master server, and create an overview
:| database from the Xref: data and other headers.  This is very low-cost
:| in terms of bandwidth, etc.  Each reader can handle hundreds of users,
:| and talks to the spool servers via a dozen or so NNTP channels which
:| are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
:| fast for the spool server to do.
:
:One of the problems with having an anything feed is that it complicates
:the job of getting a new reader machine online. That's one of the few
:good features of NFS, it allows a new rader box to go from unpack to in
:service in a few hours. Any form of a header feed requires that the
:master be able to generate such a feed as a catchup.

Oh, bull.  I brought my second reader machine online by doing a tar over
the network to populate /news/spool/group.  Relying on NFS makes you
intimately dependent on that one NFS server, and god help you should
anything bad happen to it.  I can lose a spool server, the readers will
pause for about ten seconds before deciding it is dead and removing it
from the pool of active spool servers.  You lose your NFS server, and 
your reader machines _hang_ until it comes back.  That's the whole point.
NFS ties you to one spool, one server, one set of disks.  This solution
distributes the overview disk load between all the completely independent
reader machines, and does not tie you to one spool.

:| Yes, you still have a SPOF... the master server.  I know that I don't
:| care about this.  It is a small SPOF that can be handled by keeping a
:| hot spare machine around, and it need not be a huge system since it
:| only really needs to keep a days worth of news or so.  When it fails,
:| you pull the dactive from a reader and away you go.  Maybe you lose
:| some articles in the process if you're sloppy.
:
:I'm still not sure how you keep the article numbers in a newsgroup
:machine in sync on each reader. It's desirable to be able to move
:readers from one to another of these machines, so you sort of have to
:make them appear to be the same. Browsers are fragile, users are easily
:upset, I like to address the technical problem of not having them see
:changes rather than the political problem of dealing with unhappy
:users.

That's not a problem; the master keeps the reader article numbers in
sync.  That is its purpose in life.  That is its only reason for even
existing.

Works.  It is running here, in test mode.  Has been for about six
months, while I work on various Diablo improvements that I feel are
mandatory for a very large scale production environment.

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38661
Author: bill davidsen
Date: Wed, 14 Jul 1999 00:00
72 lines
4489 bytes
In article <378cc595$0$374@news.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:

| The cost of the machine is not an issue.  A good PC server class system
| can be built for ~$2K-$3K, but it is the I/O subsystem, disks and RAID
| controller, that will co$t you to death.

That somewhat depends on what you want to do with the machine. If you
use software RAID in the o/s you can keep the cost low, and for the
redundant reader machines you only need raid-0 for performance. The i/o
is always the most expensive part of a large system, even back in the
days of memory at $4Million/MB mainframes (1960's).

| Using NFS is about the worst possible thing I can think of.  NFS is very
| cruddy, unreliable, and noisy - causing system hangs in the event of
| problems, etc.

I ran a bunch of NFS slaves in 1.4 and 1.5, and they had none of those
problems, they were just slow and used a lot of bandwidth. Had no hangs
or bad data, just poor performance. We agree that's this is not the way
to go, for whatever reasons.

| You are going in the right direction, you just don't have the right
| technology.  You want big spool servers.  Machines that have lots of
| disk and lots of speed but aren't being bogged down by dealing with
| the inane stuff clients like to spew at a NNRP daemon.  You want
| smaller reader servers.  Machines with small amounts of disk that
| handle the NNRP transactions.  Machines that handle managing the
| overview data, active files, etc.
| 
| You want to replace NFS with NNxP.
| 
| Look at Diablo.  Matt Dillon has done a fantastic job of solving your
| problem for you.  You set up reader boxes running dreaderd.  These
| accept a header-only feed from a master server, and create an overview
| database from the Xref: data and other headers.  This is very low-cost
| in terms of bandwidth, etc.  Each reader can handle hundreds of users,
| and talks to the spool servers via a dozen or so NNTP channels which
| are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
| fast for the spool server to do.

One of the problems with having an anything feed is that it complicates
the job of getting a new reader machine online. That's one of the few
good features of NFS, it allows a new rader box to go from unpack to in
service in a few hours. Any form of a header feed requires that the
master be able to generate such a feed as a catchup.

| Yes, you still have a SPOF... the master server.  I know that I don't
| care about this.  It is a small SPOF that can be handled by keeping a
| hot spare machine around, and it need not be a huge system since it
| only really needs to keep a days worth of news or so.  When it fails,
| you pull the dactive from a reader and away you go.  Maybe you lose
| some articles in the process if you're sloppy.

I'm still not sure how you keep the article numbers in a newsgroup
machine in sync on each reader. It's desirable to be able to move
readers from one to another of these machines, so you sort of have to
make them appear to be the same. Browsers are fragile, users are easily
upset, I like to address the technical problem of not having them see
changes rather than the political problem of dealing with unhappy
users.

The ideal user population is a steady state load used to help me
evaluate my clever technical solutions, not an evaluation committee.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38667
Author: Curt Welch
Date: Wed, 14 Jul 1999 00:00
149 lines
8314 bytes
jgreco@ns.sol.net (Joe Greco) wrote:
> In news.software.nntp article
> <brad-1407991832480001@brad.techos.skynet.be>, brad@shub-internet.org
> (Brad Knowles) wrote:

> :    I've been thinking about this problem quite a bit within the last
> :few days.  The goal is to avoid Single Points of Failure (SPOFs), and
> :what I've had rattling around in the back of my brain is something along
> :the lines of RAIS (Redundant Arrays of Inexpensive Servers [0]).

I've been thinking about that type of design for years.  It's always
sounded very appealing to me.  Creating a network of cheap servers
is easy to do where as trying to create one large server with the same
power is far more expensive.

It's why I started writing my own news server back in December.  I wanted
to create an archetecture which would allow the server do be distributed
over a redundant array of cheap servers.

> You are going in the right direction, you just don't have the right
> technology.  You want big spool servers.  Machines that have lots of
> disk and lots of speed but aren't being bogged down by dealing with
> the inane stuff clients like to spew at a NNRP daemon.  You want
> smaller reader servers.  Machines with small amounts of disk that
> handle the NNRP transactions.  Machines that handle managing the
> overview data, active files, etc.
>
> You want to replace NFS with NNxP.

This is just what I've done with my new server.  I just put
it into production on NewsReader.Com two days ago replacing my old
inn server.

> Look at Diablo.  Matt Dillon has done a fantastic job of solving your
> problem for you.  You set up reader boxes running dreaderd.  These
> accept a header-only feed from a master server, and create an overview
> database from the Xref: data and other headers.  This is very low-cost
> in terms of bandwidth, etc.  Each reader can handle hundreds of users,
> and talks to the spool servers via a dozen or so NNTP channels which
> are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
> fast for the spool server to do.

I haven't really looked at what Matt's done so please excuse me for being
stupid about this...

So each reader box maintains it's own overview database which includes the
indexes required to map group/article# into message-ID?  How do they know
when an article has expired from a spool server?

Is there some regular overview expire process which scans everything on a
regular basis?  Or do the readers just expire their data based on their own
logic (which might or might not match the back-end servers), or what?

What I did was to have each spool server number the articles sequentially.
And then, instead of requesting articles by message-id, you get them by
their number.  The storage scheem the servers use are set up to make this
simple and fast for them to do.

The numbers are designed to wrap at a fixed point so there's no problems
with the numbers getting to large.  It only limits how many articles one
server can store.

And, articles always expire from the spool servers in order.  So this
means, that at any time, each spool has a range of current "valid" article
numbers. The front-end server (which currently is also the master server)
always knows what the current valid range is for all the spool servers -
and it uses that to quickly know if any article is still valid, or if it
has expired.

There's a group/article# to spool/spool-article# database maintained by
the master server (though this could be dupped in all the front-end servers
like Diablo).  So, to check to see if article #12345 in group x.y.z has
been exired, all the server has to do is look up the spool, and article
number on that spool, and then check that against it's table which is
constantly being updated.

This allows the front end overview information to stay perfectly in sync
with the back end spool servers.  This way, you never report "old" overview
info which could lead to extra "article no longer available" messages for
the users.

It also comes into play in the history file managment.  Knowing if an
article is still valid allows you to create a history file that starts
small, and only expand if needed. If it's expensive to figure out if an
article is still valid, then you have to use a fixed size history file and
force the admikn to make sure it's big enough (like Typhoon), or expire
later instead of in real time (like old Diablo at least).

> I'm heavily committed to this paradigm at this point.  It is conceptually
> correct.  Your back end spool servers can be anything that is able to
> answer "ARTICLE <mess@ageid>"...  INN, Typhoon, Diablo.  Your front
> end reader servers are small and cheap to build.

I've even been looking a bit at low-end consumer PCs to use as the spool
servers.  They are so cheap these days that you can get an entire PC with
large IDE drives for less money than a bare SCSI drive of the same size.
I'm not sure how well they would actually perform, but it's an interesting
idea made possible by this type of architecture.  And since ethernet is hot
swapable, it's easy to replace these things on the fly (assuming your
software is set up to deal with that).

> I'm currently shooting to build such a system that will scale into the
> millions-of-subscribers range.

Yeah, I too am heading towards that.

> I've solved a number of scalability
> issues,

I have the structure in place to do a lot of this, but currently
the master server is doing all the reading as well, so it doesn't
yet scale well - still needs more code....

> Yes, you still have a SPOF... the master server.

And most likely you will have some networking hardware which is also
a SPOF.  But if the reliability is high enough, this is fine.

And the later it is said:
> :    I'm confused regarding how articles flow from the master server to
> :the news spool servers.  I think I understood the rest.
>
> Uh, actually, im my implementation - they _don't_.  Articles flow from
> the news spool servers (where article numbering is irrelevant and
> useless) in _to_ the master server.  This is simply to assure that an
> article is there on at least one spool server before the master assigns
> it a number and passes that on to the reader machines.

Interesting twist.  In my design, the master gets a full feed, assigns the
article numbers (and updates the Xref header in the article), then sends
the article to a spool.  The spool assigns it's spool-number to the
article, and returns that info to the master.  Only then (after the master
knows for sure the spool correctly saved it) does the master update the
overview-like database and make the article "visible" to NNTP clients.  My
master also keeps two high water mark values for each newsgroup.  One is
used for assigning new numbers, but the second is only updated to reflect
when articles are stored and made visible to the NNTP clients.  The NNTP
clients only see the high-water mark that correctly matches what is
currently available for them to read.

What do you do about the Xref: line?  When you read an article does the
reader box insert it on read?  Or do you just not get Xref: lines from your
system?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38670
Author: Joe Greco
Date: Wed, 14 Jul 1999 00:00
115 lines
6625 bytes
In news.software.nntp article <brad-1407991832480001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
:Folks,
:
:    I've been thinking about this problem quite a bit within the last few
:days.  The goal is to avoid Single Points of Failure (SPOFs), and what
:I've had rattling around in the back of my brain is something along the
:lines of RAIS (Redundant Arrays of Inexpensive Servers [0]).
:
:
:    It's easy to set up multiple news peering servers, and have each one
:handle 1/n of your news peers, and you can use "virtual" path elements
:that you tell your peers to look at (when considering feeding you back an
:article), but internally you instead pay attention to the host path
:element that gets the virtual path element appended on each server.
:
:    I think I understand this part, but of course would like to hear any
:thoughts that others might have.
:
:    You can set up a "master" news spool server and one or more "slave"
:news spool servers that get their article numbers, etc... from the master,
:and should the master die you can relatively quickly turn one of the
:slaves into a replacement master, etc....
:
:    Again, I think I understand this part.
:
:    However, now comes the problem of setting up multiple redundant news
:reader servers.  If you have them NFS mount the news spool, obviously they
:can only mount that from one server.  This creates a SPOF.
:
:    Based on previous bad experiences, I wouldn't bother looking at
:distributed file systems (which might implement multiple redundant copies
:of files) such as AFS, DFS, or Coda, although perhaps I'm wrong in this
:matter.
:
:    I'm leaning towards an NNTPCache-type solution, but I'm wondering how
:you would tell it to pull the same set of newsgroups from more than one
:server.  I'm also wondering how you would ensure that the article
:numbering, expiration, newsgroup file, etc... would stay in sync across
:multiple NNTPCache servers.  And how would you then extend this concept to
:allow for off-site "backup" news servers, perhaps run by a news
:outsourcing operation?
:
:    I think this part is where I could use the most help.  Any thoughts?
:
:[0]  In this case, "Inexpensive" is a relative term.  One news spool
:server built on top of high-end PC server hardware and running a
:relatively robust freely available OS (I would choose FreeBSD, but that's
:a personal preference) can be *quite* a bit less expensive (three to five
:times less expensive) than a well-configured DECompaq Alpha that has been
:configured throughout for internal redundancy and fault resiliance, and I
:have to assume that the same is true for Sun Solaris (the only other
:option I'd be likely to consider).
:
:In this case, I'd be willing to spend less money to buy multiple servers,
:and get my redundancy through having more machines than in having more
:expensive but more capable single machines.

The cost of the machine is not an issue.  A good PC server class system
can be built for ~$2K-$3K, but it is the I/O subsystem, disks and RAID
controller, that will co$t you to death.

Using NFS is about the worst possible thing I can think of.  NFS is very
cruddy, unreliable, and noisy - causing system hangs in the event of
problems, etc.

You are going in the right direction, you just don't have the right
technology.  You want big spool servers.  Machines that have lots of
disk and lots of speed but aren't being bogged down by dealing with
the inane stuff clients like to spew at a NNRP daemon.  You want
smaller reader servers.  Machines with small amounts of disk that
handle the NNRP transactions.  Machines that handle managing the
overview data, active files, etc.

You want to replace NFS with NNxP.

Look at Diablo.  Matt Dillon has done a fantastic job of solving your
problem for you.  You set up reader boxes running dreaderd.  These
accept a header-only feed from a master server, and create an overview
database from the Xref: data and other headers.  This is very low-cost
in terms of bandwidth, etc.  Each reader can handle hundreds of users,
and talks to the spool servers via a dozen or so NNTP channels which
are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
fast for the spool server to do.

You do not have to have one spool server that has all your articles.
You can have a spool server for binaries (with big disks) and one for
regular articles.  You can have redundant spool servers.  You can do
lots of neat stuff from an architectural point of view.  Can you say
"implement a geographically/topologically diverse spool architecture
and put reader machines at every major POP"?

I'm heavily committed to this paradigm at this point.  It is conceptually
correct.  Your back end spool servers can be anything that is able to
answer "ARTICLE <mess@ageid>"...  INN, Typhoon, Diablo.  Your front
end reader servers are small and cheap to build.

I'm currently shooting to build such a system that will scale into the
millions-of-subscribers range.  I've solved a number of scalability
issues, implemented some fairly comprehensive audit trail facilities in
Diablo, and done a whole bunch of other neat and cool stuff.  It works.
This article is being posted through one of my test servers.

Yes, you still have a SPOF... the master server.  I know that I don't
care about this.  It is a small SPOF that can be handled by keeping a
hot spare machine around, and it need not be a huge system since it
only really needs to keep a days worth of news or so.  When it fails,
you pull the dactive from a reader and away you go.  Maybe you lose
some articles in the process if you're sloppy.

Now everybody knows why I decided to dump my INN development efforts...
:-)

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38672
Author: Brad Knowles
Date: Wed, 14 Jul 1999 00:00
110 lines
6241 bytes
In article <378cc595$0$374@news.execpc.com>, jgreco@ns.sol.net (Joe Greco)
wrote:

> The cost of the machine is not an issue.  A good PC server class system
> can be built for ~$2K-$3K, but it is the I/O subsystem, disks and RAID
> controller, that will co$t you to death.

    Yes, of course.  And a Mylex DAC960SXI controller with five channels,
256MB cache, battery-backup, etc... will cost about 3x that of the machine
it's connected to (yes, I've done the math ;-).  And 9GB 10kRPM disks from
either Seagate or IBM will cost around $600/each, at least from the best
prices I've seen.

    However, these controller costs and disk media costs are *greatly*
exaggerated in the DECompaq/Sun solution, so not only do you end up paying
more for the somewhat more reliable machine, you also end up paying a lot
more for the priviledge of buying your I/O subsystem from them.

> You are going in the right direction, you just don't have the right
> technology.  You want big spool servers.  Machines that have lots of
> disk and lots of speed but aren't being bogged down by dealing with
> the inane stuff clients like to spew at a NNRP daemon.

    I figured that part.

>                                                         You want
> smaller reader servers.  Machines with small amounts of disk that
> handle the NNRP transactions.  Machines that handle managing the
> overview data, active files, etc.

    I also grokked that.  I could easily re-use existing Pentium Pro 200
servers, so long as they've got decent OSes and disks underneath them to
do the job.

    If I use something like NNTPCache, I'll want to replace the disks with
small striped arrays of fast disks.  If I go with something like
Diablo/dreaderd, then local disk writes should be virtually non-existant
(except for keeping track of the history file, logging, etc...), and
single replacement reliable and high-speed drives should be sufficient.

> You want to replace NFS with NNxP.

    NFS was never really a player in the new model I've been trying to build.

> Look at Diablo.  Matt Dillon has done a fantastic job of solving your
> problem for you.  You set up reader boxes running dreaderd.  These
> accept a header-only feed from a master server, and create an overview
> database from the Xref: data and other headers.  This is very low-cost
> in terms of bandwidth, etc.  Each reader can handle hundreds of users,
> and talks to the spool servers via a dozen or so NNTP channels which
> are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
> fast for the spool server to do.

    Hrm.  So the news flows into the master server, which sends a
header-only feed to the reader servers, but then how do the articles get
written with the same article ids, etc... on the news spool servers? 
Wouldn't that also require a header-only feed, but then wouldn't you also
need to follow that up with a full article feed?

    I'm confused regarding how articles flow from the master server to the
news spool servers.  I think I understood the rest.

> You do not have to have one spool server that has all your articles.
> You can have a spool server for binaries (with big disks) and one for
> regular articles.  You can have redundant spool servers.

    My plan was actually to be redundant for !alt.binaries.*, and to split
alt.binaries.* across the servers (so that I don't waste all that disk
space across each and every news spool server).

>                                                           You can do
> lots of neat stuff from an architectural point of view.  Can you say
> "implement a geographically/topologically diverse spool architecture
> and put reader machines at every major POP"?

    That's kind of where I'm headed.  I'm just not yet quite convinced
that I need to use Diablo to get there (although you're doing a pretty
good job of convincing me ;-).

> I'm currently shooting to build such a system that will scale into the
> millions-of-subscribers range.  I've solved a number of scalability
> issues, implemented some fairly comprehensive audit trail facilities in
> Diablo, and done a whole bunch of other neat and cool stuff.  It works.

    MOOF!!!

> Yes, you still have a SPOF... the master server.  I know that I don't
> care about this.  It is a small SPOF that can be handled by keeping a
> hot spare machine around, and it need not be a huge system since it
> only really needs to keep a days worth of news or so.  When it fails,
> you pull the dactive from a reader and away you go.  Maybe you lose
> some articles in the process if you're sloppy.

    I was thinking pretty much the same thing.  Some SPOFs aren't
avoidable (there has to be either just one machine or some sort of locking
mechanism used across multiple machines in order to guarantee unique
sequential article numbers), but at least you can work to avoid the rest
and make the machine that is the SPOF as reliable and easy to quickly
replace as possible.

> Now everybody knows why I decided to dump my INN development efforts...
> :-)

    I've been wondering what the heck you've been up to....  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38682
Author: Joe Greco
Date: Wed, 14 Jul 1999 00:00
273 lines
14984 bytes
In news.software.nntp article <19990714184455.693$oy@newsreader.com>, curt@kcwc.com (Curt Welch) wrote:
:jgreco@ns.sol.net (Joe Greco) wrote:
:> In news.software.nntp article
:> <brad-1407991832480001@brad.techos.skynet.be>, brad@shub-internet.org
:> (Brad Knowles) wrote:
:
:> :    I've been thinking about this problem quite a bit within the last
:> :few days.  The goal is to avoid Single Points of Failure (SPOFs), and
:> :what I've had rattling around in the back of my brain is something along
:> :the lines of RAIS (Redundant Arrays of Inexpensive Servers [0]).
:
:I've been thinking about that type of design for years.  It's always
:sounded very appealing to me.  Creating a network of cheap servers
:is easy to do where as trying to create one large server with the same
:power is far more expensive.
:
:It's why I started writing my own news server back in December.  I wanted
:to create an archetecture which would allow the server do be distributed
:over a redundant array of cheap servers.
:
:> You are going in the right direction, you just don't have the right
:> technology.  You want big spool servers.  Machines that have lots of
:> disk and lots of speed but aren't being bogged down by dealing with
:> the inane stuff clients like to spew at a NNRP daemon.  You want
:> smaller reader servers.  Machines with small amounts of disk that
:> handle the NNRP transactions.  Machines that handle managing the
:> overview data, active files, etc.
:>
:> You want to replace NFS with NNxP.
:
:This is just what I've done with my new server.  I just put
:it into production on NewsReader.Com two days ago replacing my old
:inn server.
:
:> Look at Diablo.  Matt Dillon has done a fantastic job of solving your
:> problem for you.  You set up reader boxes running dreaderd.  These
:> accept a header-only feed from a master server, and create an overview
:> database from the Xref: data and other headers.  This is very low-cost
:> in terms of bandwidth, etc.  Each reader can handle hundreds of users,
:> and talks to the spool servers via a dozen or so NNTP channels which
:> are used for "ARTICLE <mess@geid>" type retrievals - very easy and very
:> fast for the spool server to do.
:
:I haven't really looked at what Matt's done so please excuse me for being
:stupid about this...
:
:So each reader box maintains it's own overview database which includes the
:indexes required to map group/article# into message-ID? 

That's actually _all_ the overview databases are...  headers from the
actual Usenet articles, stored in an index to map group/article# to
header.  That information naturally includes the MID.

:How do they know
:when an article has expired from a spool server?

They don't.  It is actually an extremely elegant design, because it allows
so much flexibility.  You can have a small local spool under your admin
control, and then also have a slower "backup" link to someplace like
newsreader.com or remarQ.com which retrieves articles not found on the
local spool.

Realistically, there is no good general way to keep the overview and
spools completely sync'ed and yet maintain the ability and flexibility to
keep them on separate machines or even separate administrative realms.

You can design more complex mechanisms that greatly reduce your
flexibility in what clever things you can do...  but this adds great
quantities of complexity.  What if you have lots of "small" spools,
each of which hold the last week of news, but you choose to have one
"retention" spool in your company that holds the last month of news?
Even assuming you had some hypothetical package that allowed the
overview database to know when the articles had been removed from
the spool, the overview database would still have to be clever enough
to wait for the last instance of the article to vanish from the spool
servers before removing the overview data.  What about a heterogeneous
environment where one of the spool servers isn't even the same software
package?  Right now, my new Diablo servers rely somewhat on the current
INN reader system to provide some types of articles for which I have
not yet built Diablo spool servers.

:Is there some regular overview expire process which scans everything on a
:regular basis?  Or do the readers just expire their data based on their own
:logic (which might or might not match the back-end servers), or what?

Based on their own logic... which is theoretically based on what the
admin knows about the actual environment.  Querying each of potentially
dozens of spool servers to make sure that an article no longer exists
on any of them would be bad for a single reader, and disastrous for a
large number of readers.  You could do it, sure, but I don't think you
would _want_ to.

:What I did was to have each spool server number the articles sequentially.
:And then, instead of requesting articles by message-id, you get them by
:their number.  The storage scheem the servers use are set up to make this
:simple and fast for them to do.

Diablo makes it fast and easy for them to request by MID.  Different
way to implement the same general thing.  However, if you mean that you
are storing them by their group.name:number, then you are pushing extra
work up to your spool server because it is having to maintain those
indexes in some fashion or another.  The Diablo spool box just lays the 
articles down and writes history entries, and retrieval is equally
simple because the history lookup on the MID gives you the reference
to the actual article, which is then trivial to fetch and send to the
client.  It sounds like you have to go through some more complex
data to get to the actual message, although if it was coded very
efficiently, I guess it wouldn't be an issue.

:The numbers are designed to wrap at a fixed point so there's no problems
:with the numbers getting to large.  It only limits how many articles one
:server can store.

Same with Diablo, except that it is simply doing its normal expiration
thing and storing by MID.

:And, articles always expire from the spool servers in order.  So this
:means, that at any time, each spool has a range of current "valid" article
:numbers. The front-end server (which currently is also the master server)
:always knows what the current valid range is for all the spool servers -
:and it uses that to quickly know if any article is still valid, or if it
:has expired.

That sounds like more dependence than I'd personally like to see.  In my
environment, I don't care too much if I newfs my master, the only real
damage I might cause is due to the loss of history, so I might get some
duplicate messages showing up on the readers.  Whoopie.

:There's a group/article# to spool/spool-article# database maintained by
:the master server (though this could be dupped in all the front-end servers
:like Diablo).  So, to check to see if article #12345 in group x.y.z has
:been exired, all the server has to do is look up the spool, and article
:number on that spool, and then check that against it's table which is
:constantly being updated.

Oh, wait, your spool/spool-article# is not the same as group/article#?
Ich.  I see what you're trying to do, but I don't think I like it too
much.  It lacks the simple elegance of Diablo, although it may allow
you a particular form of flexibility in how you choose your retention
policy.

:This allows the front end overview information to stay perfectly in sync
:with the back end spool servers.  This way, you never report "old" overview
:info which could lead to extra "article no longer available" messages for
:the users.

I just make sure I keep the data on the spool servers longer than the
readers store the overview data.  I'll concede that that is tricky and
a bit speculative.

:It also comes into play in the history file managment.  Knowing if an
:article is still valid allows you to create a history file that starts
:small, and only expand if needed. If it's expensive to figure out if an
:article is still valid, then you have to use a fixed size history file and
:force the admikn to make sure it's big enough (like Typhoon), or expire
:later instead of in real time (like old Diablo at least).

Diablo still does batch expiration.  It has not shown itself to be any
sort of bottleneck in my experience.  The Diablo reader stuff uses a
dynamically sizing (and it uses some method I don't like, I plan to
look at this soon and change it) overview index on a per-group basis.

:> I'm heavily committed to this paradigm at this point.  It is conceptually
:> correct.  Your back end spool servers can be anything that is able to
:> answer "ARTICLE <mess@ageid>"...  INN, Typhoon, Diablo.  Your front
:> end reader servers are small and cheap to build.
:
:I've even been looking a bit at low-end consumer PCs to use as the spool
:servers.  They are so cheap these days that you can get an entire PC with
:large IDE drives for less money than a bare SCSI drive of the same size.

Yeah, I considered that for some other purposes...  using a Promise (I
think) IDE controller in addition to two on-boards, one can get four
IDE channels and eight IDE drives on a single system, which reduces the
cost overhead of the PC somewhat.  I still like SCSI better, since I can
put hundreds of drives on a single machine, and I have a lot more faith
in SCSI to handle server-class loads.

:I'm not sure how well they would actually perform, but it's an interesting
:idea made possible by this type of architecture.  And since ethernet is hot
:swapable, it's easy to replace these things on the fly (assuming your
:software is set up to deal with that).

It should be!

:> I'm currently shooting to build such a system that will scale into the
:> millions-of-subscribers range.
:
:Yeah, I too am heading towards that.
:
:> I've solved a number of scalability
:> issues,
:
:I have the structure in place to do a lot of this, but currently
:the master server is doing all the reading as well, so it doesn't
:yet scale well - still needs more code....
:
:> Yes, you still have a SPOF... the master server.
:
:And most likely you will have some networking hardware which is also
:a SPOF.  But if the reliability is high enough, this is fine.

With dual Ethernets and other arrangements as well, I can eliminate the
networking hardware as a SPOF.  One requirement in my current design is
that everything have at least two paths to each primary spool server.

:And the later it is said:
:> :    I'm confused regarding how articles flow from the master server to
:> :the news spool servers.  I think I understood the rest.
:>
:> Uh, actually, im my implementation - they _don't_.  Articles flow from
:> the news spool servers (where article numbering is irrelevant and
:> useless) in _to_ the master server.  This is simply to assure that an
:> article is there on at least one spool server before the master assigns
:> it a number and passes that on to the reader machines.
:
:Interesting twist.  In my design, the master gets a full feed, assigns the
:article numbers (and updates the Xref header in the article), then sends
:the article to a spool.  The spool assigns it's spool-number to the
:article, and returns that info to the master.  Only then (after the master
:knows for sure the spool correctly saved it) does the master update the
:overview-like database and make the article "visible" to NNTP clients.  My
:master also keeps two high water mark values for each newsgroup.  One is
:used for assigning new numbers, but the second is only updated to reflect
:when articles are stored and made visible to the NNTP clients.  The NNTP
:clients only see the high-water mark that correctly matches what is
:currently available for them to read.

That's nice, but almost required for your stated design.  I get away with
only having to worry about making sure that it is available on _some_
spool server in the pool, and by arranging the feeds such that the master
only gets articles from the spool servers, that is actually designed right
in and guaranteed by the setup.  Other than that, Diablo is doing the
same basic thing with a lot less chattiness...  when the master hands the
reader a header, it becomes "available for reading".  There is a potential
window where it is available on A but not B, but that will happen to yours
too as you scale it, I believe.

:What do you do about the Xref: line?  When you read an article does the
:reader box insert it on read?  Or do you just not get Xref: lines from your
:system?

This is one odd thing.  But it is a side-effect of policy decisions that
I have made, it is not really a Diablo restriction.

When you ask for "ARTICLE 1", Diablo provides the header from the overview
(which of course has an Xref: for sync purposes) but searches the spools
for the body of the associated MID in the overview.

When you ask for "ARTICLE <x@y>", Diablo searches the spool servers
directly for "<x@y>", and returns the complete article.  This makes sense
since the reader code does not maintain a history, and cannot map that
request to an overview entry.

In my particular design, then, no, you don't get an Xref: line.  If that
bothers you, you can design it such that the spool servers are fed by the
master and do get Xref: lines, but then you lose the automatic availability
guarantee that we just discussed, and you have to make sure that your spool
servers will have the article.

You could do this by making the master Xref: the articles and feed the
spools, then have the spools provide the header-only feeds to each of the
readers.  But, then in my case, you are hauling more data than necessary
around across your network - which is why I decided against doing that.

Or you could fudge it and hope for the best.

Either way, I like the "lego effect" Matt has built into the overall
design of the system, you can do lots of neat and cool things.

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38683
Author: Russ Allbery
Date: Wed, 14 Jul 1999 00:00
16 lines
1227 bytes
Brad Knowles <brad@shub-internet.org> writes:

> Based on previous bad experiences, I wouldn't bother looking at
> distributed file systems (which might implement multiple redundant
> copies of files) such as AFS, DFS, or Coda, although perhaps I'm wrong
> in this matter.

No, you're not wrong.  AFS is absolutely wonderful for a lot of things.
Write intensive operations is not one of them.  DFS is basically just AFS
with an obscene amount of baggage, and I'd be very surprised if Coda was
far different.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38694
Author: Joe Greco
Date: Thu, 15 Jul 1999 00:00
426 lines
22298 bytes
In news.software.nntp article <19990715020107.911$aB@newsreader.com>, curt@kcwc.com (Curt Welch) wrote:
:jgreco@ns.sol.net (Joe Greco) wrote:
:
:> :How do they know
:> :when an article has expired from a spool server?
:>
:> They don't.  It is actually an extremely elegant design, because it
:> allows so much flexibility.
:
:Yeah, it is really cool how that works since you can use any server
:which answers ARTICLE <x@y> commands (and just about every news server
:does that).  I remember Matt's postings when he was first talking about
:this and how excited he was about how it was all coming together.
:
:So the trick to making it work nicely is to adjust the way the overview
:info is expired so that it goes away before the last copy of the article
:vanishes.  Hmmm.  That bothers me, but the decoupling you get by "just
:not bothering" is really cool too.  I'll have to think more about that.
:
:How do the readers know which of say 10 boxes to get articles from?  Does
:each reader have a priority list of what to try first?  Can you tell
:the reader something like, "for alt.* try these spools in this order, but
:for anything else, try these?".

No, not right now.  That's another change I'd like to investigate, right
now you simply specify a preference list - but obviously the reader may
have some hints as to what group the article is in, and you can obviously
feed a group or hierarchy to a particular spool server.  Right now, it
_will_ ask all the spool servers for the article until it finds it.  The
Diablo history lookup is very cheap, though, so this is simply a bit of
inefficiency - I do not think it will actually prove to be a bottleneck
in production.  But then again, I plan to basically have a standard art
server and a bins art server, and that's as far as I plan to distinguish
things...  any additional servers will be backups.

:So it sounds like your(/Matt's) design is based on very loose coupling
:between the systems.  And you have to custom tune each box on it's own
:to some extent.

To some extent.  (Well, my readers are identical, so I have to tune _one_
box).

:My design leans more towards the idea that you are building "one" news
:server which happens to be distributed over many machines - but they are
:clearly all configured and managed as if it were "one" system, and not
:a loosely coupled set of servers.  So, the idea of using someone elses
:server as a backup just isn't part of my current design.

That much is readily apparent.  :-)

:> Realistically, there is no good general way to keep the overview and
:> spools completely sync'ed and yet maintain the ability and flexibility to
:> keep them on separate machines or even separate administrative realms.
:
:The separate administrative realms I think kills it, but the way I do
:the spools allows them to stay very nicely in sync with the group data.
:But it really limits what you can do in the sense that my design works and
:acts like "one" news server, where as your design is really just a
:collection of indepent servers - and servers that can work fine on their
:own even while supporting the rest of the distributed system.  For example,
:you could set up a small private inn server (say to run some set of local
:groups).  People could read news from that server as well.  But if it also
:feed it's articles to the master server, and all the readers knew to go
:there to get those local.* groups), then the "big distributed" system would
:look and act like it had a feed of those groups when in fact it just used
:the master server. Yeah, I see there are lots of cool things you can do
:with that design.

Yup!  Which is why I don't mind working around the limits imposed by the
strict separation that comes with this.  It is a truly clever yet simple
way to do it.

:And each of your front-end readers can have it's own "view" of the world,
:just like a view onto a relational DB.
:
:So they really act just like a set of independent servers that are
:sharing resources - and can, if configured that way, just act like
:one big server.

Or, a little of both...  something else I am working on.

:> You can design more complex mechanisms that greatly reduce your
:> flexibility in what clever things you can do...
:
:Yes, that's what I did.  I added the new level of article numbering
:that's done by the spools, and it does greatly reduce the flexibility
:by comparison to what your system is doing, but ...
:
:> but this adds great
:> quantities of complexity.
:
:It doesn't stike me as "great quantities of complexity".  It only adds one
:new concept (the name assigned to the article by the spool), and a couple
:of new NNTP-like commands for dealing with the spools. (AGET and APUT
:instead of ARTICLE/TAKETHIS).
:
:But more important, it makes it work correctly.  Your system (as
:found in the wild) well very likely return active file low water
:marks, article counts, and xover data that do not correctly match
:what's available in your spools.

I don't know that that is actually true.  I think that the documentation
is a bit weak right now, but properly documented, I don't think it would
be a major issue.  Even if it is, 9 of 10 people are reading the most
current stuff, not the older stuff.

I'll also note that it would be possible to implement something in the
reader code to do something akin to the spool directory scan in inn1.*,
using a binary search on the overview to find the extent of existing
articles on the lower end.  This would possibly be okay as long as the
number of spool servers wasn't too large.  Maybe it could be some sort
of optional behaviour.

:My server on the other hand always returns an accurate low water
:mark, and accurate xover data, accurate "listgroup" data, etc.  And the
:article count is also _exactly_ correct for all but the largest groups
:(like my control.cancel which currently has over 1.6 million articles in
:the group).
:
:> What if you have lots of "small" spools,
:> each of which hold the last week of news, but you choose to have one
:> "retention" spool in your company that holds the last month of news?
:
:It's really no problem.  Your server is the one that can't deal with
:complex sets of articles, mine works fine.  I'll explain.
:
:Right now my server puts each article into only one spool.  So there's
:no redundancy.  But the plan is to create mirrors of the spools.
:
:The articles are given a "name" based on what spool it was placed
:in (i.e. spool 10), and what number the spool assigned that article,
:say article 445566.  It's this name (10-445566) that defines the
:article in all the indexes and the history file.  That name is all you
:need to retrive the article (like your Message-ID).
:
:The advantage of that name is that it becomes real simple to tell
:if the article has been expired yet or if it's still available.
:Spool 10 "tells" everyone what it's current range of articles
:is every time it changes. (e.g., spool 10's is currently holding
:articles 124456 through 999435).  So to see if article 10-445566
:has been expired, you just get the current low and high article
:numbers for spool 10 and see if it's within the range.  The master
:server (which is acting as the reader as well right now) just
:always "knows" what the ranges are for all the spools - so to
:check an article to see if it's valid, you just make a quick scan
:thought that small table.
:
:When I add mirrors - they can be of different lengths.  There could
:be mulitple short term mirros which are used to help distribute
:the load, and one long retention spool mirror for spool 10.  As long as
:article 10-445566 is still in at least one spool, then it's still
:available.  And my system can tell that very quicly and very acurately
:because of the way the articles get numbered sequentialy as they
:are stored in a spool.
:
:And, for example, I can do things like send all articles which are
:cross posted to more than 4 groups to a special short term "spam"
:spool. They will expire from the groups much faster than all the
:other news - leaving holes in the groups. But even with all these
:holes, my server can still acurattly tell you how many articles
:are "really" in the group, and they correctly return xover data
:leaving those articles out of the list.
:
:But your server could never deal with that.  It has no way of knowing
:which of the articles expired too soon.  So it would end up returning
:all this xover data for articles which no longer exist on the server.

I guess that doesn't bother me since I have no interest in making spam
articles available, and filter them at the head.

I can make the same case for Diablo, however, because it is possible to
move articles around at a later date - something it sounds like your
setup would have problems with (think of aging buckets).

If it really bothers somebody (like, maybe, me, since I thought about it
and then decided it wasn't really an issue in my environment), in a
single administrative realm it certainly _is_ possible to know what 
articles are just about to be expired - modify dexpire to tell you, easy -
and one could extend dreaderd to have a fast "EXPIRE group:num" command
available via NNTP.  This still leaves the _possibility_ of windows, but
if I studied your setup I could probably find some odd cases there too.

This is, certainly, a bit more heavyweight than your solution, but not
horribly so.

:> Even assuming you had some hypothetical package that allowed the
:> overview database to know when the articles had been removed from
:> the spool,
:
:It's not hypothetical, it's in production and it works fine.

It _is_ hypothetical in the average user's case.  Even INN didn't do
this; maybe things are different in INN2.

:> the overview database would still have to be clever enough
:> to wait for the last instance of the article to vanish from the spool
:> servers before removing the overview data.
:
:There's two types of "overview data".  There's the index which maps
:group/article_num into spool-spool_article_num, and there's the
:xover data.
:
:The indexes are easy to scan and easy to expire.  You just need that
:table of information which shows the low and high article numbers
:for each spool.
:
:The xover data is another story.  I generate that on demand and cache
:it (in the spools as "fake" articles).  I use the group indexes (along with
:the spool range tables) to figure out what's valid and what's not.  That
:way, the xover files don't have to accurately reflect the articles.  The
:cached sets of articles expire at some point based on how you configured
:your system (i.e. which spools did you tell the system to put the xover
:cahce articles into).
:
:They won't exctly match the articles they are caching info for, but since
:they are used as the "definition" of what's there and what's not, that's
:not important.
:
:> What about a heterogeneous
:> environment where one of the spool servers isn't even the same software
:> package?
:
:I Can't ever deal with that.  That's just something that's cool about the
:way you are doing it.
:
:> :Is there some regular overview expire process which scans everything on
:> :a regular basis?  Or do the readers just expire their data based on
:> :their own logic (which might or might not match the back-end servers),
:> :or what?
:>
:> Based on their own logic... which is theoretically based on what the
:> admin knows about the actual environment.  Querying each of potentially
:> dozens of spool servers to make sure that an article no longer exists
:> on any of them would be bad for a single reader, and disastrous for a
:> large number of readers.  You could do it, sure, but I don't think you
:> would _want_ to.
:
:Right, that would never work.  I had to come up with this new scheme
:to make it practical for the master process to figure out what had expired
:and what didn't.

Something more along the lines of what I described does the same basic
thing with less gyrations up front.  I'm not saying your scheme is bad, but
it _is_ rather propietary, therefore it is something you are going to end
up supporting yourself, which is a scenario I didn't want to find myself in.

I also didn't want to need any monolithic "master process" ...   um... hey.

Now that's an idea.

I don't really like the idea of doing what I described above on general
principles because you increase complexity rapidly.  But, I wonder, if
you were just to do it on the master server, and then have the clients
use dsyncgroups to adjust the lower bounds, you can keep the low number
in sync fairly easily...  hmm.......

:> :What I did was to have each spool server number the articles
:> :sequentially. And then, instead of requesting articles by message-id,
:> :you get them by their number.  The storage scheem the servers use are
:> :set up to make this simple and fast for them to do.
:>
:> Diablo makes it fast and easy for them to request by MID.  Different
:> way to implement the same general thing.  However, if you mean that you
:> are storing them by their group.name:number, then you are pushing extra
:> work up to your spool server because it is having to maintain those
:> indexes in some fashion or another.  The Diablo spool box just lays the
:> articles down and writes history entries, and retrieval is equally
:> simple because the history lookup on the MID gives you the reference
:> to the actual article, which is then trivial to fetch and send to the
:> client.  It sounds like you have to go through some more complex
:> data to get to the actual message, although if it was coded very
:> efficiently, I guess it wouldn't be an issue.
:
:No, it's really just as simple.  I too just lay the articles down into
:files (in NNTP wire format BTW with CR LF dot CR LF between them so
:you can scan the raw article files and acurattly extract all the articles).
:I assign sequential numbers to them and then build a simple index that
:tells you where (in byte terms) article X begins.  Makes it very fast and
:simpe to extrat articles.  The spool servers don't known anything about
:"groups" or message-IDs. (though it would be real simple for each of my
:spool servers to also maintain a history file (a.k.a. message-id index) for
:it's articles so it could respond to an "ARTICLE <x.y>" request...)
:
:> That sounds like more dependence than I'd personally like to see.
:
:Yeah, my spools are really tied to my front end boxes.  Matt made
:it work with standard NNTP commands and that's just cool.
:
:> Oh, wait, your spool/spool-article# is not the same as group/article#?
:
:right.
:
:> Ich.  I see what you're trying to do, but I don't think I like it too
:> much.  It lacks the simple elegance of Diablo, although it may allow
:> you a particular form of flexibility in how you choose your retention
:> policy.
:
:Right.  It makes it real simple to figure out which articles are still
:in the spool, but takes away all those fun things you can do.
:
:> I just make sure I keep the data on the spool servers longer than the
:> readers store the overview data.  I'll concede that that is tricky and
:> a bit speculative.
:
:And it limits you in the type of games you can play with retention of
:different types of articles. And somewhat important, if you try to use
:a server which is doing a tricky expire game (like my >5 x post exmple),
:then there's just no way for you to deal with it.  Users will end up
:getting lots of "article not there" messages.  But as long as you have
:at least one long retention server that's not playing any of those
:games, then it makes little differenc what the shorter term servers
:do -- so that's cool and sounds like it can be very workable (though it
:does make the job of the admin more complex - they really have to
:understand all this complexity to get it set up right).

Solvable, if you want to take a performance hit and write some code.  I
don't think it is a problem worth my time - at least not right now, but
I might consider it in the future.

:> ... I still like SCSI better ...
:
:Yeah, me too.
:
:> ... when the master hands
:> the reader a header, it becomes "available for reading".  There is a
:> potential window where it is available on A but not B, but that will
:> happen to yours too as you scale it, I believe.
:
:If the definition of "when it's availble" stays on the master then
:there's no window.  If it's distributed, then you are going to get windows.
:Having N distributed processors get together and "agree" on something (like
:_now_ is the time to announce the existance of this article), is one of the
:clasic problems of distributed computing.  I think the answer is that it's
:imposible to do without creating those windows.
:
:I haven't thought too much yet about which route I would go -- though I was
:leaning towards letting the one master maintain the group indexes and each
:reader box would have to check back with it for current group status
:info.  That would keep everything nicely in sync and really make it look
:like one large consistant server - but puts that more resonspibilty (and
:work) on the master.

That introduces a big SPOF, which is what this whole thread was about.  I
can nuke arbitrary portions of my newsreading architecture and the
remainder will continue to work as best it can.

:> :What do you do about the Xref: line?
:
:> This is one odd thing.
:
:> When you ask for "ARTICLE <x@y>",
:
:Oh, my God...  Didn't even think about that problem for you.

I didn't, either, until I actually tried it and it spat back an article
with a Path: header that didn't mention the reader's path element and
I went "hunh?"

:The only way for an NNTP newsreader to map a Message-ID back to the
:group/article number is to use the XRef: header. (like when
:trying to follow a thread back across newsgroup bounds).  If you
:just punt and leave it out then that's something else that's
:broken about your server (at least in my eyes).
:
:No, I take that back, you can use the Newsgroup: line, and then
:down load all headers from the newsgroup and go searching for
:a match.
:
:So the question becomes, how many current newsreaders need that, and
:what do they do if they don't get it?  I have no idea what the answer
:to that is, but I suspect most newsreaders will deal with because
:the Xref header really is optional - and many newsreaders my not even
:try to use it (i.e. they eithre provide no easy way to follow a
:thread into the old group, or they know how to use the newsgroups:
:line to do it when the Xref: header is missing..).
:
:> In my particular design, then, no, you don't get an Xref: line.  If that
:> bothers you, you can design it such that the spool servers are fed by the
:> master and do get Xref: lines, but then you lose the automatic
:> availability guarantee that we just discussed, and you have to make sure
:> that your spool servers will have the article.
:
:> You could do this by making the master Xref: the articles and feed the
:> spools, then have the spools provide the header-only feeds to each of the
:> readers.  But, then in my case, you are hauling more data than necessary
:> around across your network - which is why I decided against doing that.
:
:Then don't take out the back-end master.  The spools do header
:feeds to a scond master which removes dups as before (it just doesn't
:xref any more), and then feed the readers as before.

No, I mean more shuffling up front.  Right now, my geographically diverse
spools are attached directly to my geographically diverse feeders.  The
local feeder is responsible for getting the articles into the spools, and
the distant spools feed their brothers on a time-delayed basis as backup.
This means that I am only sending one full feed from each spool/transit
cluster back to the master, and the master is only sending out header
feeds.

Doing it this other way means that I have to pull all the articles to the
master - a full feed - from each transit server.  Then I have to push the
full feeds back out to the spool servers.  So, somewhere in there is an
extra full feed...

Feeding dups to dreader processes isn't a problem, by the way...  just
somewhat inefficient.

:Or for more redundancy at the cost of a bit more traffic, have two
:back-end masters and every spool feed both of those (with IHAVE/TAKETHIS
:so the redundancy just ads an extra IHAVE for each article header, not
:another entire copy). and then every reader gets two feeds (but only two),
:one from each of the redundant back-end masters.
:
:> Either way, I like the "lego effect" Matt has built into the overall
:> design of the system, you can do lots of neat and cool things.
:
:Yeah, it really is cool.  The downsides that I see are the fact that
:you can't deal nicely with complex expire logic on the spools (or at
:least you must have at least one long-term spool with simple expire logic
:that's easy to "match" with the expire logic of the readers), and this xref
:issue which seems possible to get right if it's important enough to
:justify.

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38697
Author: Brad Knowles
Date: Thu, 15 Jul 1999 00:00
29 lines
2330 bytes
In article <7mk5uk$eqk$1@hama.darkmere.gen.nz>, Simon Lyall
<simon@darkmere.gen.nz> wrote:

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

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

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

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38699
Author: Russell Vincent
Date: Thu, 15 Jul 1999 00:00
18 lines
1477 bytes
Simon Lyall <simon@darkmere.gen.nz> wrote:

[ On Diablo Xref: slaving ]
> 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.

Unfortunately you also need to update the dreaderd machines to
specify which host is to be found in the Xref: line. A safeguard
that has caught me out a few times. Apart from that, it is pretty
easy to do (update a line or two in diablo.config).

 -Russell
(Note spamblock in email)


Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38703
Author: Brad Knowles
Date: Thu, 15 Jul 1999 00:00
138 lines
7174 bytes
In article <378cf321$0$374@news.execpc.com>, jgreco@ns.sol.net (Joe Greco)
wrote:

> That's because you costed it with all that RAM.  A DAC960SXI with 5
> channels, 16MB RAM, etc., will cost about 20% more than the machine it
> is attached to...  assuming the type of machines I've been spec'ing in
> recent months.  (ASUS P2B-DS ~= $425, case ~= $250, 2 x PII-xxx ~= $400,
> 1GB RAM ~= $1100 ...  DAC960SXI ~= $2600)  I've been recycling 64MB SIMM
> modules and putting 128MB in my DAC's, and since I don't have a reasonably
> priced source for 128MB SIMM's, I'm happy with that.

    I think you're using US prices.  Unfortunately, although we are
registered as a reseller with Ingram Micro, we still have to pay heavy
duties and import fees for stuff we don't buy locally, so prices over here
in Belgium are greatly inflated, although they're not necessarily all
inflated to the same degree.


    In fact, we've found that we can buy systems from a certain name brand
vendor at a price cheaper than we can buy no-name systems that are kludged
together in someone's basement, and even cheaper than what we would pay
for them if we directly bought all the pieces ourselves and put them
together.

    However, on the other side, the DAC960SXI only goes up in price when
it comes over here, no matter how it arrives.  So, it gets relatively
quite a bit more expensive than the machine it's going to be connected to,
and that machine isn't exactly a low-end configuration.  We're even
ponying up for ECC RAM, which isn't cheap.

> I'm not confident of that, I'm still speccing my reader machines to be
> quad drive machines.  The cost is still below the price dictated by the
> design.

    Better to be safe than sorry!  I was planning on having the reader
machines be quad drive to begin with, and I've never really waivered from
that plan.  I'm glad that I've now got firm confirmation that this is
probably a good idea.

> Uh, actually, im my implementation - they _don't_.  Articles flow from the
> news spool servers (where article numbering is irrelevant and useless) in
> _to_ the master server.  This is simply to assure that an article is there
> on at least one spool server before the master assigns it a number and
> passes that on to the reader machines.  The spool servers are directly
> peered with my transit servers, keep no active file, and have only one
> outgoing feed - to the master.  They just suck in the data sent by the
> transit servers, store it, and feed it to the master.  The master assigns
> article numbers, passes that on to the readers via a header-only feed.
> Each reader builds its independent overview and active file databases, and
> when a user goes into "alt.sex" and asks for "ARTICLE 1", the reader gets
> the overview data for alt.sex:1, parses out the Message-ID:, and then
> goes around asking each spool server for that Message-ID.

    Hmm, so the same article flows in separately to the spool servers,
which might issue a different local article number for the same
message-id, and then to the master server?

    Interesting.  Very, very interesting.


    Does the header-only feed from the master to the readers also include
the article number, so that all reader servers have exactly the same
picture of what article number maps into what message-id, which they can
then query for from the news server regardless of how the news server
issues it's own article numbers or how it stores the article?

    Also, what happens with cross-posts and Xref headers, where article
numbers are used and not message-ids?


    And how do you get a news reader server to use multiple spool servers,
either load balancing or preferring one over the other(s)?


    It seems to me that there's a lot to Diablo/dreaderd that I don't
understand.

> You lose then in the event that a server is down (etc).  Diablo handles
> it fairly well, though, so if that is acceptable to you, so be it.

    Yeah, I know.  I just don't want to waste hundreds of GB of disk space
duplicating binary content that's going to turn over in a few days
anyway.  If there's a catastrophic crash and loss of a news server that
toasts some portion of the spool for binary articles, they'll start
filling up again soon enough.

> Write to me in e-mail if you need more convincing.

    Will do.  Thanks for the offer, although you may come to regret it if
I pester you too much.  ;-)

> :    MOOF!!!
> 
> Uh, what was that...  I hope you're not laughing at me.  :-)

    No, that was not laughing at you.  That was my ASCII equivalent of
snorting coffee [-1] out my nose as I read your description and was rather
impressed by the scale of your plans. [0] [3] [4]

> This is both a strength and a weakness of Diablo.  The structure of the
> system allows a single Message-ID to be assigned several times into a
> group, since the reader does not maintain its own history.  This does
> allow you to feed the same article with the same Xref: data in several
> times, without problems, but in the event where you were to lose the
> history on your master, you could end up with duplicate stuff in your
> overview.

    Hmm.  I'm not sure I quite understand this point.  Could I get you to
explain in a bit more detail?

        -Brad




[-1] No, I wasn't actually drinking coffee at the time, but I'm not about
to say that I was snorting Coke out of my nose, not even Diet Coke or Coca
Light as they call it over here.  ;-)

[0] Although, technically, I was quoting Clarus the dogcow. [1] [2]

[1] The virtual mascot of the short-lived Claris corporation that was spun
off and then re-absorbed into Apple.

[2] If you've ever done a "Page Setup..." on a Macintosh, you've seen
Clarus used as the icon to indicate whether the paper is in landscape or
portrait mode, etc....

[3] Sigh....  It's been too long since I left AOL.  I'm starting to think
small again....

[4] Ack!!!  Rampant ASR-like footnote-itis!  ;-)

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38706
Author: Kjetil Torgrim Homme
Date: Thu, 15 Jul 1999 00:00
14 lines
1332 bytes
[Joe Greco]

>   Your NFS implementation doesn't hang the client and render it
>   unusable if the NFS server goes away?  What OS is _that_?

Use soft mounts if that is the behaviour you want.  Anyway, the
solution is to make sure the NFS server doesn't go away.  You can also
use automount with failover if you're able to keep the servers
identical.


Kjetil T.

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38707
Author: Joe Greco
Date: Thu, 15 Jul 1999 00:00
16 lines
1404 bytes
In news.software.nntp article <1r3dyq2ie1.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
:[Joe Greco]
:
:>   Your NFS implementation doesn't hang the client and render it
:>   unusable if the NFS server goes away?  What OS is _that_?
:
:Use soft mounts if that is the behaviour you want.

And your server still responds if it crashes or is rebooting?  :-)

No thanks.  It is clearly the wrong way to do it.  And it is very network
chatty on top of it.

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38712
Author: Joe Greco
Date: Thu, 15 Jul 1999 00:00
32 lines
2314 bytes
In news.software.nntp article <7mkc00$7m3$1@wave.cam.uk.internal>, Russell Vincent <russellv-n@nosp.uk.uu.net> wrote:
:Simon Lyall <simon@darkmere.gen.nz> wrote:
:
:[ On Diablo Xref: slaving ]
:> 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.
:
:Unfortunately you also need to update the dreaderd machines to
:specify which host is to be found in the Xref: line. A safeguard
:that has caught me out a few times. Apart from that, it is pretty
:easy to do (update a line or two in diablo.config).

Yeah, ecch.  That got me too.

That was actually one of the cases I wasn't able to figure out a really
decent way to log what was going on.  My Diablo logging stuff simply
noted that there was no xref in slave mode, which had me looking at the
INN server scratching my head...  Diablo will strip an Xref that does
not match what its slave Xref is supposed to be.

One of my big issues with Diablo was that it doesn't do much logging,
and in an ISP production environment, I'd rather have transaction-level
logs, because then I can actually see what screwy clients are doing.

I'll be submitting my patches to Matt once I'm completely satisfied that
they do what I want.

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38713
Author: Kjetil Torgrim Homme
Date: Thu, 15 Jul 1999 00:00
37 lines
2517 bytes
[Joe Greco]

>   I'll also note that it would be possible to implement something in
>   the reader code to do something akin to the spool directory scan
>   in inn1.*, using a binary search on the overview to find the
>   extent of existing articles on the lower end.  This would possibly
>   be okay as long as the number of spool servers wasn't too large.
>   Maybe it could be some sort of optional behaviour.

With cancels and supersedes thrown in, you may get false hits.  It
would be nice if the reader could update its overview information so
that such holes could be identified locally.  I see two approaches:

  * Let the reader keep history information, mapping message-id to
    group:num.

  * Let the feeder help the reader by adding a special header to
    cancels/supersedes, e.g. Cancel-xref: group:num group:num

I'm not sure which I prefer.  Local history at the client seems
cleanest conceptually, since you can still use an INN box (or
whatever) as the master feeder for the reader.  The history
information would only be needed for cancel processing, so it wouldn't
be catastrophic if it was lost.  However, getting help from the feeder
is probably the most efficient solution.  It will have to do some
housekeeping when it receives cancel messages anyhow.


The other approach to a more reliable GROUP, is to make some
assumptions, like "no more than five articles cancelled in a row", but
this will lead to more server load, and it will never be foolproof.


Kjetil T.


Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38714
Author: Curt Welch
Date: Thu, 15 Jul 1999 00:00
331 lines
17274 bytes
jgreco@ns.sol.net (Joe Greco) wrote:

> :How do they know
> :when an article has expired from a spool server?
>
> They don't.  It is actually an extremely elegant design, because it
> allows so much flexibility.

Yeah, it is really cool how that works since you can use any server
which answers ARTICLE <x@y> commands (and just about every news server
does that).  I remember Matt's postings when he was first talking about
this and how excited he was about how it was all coming together.

So the trick to making it work nicely is to adjust the way the overview
info is expired so that it goes away before the last copy of the article
vanishes.  Hmmm.  That bothers me, but the decoupling you get by "just
not bothering" is really cool too.  I'll have to think more about that.

How do the readers know which of say 10 boxes to get articles from?  Does
each reader have a priority list of what to try first?  Can you tell
the reader something like, "for alt.* try these spools in this order, but
for anything else, try these?".

So it sounds like your(/Matt's) design is based on very loose coupling
between the systems.  And you have to custom tune each box on it's own
to some extent.

My design leans more towards the idea that you are building "one" news
server which happens to be distributed over many machines - but they are
clearly all configured and managed as if it were "one" system, and not
a loosely coupled set of servers.  So, the idea of using someone elses
server as a backup just isn't part of my current design.

> Realistically, there is no good general way to keep the overview and
> spools completely sync'ed and yet maintain the ability and flexibility to
> keep them on separate machines or even separate administrative realms.

The separate administrative realms I think kills it, but the way I do
the spools allows them to stay very nicely in sync with the group data.
But it really limits what you can do in the sense that my design works and
acts like "one" news server, where as your design is really just a
collection of indepent servers - and servers that can work fine on their
own even while supporting the rest of the distributed system.  For example,
you could set up a small private inn server (say to run some set of local
groups).  People could read news from that server as well.  But if it also
feed it's articles to the master server, and all the readers knew to go
there to get those local.* groups), then the "big distributed" system would
look and act like it had a feed of those groups when in fact it just used
the master server. Yeah, I see there are lots of cool things you can do
with that design.

And each of your front-end readers can have it's own "view" of the world,
just like a view onto a relational DB.

So they really act just like a set of independent servers that are
sharing resources - and can, if configured that way, just act like
one big server.

> You can design more complex mechanisms that greatly reduce your
> flexibility in what clever things you can do...

Yes, that's what I did.  I added the new level of article numbering
that's done by the spools, and it does greatly reduce the flexibility
by comparison to what your system is doing, but ...

> but this adds great
> quantities of complexity.

It doesn't stike me as "great quantities of complexity".  It only adds one
new concept (the name assigned to the article by the spool), and a couple
of new NNTP-like commands for dealing with the spools. (AGET and APUT
instead of ARTICLE/TAKETHIS).

But more important, it makes it work correctly.  Your system (as
found in the wild) well very likely return active file low water
marks, article counts, and xover data that do not correctly match
what's available in your spools.

My server on the other hand always returns an accurate low water
mark, and accurate xover data, accurate "listgroup" data, etc.  And the
article count is also _exactly_ correct for all but the largest groups
(like my control.cancel which currently has over 1.6 million articles in
the group).

> What if you have lots of "small" spools,
> each of which hold the last week of news, but you choose to have one
> "retention" spool in your company that holds the last month of news?

It's really no problem.  Your server is the one that can't deal with
complex sets of articles, mine works fine.  I'll explain.

Right now my server puts each article into only one spool.  So there's
no redundancy.  But the plan is to create mirrors of the spools.

The articles are given a "name" based on what spool it was placed
in (i.e. spool 10), and what number the spool assigned that article,
say article 445566.  It's this name (10-445566) that defines the
article in all the indexes and the history file.  That name is all you
need to retrive the article (like your Message-ID).

The advantage of that name is that it becomes real simple to tell
if the article has been expired yet or if it's still available.
Spool 10 "tells" everyone what it's current range of articles
is every time it changes. (e.g., spool 10's is currently holding
articles 124456 through 999435).  So to see if article 10-445566
has been expired, you just get the current low and high article
numbers for spool 10 and see if it's within the range.  The master
server (which is acting as the reader as well right now) just
always "knows" what the ranges are for all the spools - so to
check an article to see if it's valid, you just make a quick scan
thought that small table.

When I add mirrors - they can be of different lengths.  There could
be mulitple short term mirros which are used to help distribute
the load, and one long retention spool mirror for spool 10.  As long as
article 10-445566 is still in at least one spool, then it's still
available.  And my system can tell that very quicly and very acurately
because of the way the articles get numbered sequentialy as they
are stored in a spool.

And, for example, I can do things like send all articles which are
cross posted to more than 4 groups to a special short term "spam"
spool. They will expire from the groups much faster than all the
other news - leaving holes in the groups. But even with all these
holes, my server can still acurattly tell you how many articles
are "really" in the group, and they correctly return xover data
leaving those articles out of the list.

But your server could never deal with that.  It has no way of knowing
which of the articles expired too soon.  So it would end up returning
all this xover data for articles which no longer exist on the server.

> Even assuming you had some hypothetical package that allowed the
> overview database to know when the articles had been removed from
> the spool,

It's not hypothetical, it's in production and it works fine.

> the overview database would still have to be clever enough
> to wait for the last instance of the article to vanish from the spool
> servers before removing the overview data.

There's two types of "overview data".  There's the index which maps
group/article_num into spool-spool_article_num, and there's the
xover data.

The indexes are easy to scan and easy to expire.  You just need that
table of information which shows the low and high article numbers
for each spool.

The xover data is another story.  I generate that on demand and cache
it (in the spools as "fake" articles).  I use the group indexes (along with
the spool range tables) to figure out what's valid and what's not.  That
way, the xover files don't have to accurately reflect the articles.  The
cached sets of articles expire at some point based on how you configured
your system (i.e. which spools did you tell the system to put the xover
cahce articles into).

They won't exctly match the articles they are caching info for, but since
they are used as the "definition" of what's there and what's not, that's
not important.

> What about a heterogeneous
> environment where one of the spool servers isn't even the same software
> package?

I Can't ever deal with that.  That's just something that's cool about the
way you are doing it.

> :Is there some regular overview expire process which scans everything on
> :a regular basis?  Or do the readers just expire their data based on
> :their own logic (which might or might not match the back-end servers),
> :or what?
>
> Based on their own logic... which is theoretically based on what the
> admin knows about the actual environment.  Querying each of potentially
> dozens of spool servers to make sure that an article no longer exists
> on any of them would be bad for a single reader, and disastrous for a
> large number of readers.  You could do it, sure, but I don't think you
> would _want_ to.

Right, that would never work.  I had to come up with this new scheme
to make it practical for the master process to figure out what had expired
and what didn't.

> :What I did was to have each spool server number the articles
> :sequentially. And then, instead of requesting articles by message-id,
> :you get them by their number.  The storage scheem the servers use are
> :set up to make this simple and fast for them to do.
>
> Diablo makes it fast and easy for them to request by MID.  Different
> way to implement the same general thing.  However, if you mean that you
> are storing them by their group.name:number, then you are pushing extra
> work up to your spool server because it is having to maintain those
> indexes in some fashion or another.  The Diablo spool box just lays the
> articles down and writes history entries, and retrieval is equally
> simple because the history lookup on the MID gives you the reference
> to the actual article, which is then trivial to fetch and send to the
> client.  It sounds like you have to go through some more complex
> data to get to the actual message, although if it was coded very
> efficiently, I guess it wouldn't be an issue.

No, it's really just as simple.  I too just lay the articles down into
files (in NNTP wire format BTW with CR LF dot CR LF between them so
you can scan the raw article files and acurattly extract all the articles).
I assign sequential numbers to them and then build a simple index that
tells you where (in byte terms) article X begins.  Makes it very fast and
simpe to extrat articles.  The spool servers don't known anything about
"groups" or message-IDs. (though it would be real simple for each of my
spool servers to also maintain a history file (a.k.a. message-id index) for
it's articles so it could respond to an "ARTICLE <x.y>" request...)

> That sounds like more dependence than I'd personally like to see.

Yeah, my spools are really tied to my front end boxes.  Matt made
it work with standard NNTP commands and that's just cool.

> Oh, wait, your spool/spool-article# is not the same as group/article#?

right.

> Ich.  I see what you're trying to do, but I don't think I like it too
> much.  It lacks the simple elegance of Diablo, although it may allow
> you a particular form of flexibility in how you choose your retention
> policy.

Right.  It makes it real simple to figure out which articles are still
in the spool, but takes away all those fun things you can do.

> I just make sure I keep the data on the spool servers longer than the
> readers store the overview data.  I'll concede that that is tricky and
> a bit speculative.

And it limits you in the type of games you can play with retention of
different types of articles. And somewhat important, if you try to use
a server which is doing a tricky expire game (like my >5 x post exmple),
then there's just no way for you to deal with it.  Users will end up
getting lots of "article not there" messages.  But as long as you have
at least one long retention server that's not playing any of those
games, then it makes little differenc what the shorter term servers
do -- so that's cool and sounds like it can be very workable (though it
does make the job of the admin more complex - they really have to
understand all this complexity to get it set up right).

> ... I still like SCSI better ...

Yeah, me too.

> ... when the master hands
> the reader a header, it becomes "available for reading".  There is a
> potential window where it is available on A but not B, but that will
> happen to yours too as you scale it, I believe.

If the definition of "when it's availble" stays on the master then
there's no window.  If it's distributed, then you are going to get windows.
Having N distributed processors get together and "agree" on something (like
_now_ is the time to announce the existance of this article), is one of the
clasic problems of distributed computing.  I think the answer is that it's
imposible to do without creating those windows.

I haven't thought too much yet about which route I would go -- though I was
leaning towards letting the one master maintain the group indexes and each
reader box would have to check back with it for current group status
info.  That would keep everything nicely in sync and really make it look
like one large consistant server - but puts that more resonspibilty (and
work) on the master.

> :What do you do about the Xref: line?

> This is one odd thing.

> When you ask for "ARTICLE <x@y>",

Oh, my God...  Didn't even think about that problem for you.

The only way for an NNTP newsreader to map a Message-ID back to the
group/article number is to use the XRef: header. (like when
trying to follow a thread back across newsgroup bounds).  If you
just punt and leave it out then that's something else that's
broken about your server (at least in my eyes).

No, I take that back, you can use the Newsgroup: line, and then
down load all headers from the newsgroup and go searching for
a match.

So the question becomes, how many current newsreaders need that, and
what do they do if they don't get it?  I have no idea what the answer
to that is, but I suspect most newsreaders will deal with because
the Xref header really is optional - and many newsreaders my not even
try to use it (i.e. they eithre provide no easy way to follow a
thread into the old group, or they know how to use the newsgroups:
line to do it when the Xref: header is missing..).

> In my particular design, then, no, you don't get an Xref: line.  If that
> bothers you, you can design it such that the spool servers are fed by the
> master and do get Xref: lines, but then you lose the automatic
> availability guarantee that we just discussed, and you have to make sure
> that your spool servers will have the article.

> You could do this by making the master Xref: the articles and feed the
> spools, then have the spools provide the header-only feeds to each of the
> readers.  But, then in my case, you are hauling more data than necessary
> around across your network - which is why I decided against doing that.

Then don't take out the back-end master.  The spools do header
feeds to a scond master which removes dups as before (it just doesn't
xref any more), and then feed the readers as before.

Or for more redundancy at the cost of a bit more traffic, have two
back-end masters and every spool feed both of those (with IHAVE/TAKETHIS
so the redundancy just ads an extra IHAVE for each article header, not
another entire copy). and then every reader gets two feeds (but only two),
one from each of the redundant back-end masters.

> Either way, I like the "lego effect" Matt has built into the overall
> design of the system, you can do lots of neat and cool things.

Yeah, it really is cool.  The downsides that I see are the fact that
you can't deal nicely with complex expire logic on the spools (or at
least you must have at least one long-term spool with simple expire logic
that's easy to "match" with the expire logic of the readers), and this xref
issue which seems possible to get right if it's important enough to
justify.

Cool stuff.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38716
Author: Simon Lyall
Date: Thu, 15 Jul 1999 00:00
28 lines
2215 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
>This is both a strength and a weakness of Diablo.  The structure of the
>system allows a single Message-ID to be assigned several times into a
>group, since the reader does not maintain its own history.  This does
>allow you to feed the same article with the same Xref: data in several
>times, without problems, but in the event where you were to lose the
>history on your master, you could end up with duplicate stuff in your
>overview.

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. 

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.

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

                "...it's about damn time that all of us who actually
               give a damn about Usenet stand up and tell the people
               who don't to fuck off and die." -- Russ Allbery

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38718
Author: Kjetil Torgrim Homme
Date: Thu, 15 Jul 1999 00:00
48 lines
2722 bytes
[Brad Knowles]

>       Also, what happens with cross-posts and Xref headers, where
>   article numbers are used and not message-ids?

I was wondering about that, too.  If the newsreader uses the
Xref-value it got from overview, things are hunky-dory since the
header feed is consistent.  If it uses the value from the article, the
wrong articles will be marked read.  In order to implement quick
"catch up" functionality, it is likely that clients _will_ use
overview, though.

>       And how do you get a news reader server to use multiple spool
>   servers, either load balancing or preferring one over the
>   other(s)?

You give it a list of servers to try in dserver.hosts:

  nntp1	s1
  nntp2	s1
  nntp3	s2
  nntp4	s2
  master s3 o1

This will pick either "nntp1" or "nntp2" randomly (both having
priority 1 for fetching articles), and if both are down, try "nntp3"
or "nntp4", or even "master".  POST will always go to "master".

If you use different priorities, you will want different ordering on
each reader host, of course.

>       Yeah, I know.  I just don't want to waste hundreds of GB of
>   disk space duplicating binary content that's going to turn over in
>   a few days anyway.  If there's a catastrophic crash and loss of a
>   news server that toasts some portion of the spool for binary
>   articles, they'll start filling up again soon enough.

Diablo will ask the other servers if it has "expired" at the first
server.  You don't need to keep the same set of articles on each
storage server.

Diablo is very cool.  If it supported "never" expiry on our local
groups, our INN server would have been replaced a long time ago :-)


Kjetil T.

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38723
Author: Joe Greco
Date: Fri, 16 Jul 1999 00:00
18 lines
1626 bytes
In news.software.nntp article <7mnpkp$36fi$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:
:In article <378d3721$0$374@news.execpc.com>,
:| Oh, bull.  I brought my second reader machine online by doing a tar over
:| the network to populate /news/spool/group.
:
:But how long does it take? And does that mean the master has to keep
:this handy, or is it a subset of master information?

I copied it from another reader.  :-)  Transferring at about 4MB/s, to do
about 25GB of info, probably took about two hours.  You could go faster if
you had multiple ethernets (I did) and split the network load up between
them (I didn't) because that's the bottleneck.

HTH,

... JG

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38726
Author: bill davidsen
Date: Fri, 16 Jul 1999 00:00
20 lines
1797 bytes
In article <378ddab7$0$374@news.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:

| One of my big issues with Diablo was that it doesn't do much logging,
| and in an ISP production environment, I'd rather have transaction-level
| logs, because then I can actually see what screwy clients are doing.

One of my problems, too. I really want (or need depending on the site)
to be able to track when an article comes in and where it will be sent.
It might be useful at some time to be able to track when an article was
actually offered to a peer, but I've never wanted it enough to write the
code and give up the storage for the logs.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38728
Author: bill davidsen
Date: Fri, 16 Jul 1999 00:00
29 lines
2296 bytes
In article <378d4353$0$374@news.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:

| Yeah, I considered that for some other purposes...  using a Promise (I
| think) IDE controller in addition to two on-boards, one can get four
| IDE channels and eight IDE drives on a single system, which reduces the
| cost overhead of the PC somewhat.  I still like SCSI better, since I can
| put hundreds of drives on a single machine, and I have a lot more faith
| in SCSI to handle server-class loads.

Agreed. The problem with IDE is that it doesn't have transfer and
disconnect, so once you issue a read on one drive the other drive on
that string is blocked until the read completes. The write situation is
far less grim, since the cache on most IDE drives is adequate to hold a
write, and it "completes" at bus speed most of the time.

I like the Promise cards, I got one on spec and plugged it in, prepared
to perform heroics to get Linux to use it. But it came up by itself,
used a single IRQ for both channels, and Linux knew all about it. I'm
about to try an ABIT PB6, which has four channels on board, hopefully
all usable.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38729
Author: Curt Welch
Date: Fri, 16 Jul 1999 00:00
226 lines
13156 bytes
jgreco@ns.sol.net (Joe Greco) wrote:
> In news.software.nntp article <19990715020107.911$aB@newsreader.com>,
> curt@kcwc.com (Curt Welch) wrote:
> :jgreco@ns.sol.net (Joe Greco) wrote:

> :But your server could never deal with that.  It has no way of knowing
> :which of the articles expired too soon.  So it would end up returning
> :all this xover data for articles which no longer exist on the server.
>
> I guess that doesn't bother me since I have no interest in making spam
> articles available, and filter them at the head.

And if your set-up can't deal (well) with servers that have complex
expire patterns (leaving holes in groups etc.) who cares?  That's the type
of thing you might take advantage of it it worked, but if you didn't have
it, it's not really a problem...

> If it really bothers somebody (like, maybe, me, since I thought about it
> and then decided it wasn't really an issue in my environment), in a
> single administrative realm it certainly _is_ possible to know what
> articles are just about to be expired - modify dexpire to tell you, easy
> - and one could extend dreaderd to have a fast "EXPIRE group:num" command
> available via NNTP.  This still leaves the _possibility_ of windows, but
> if I studied your setup I could probably find some odd cases there too.

Sure, there are windows in mine.  The spool is the one deciding when to
expire articles - and it tells the master after-the-fact.  So there's
a window were the master might try to access an article that "should"
be there but isn't by the time the spool receives the request to read
the article (or reports something false to the user (like the low water
mark for a group).

But because I expire in chunks (instead of constantly like in a cycbuf
design) and because the window is normally very small (on the order of 10
msec), the probability of it beeing "seen" by an NNTP client is very small.

The probabibility of hitting a standard NNTP window (like you do an XOVER
command, and then 10 minutes later try to read one of those articles and
find it's gone - either expired or canceled) is far greater than hitting
one of these errors caused by the window in the design.

Since NNTP is full of these windows - and newsreaders deal with them
all the time, you can have small windows of confusion and not really
make matters any worse for the end-user.

And in your system, as long as you can make your overview expire before
(at least most) of your spools, then it will work fine as well.  But
for it to continue running smoothly the admin will have to check it from
time to time.

> :> Even assuming you had some hypothetical package that allowed the
> :> overview database to know when the articles had been removed from
> :> the spool,
> :
> :It's not hypothetical, it's in production and it works fine.
>
> It _is_ hypothetical in the average user's case.  Even INN didn't do
> this; maybe things are different in INN2.

INN didn't do what?  report overview info correctly?  Sure it did.
It didn't update the overview files, but it didn't need to.  It used
the group directory to figure out what was available and what wasn't.
For group commands it scanned the dir to figure out low water marks,
high water marks, and the article count.  For XOVER commands it read
the overview file, but matched it agains what it had found in the
directory to prevent it from returning overview data for articles
which no longer existed.

You could just delete an article by hand and it still reported everything
correctly.

INN 2 broke all that however.  XOVER data from inn2 included info for
articles where had been canceled. XOVER data I think also included data for
articles which had already been overwritten (expired).  As far as I could
tell, the overview data was updated only daily when you ran the overview
expire stuff - and I think the version I was playing with would never
remove xover records for canceled articles.

And if you accepted cancels, that means that many binaries groups had 50%
of their articles canceled (as spam) - and when readers tried to read those
groups, every other article came up as "not available".  Totally
unacceptable.  If you ran good spam filters which took out (at least most
of) the articles before they hit the server, and/or didn't accept cancels,
then this wasn't such a bad problem.  So like your system, if you are
willing to do things the way the system needs them done, it can work ok.
But to me it seemed like a real step down from what we had with INN for
years.  Not to meantion the xover performance issue which was the real
killer for me.

> I'm not saying your scheme is bad,
> but it _is_ rather propietary, therefore it is something you are going to
> end up supporting yourself, which is a scenario I didn't want to find
> myself in.

Yeah, I can understand that. If I was doing this for some ISP, I wouldn't
want to get "stuck" there either (and I would never advise that they get
stuck there either unless they could justify the cost of a full time
developement staff forever).  But since I'm doing this for my own company,
and doing development is what I like doing, it's a whole different issue...

> I also didn't want to need any monolithic "master process" ...   um...
> hey.
>
> Now that's an idea.
>
> I don't really like the idea of doing what I described above on general
> principles because you increase complexity rapidly.  But, I wonder, if
> you were just to do it on the master server, and then have the clients
> use dsyncgroups to adjust the lower bounds, you can keep the low number
> in sync fairly easily...  hmm.......

If your system had a way that it could keep the low water marks close to
correct by itslef, then that would be a big step in the right direction.
That would free the news admin from having to adjust expire parameters by
hand to try to keep them close to what the spools were doing.  And that
just sounds like a bitch to me (not so much setting it up the first time,
but the never ending job of making sure it hasn't drifted out of alignement
over time for some reason).

> :I haven't thought too much yet about which route I would go -- though I
> :was leaning towards letting the one master maintain the group indexes
> :and each reader box would have to check back with it for current group
> :status info.  That would keep everything nicely in sync and really make
> :it look like one large consistant server - but puts that more
> :resonspibilty (and work) on the master.
>
> That introduces a big SPOF, which is what this whole thread was about.  I
> can nuke arbitrary portions of my newsreading architecture and the
> remainder will continue to work as best it can.

Yeah, the ideal was to have no SPOF of like that, and your system gets
you much closer to that.  I like that about your system.

But my master isn't as large as your reader boxes so it's not as large
of a SPOF as I suspect you think it is.

I don't keep XOVER or header data on the master - that's all in the spools.
I have the active file info (which is the same as your master SPOF), a
history file to prevent dups (same as your master SPOF), and a file I call
the "group" file which is the index that maps group:article# into
spool:spool_article_number for every article in every group.  This is the
only thing you have distributed to your readers that I keep on my master.
And on my current server, the "group" file is acutally smaller than the
history file.

The three together, active, group, and history, are less than 2GB of data
for a 10 million article spool.  And that's all that's on the master that
needs to be mirrored.  I don't have any easy way to backup that data while
the system is running, but it would be straight forward to add a dump
function to the server which would create snapshots of those files while
the system was live.  And then I just copy those snapshots to a backup
master on a daily basis to have something ready to go when the master turns
up DOA.  Add a transaction log which is sent to the backup master in
real-time and you have a sytem that would loose almost nothing if the
master vaporized on you.

But, now that I'm thinking about this (and using your system as a model),
all I have to do is set up a header-only-like feed to a backup master and
let it keep it's own copy of those files up to date like your readers do.
You know, that's really not hard at all.  The server already knows how to
do feeds, so adding the conecpt of a header only feed is only one more
config file option for the feed and about 1 if() statement in the feed
code.  Actually, I don't even need a header-only feed, I just need to know
the MID, the Xref data, and the spool#-article# info for each article (so
it really is a special transaction log feed - but very similar in concept
to a header only feed - only smaller and faster). And the back-up master
needs xref-slave mode which I haven't done but which will be no problem to
add (it actually uses the Xref: line internally to know where to "post" the
article already).

And of course this "backup master" is now the same thing as a reader box
like yours.  So with a bit more code (to deal with postings being sent back
to the master and a few issues I see with how I cache xover data), I have
working reader boxes like yours, and any of the reader boxes could become
the "master" in seconds if the master died.  It could even automatically
switch when the master died if you either had a way  for the full feed
going to the master to switch to the backup - or could afford to always
feed a full feed to a reader set up to be the hot-backup for the master -
but it would ignore the feed (just reject all articles) until it needed to
become the master...

Hey, if my transit box (providing the full feed to the master) decided the
master was dead, it could switch the feed to one of the readers.  All the
readers could be set up to "act" as master for any (full - not header only)
articles it was sent, and then forward  the header only feed to all the
other masters and readers.  But only articles which it had assigned group
numbers to would be sent to the other boxes in a header-only feed.  This
way, the masters and the readers all become the same.  There is no master
-- only a collection of master/reader boxes which are all clones of each
other.  You control who is "acting" as master just by who you feed the
articles to.

This would have to be a special transit server that knew the importance of
it's roll in selecting the master.  And the transit server would become a
SPOF, but hey, this SPOF is now only a transit server.  If it fails, you
just stop receiving or sending news for a little while until you replace it
(all the readers keep working fine).  And it has no state that needs to be
saved.  A backup transit box that had the same "full feed" defined but
going nowhere (so it's always had a backlog ready), could act at the
backup.

And I'm thinking maybe you can even do a hot-standby swap automatically
with that transit server.  But doing that correctly sounds very complex
(and maybe impossible.) If you ever end up with two master transit servers
feeding articles to two different master/reader boxes, then the shit really
would be hitting the fan.... (and the walls, and the floor, ...)

I see a few potentials for problems here I need to think through, but the
design is starting to look very interesting....

> Right now, my geographically diverse
> spools ...

> Doing it this other way means that I have to pull all the articles to the
> master - a full feed - from each transit server.  Then I have to push the
> full feeds back out to the spool servers.  So, somewhere in there is an
> extra full feed...

Yes, I see now.  Geographically diverse spools.  Sure, you don't want to
have to push an extra full feed anywhere.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38731
Author: bill davidsen
Date: Fri, 16 Jul 1999 00:00
57 lines
3624 bytes
In article <378d3721$0$374@news.execpc.com>,
Joe Greco <jgreco@ns.sol.net> wrote:
| In news.software.nntp article <7mj19t$l8c$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com (bill davidsen) wrote:

| :That somewhat depends on what you want to do with the machine. If you
| :use software RAID in the o/s you can keep the cost low, and for the
| :redundant reader machines you only need raid-0 for performance. The i/o
| :is always the most expensive part of a large system, even back in the
| :days of memory at $4Million/MB mainframes (1960's).
| 
| If you use software RAID in the OS, you impact performance.  You do
| not need RAID for the inexpensive readers, but you do for the central 
| spool machines - at least if you are planning to hold on to stuff for
| any period of time.

Yes, that's why you do it. Use of raid-0 spreads disk accesses more
evenly, and for max reader performance raid-1 reduces contension for
heads. CPU is usually not an issue for news, so I don't miss a ms here
and there.

| :| Using NFS is about the worst possible thing I can think of.  NFS is very
| :| cruddy, unreliable, and noisy - causing system hangs in the event of
| :| problems, etc.
| :
| :I ran a bunch of NFS slaves in 1.4 and 1.5, and they had none of those
| :problems, they were just slow and used a lot of bandwidth. Had no hangs
| :or bad data, just poor performance. We agree that's this is not the way
| :to go, for whatever reasons.
| 
| Your NFS implementation doesn't hang the client and render it unusable
| if the NFS server goes away?  What OS is _that_?

Oh, by "problems" you mean a total server failure. I kept a copy server
with the same article base, but it really wasn't an issue, it might have
gotten used once in a few years. The only operational problem was that
performance kept going down.

| :One of the problems with having an anything feed is that it complicates
| :the job of getting a new reader machine online. That's one of the few
| :good features of NFS, it allows a new rader box to go from unpack to in
| :service in a few hours. Any form of a header feed requires that the
| :master be able to generate such a feed as a catchup.
| 
| Oh, bull.  I brought my second reader machine online by doing a tar over
| the network to populate /news/spool/group.

But how long does it take? And does that mean the master has to keep
this handy, or is it a subset of master information?

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.



Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38732
Author: 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.

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38735
Author: Curt Welch
Date: Fri, 16 Jul 1999 00:00
32 lines
2327 bytes
davidsen@tmr.com (bill davidsen) wrote:
> In article <378ddab7$0$374@news.execpc.com>,
> Joe Greco <jgreco@ns.sol.net> wrote:
>
> | One of my big issues with Diablo was that it doesn't do much logging,
> | and in an ISP production environment, I'd rather have transaction-level
> | logs, because then I can actually see what screwy clients are doing.
>
> One of my problems, too.

The fact that Diablo doesn't log (at the article level - even as an option
like with Typhoon) what it's doing caused me to drop half my news for over
6 months and I never knew it was happening (though time and time again I
went looking for the reason why I my total article volume didn't seem to
match the bandwidth usage).

The only way I found out what Diablo was doing and finally solved the
mystery of that missing volume is when I took the time to add code to log
why files were being rejected.

Pissed me off to no end when I finally did figure it out.  6 months of 6
GB/day of news filling up my bandwidth and not making it into my spool.
Made me want to kill something.

Does the newer versions of Diablo do article level logging yet?  If not, it
really needs it.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: Musings upon the concept of creating reliable news services with redundant sets of unreliable servers....
#38736
Author: Joe Greco
Date: Fri, 16 Jul 1999 00:00
154 lines
12820 bytes
In news.software.nntp article <19990716133848.836$hr@newsreader.com>, curt@kcwc.com (Curt Welch) wrote:
:davidsen@tmr.com (bill davidsen) wrote:
:> In article <378ddab7$0$374@news.execpc.com>,
:> Joe Greco <jgreco@ns.sol.net> wrote:
:>
:> | One of my big issues with Diablo was that it doesn't do much logging,
:> | and in an ISP production environment, I'd rather have transaction-level
:> | logs, because then I can actually see what screwy clients are doing.
:>
:> One of my problems, too.
:
:The fact that Diablo doesn't log (at the article level - even as an option
:like with Typhoon) what it's doing caused me to drop half my news for over
:6 months and I never knew it was happening (though time and time again I
:went looking for the reason why I my total article volume didn't seem to
:match the bandwidth usage).
:
:The only way I found out what Diablo was doing and finally solved the
:mystery of that missing volume is when I took the time to add code to log
:why files were being rejected.
:
:Pissed me off to no end when I finally did figure it out.  6 months of 6
:GB/day of news filling up my bandwidth and not making it into my spool.
:Made me want to kill something.
:
:Does the newer versions of Diablo do article level logging yet?  If not, it
:really needs it.

If I haven't already added it, I will be.  I have comprehensive
transaction-level logging built into dreaderd.  It doesn't (yet) 
log at different syslog levels... but it will.

For the dreaderd feeder process:

Jul 16 13:33:31 reader0 feed[50722]: feed.host.address.com [50722/9] < takethis <378F85E1.89B5543B@bassettlaudi.com>
Jul 16 13:33:31 reader0 feed[50722]: feed.host.address.com [50722/9] - <378F85E1.89B5543B@bassettlaudi.com> on.jobs not in dactive
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] + <378F85E1.89B5543B@bassettlaudi.com> tor.jobs:418428
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] + <378F85E1.89B5543B@bassettlaudi.com> can.jobs:659038
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] > 239 <378F85E1.89B5543B@bassettlaudi.com>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] < takethis <7mns6p$e6g$841@ffx2nh5.news.uu.net>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] - <7mns6p$e6g$841@ffx2nh5.news.uu.net> tri.jobs.offered not in dactive
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] + <7mns6p$e6g$841@ffx2nh5.news.uu.net> triangle.jobs:399600
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] > 239 <7mns6p$e6g$841@ffx2nh5.news.uu.net>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] < takethis <16079912.0709@pathcom.com>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] + <16079912.0709@pathcom.com> tx.jobs:981618
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] > 239 <16079912.0709@pathcom.com>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] < takethis <RBC5jMAFH3j3Ewu0@charliee.demon.co.uk>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] + <RBC5jMAFH3j3Ewu0@charliee.demon.co.uk> uk.jobs.wanted:32372
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] > 239 <RBC5jMAFH3j3Ewu0@charliee.demon.co.uk>
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] < quit
Jul 16 13:33:32 reader0 feed[50722]: feed.host.address.com [50722/9] > 205 .

This not only audits the transaction between the dreaderd and the host feed
system ('<' and '>' lines) but also the disposition of the articles.  Right
now it will spit out a line per newsgroup an article is placed in, I'm
thinking about how to rework that in a briefer manner.

For the dreaderd reader process:

Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < list active news.software.nntp
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 215 Newsgroups in form "group high low flags".
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < GROUP news.software.nntp
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 211 661 68914 69574 news.software.nntp
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < list active news.software.nntp
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 215 Newsgroups in form "group high low flags".
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 68914-68953
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 68954-68993
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 68994-69033
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69034-69073
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69074-69113
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69114-69153
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69154-69193
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69194-69233
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69234-69273
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69274-69313
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69314-69353
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69354-69393
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69394-69433
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69434-69473
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69474-69513
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69514-69553
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < XOVER 69554-69574
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 224 data follows
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < list active news.software.nntp
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 215 Newsgroups in form "group high low flags".
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < HEAD 69563
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 221 69563 <12069900.4408@none444.yet> head
Jul 16 13:28:40 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < list active news.software.nntp
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 215 Newsgroups in form "group high low flags".
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < HEAD 69571
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 221 69571 <7mno56$blu$1@newssvr03-int.news.prodigy.com> head
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < BODY 69571
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < HEAD 69572
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 221 69572 <7mnpkp$36fi$1@newssvr03-int.news.prodigy.com> head
Jul 16 13:28:46 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < list active news.software.nntp
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 215 Newsgroups in form "group high low flags".
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < HEAD 69573
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 221 69573 <19990716133848.836$hr@newsreader.com> head
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < BODY 69573
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < HEAD 69574
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 221 69574 <7mnr4m$2cqe$1@newssvr03-int.news.prodigy.com> head
Jul 16 13:28:49 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .
Jul 16 13:29:13 reader1 reader[373]: jgreco@earth.execpc.com [373/28] < HEAD 69573
Jul 16 13:29:13 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > 221 69573 <19990716133848.836$hr@newsreader.com> head
Jul 16 13:29:13 reader1 reader[373]: jgreco@earth.execpc.com [373/28] > .

which shows off the identd capability built in.  This is all transactional
logging - which I require for a variety of reasons.

... JG

Re: Musings upon the concept of creating reliable news services with r
#38753
Author: Kai Henningsen
Date: Mon, 19 Jul 1999 00:00
23 lines
1850 bytes
brad@shub-internet.org (Brad Knowles)  wrote on 15.07.99 in <brad-1507990050360001@dialup105.brussels.skynet.be>:

> [0] Although, technically, I was quoting Clarus the dogcow. [1] [2]
>
> [1] The virtual mascot of the short-lived Claris corporation that was spun
> off and then re-absorbed into Apple.
>
> [2] If you've ever done a "Page Setup..." on a Macintosh, you've seen
> Clarus used as the icon to indicate whether the paper is in landscape or
> portrait mode, etc....

Actually, I believe the dogcow had it's first appearance as a hidden  
resource in Technote 31 in some TN Hypercard stack, or something like  
that. It's a lot older than Claris. The name "Clarus", though, is, IMHO,  
recent.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads