🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39346

Re: dreaderd expire problems, proposed solution

#39346
From: Joe Greco
Date: Sun, 22 Aug 1999 00:00
160 lines
8458 bytes
In news.software.nntp article <slrn7ruhpi.9q8.ahu@hubert.ds9a.tudelft.nl>, ahu@casema.net (bert hubert) wrote:
:On 21 Aug 1999 19:23:25 -0500, Joe Greco wrote:
:
:>:Dreaderd doesn't expire its overview data in the same way, so it will still
:>:present vanished articles to the user. This is annoying.
:>
:>That's mostly a function of either poor engineering or improper expiration
:>times somewhere.  Your INN/CNFS system should be able to expire articles 
:>in a very FIFO style.
:
:This is true. However, the problem remains: dreaderd's overview will not be
:in synch with the availability of articles.

And, again, that's a problem that is more an issue of keeping your spool
and dreaderd expirations in sync.

:>This fails to deal with multiple spools (f.e. temporary unavailability of 
:>a spool) and has the potential to be doing some very Bad Things in
:
:Not quite true. Deletion of the overview data should only happen after all
:spool servers have been tried, and if all servers responded with a "430 No
:such article."

So, if I'm a smaller shop without redundancy, and a network outage takes
my spool server offline for a while, and some bozo tries to read all of
comp.*, all my overview data vaporizes...?  That's great, especially if
I want to keep a month of comp.* and now all my customers are not liking
me because I've got none.

:>environments where you purposely call a downtime and don't worry about the
:>readers getting no actual articles for a time.  It also works on a per-
:
:The readers don't receive articles, they receive headers, so that isn't
:really a problem.

The readers most certainly do receive articles, how else would the client
get an article?  The reader requests an article from the spool server,
receives the article, and passes it on to the user.  In the case we are
talking about, the reader requests an article from the spool server, fails
to receive the article (because you have either a planned or unplanned
downtime of that spool server), and then marks the article as unavailable
so that nobody else can read it when the spool server is revived.  Great.
I don't know about you, but around here people run things like "suck" and
"uqwk" which like to iterate through text groups one at a time and with
your proposed modification could pretty much rip through most popular
groups and mark them permanently unavailable.

:>reader basis, meaning that it is possible for an article to vanish on one
:>server (because someone tried to read it and it wasn't there) and not on
:>others, and this may not be very desirable if you're trying to provide a
:>consistent view across multiple readers.  It also requires that a reader
:
:I am working on a system that features topological DNS, based on DENTS
:(www.dents.org), whereby subscribers automatically connect to their assigned
:server most of the time (ie, as long as their IP number is within their
:normal range). However, I would like to get my dreaders as close together as
:possible.

So you really _don't_ want something that is single-reader-dependent, since
then you are encouraging a diverging worldview.

:>hit a nonexistent article.  Given any non-large userbase, what is the
:>chance that a second user will actually try to read that same old, non-
:>present article?
:
:Ah, but I do have a large userbase, ~35.000, mostly cable modems. However, I
:aggree that it shouldn't be default behaviour.

Small userbase.  Some of us are building for orders of magnitude larger.

:>Personally, I'd think it better to fix your spool or expiration values.  It
:
:Trouble is that the spool has different expiry semantics than the readers.
:Getting them matched up is going to be hard. We expire larger articles
:faster, for example.

Are you sure you really want to do that?  It _will_ make life a bit more
difficult.  If you're really only worried about binaries, it isn't too bad
to set up a more explicit expiration on alt.binaries, and then set up
Cleanfeed to restrict binaries to that hierarchy.

:>might be a useful option for some environments, but I don't think it is
:>appropriate for default behaviour, and it is fixing the low-probability
:>"second-hit" case.
:
:The outgoing traffic to my users is over 40 times larger than my incoming
:feed. So I suspect that most articles get read many, many times.

Odd that my userbase is much larger and I don't think that's the case.  I
do think that alt.binaries.* get read many, many times (which is also what
accounts for most of your traffic, I'd bet).  :-)  This, of course, is a
tiny fraction of your articles though.

:sometimes articles can expire rather fast, we also carry the large binary
:groups, but expire them pretty rapidly.

So, if this is your _real_ problem (which I suspect it is), you should just
try to make sure that your expires on both sides are set appropriately.  You
can actually set the dreader side a "bit too small" so that you have a
little extra breathing room.

:>(Fixing the "first-hit" case has been discussed, too, and is unfortunately
:>a bit expensive or requires sacrificing flexibility).
:
:Yes, I disregarded that possibility as mostly impossible. 

It's actually more practical than what you are suggesting, but it involves:

a) checking for availability of articles before presenting them to the user,
   which sounds simple but has the potential for being a lot of additional
   burden on dreaderd, particularly in the event of multiple spool servers.
   Ideally this would require some custom code, and perhaps a streaming mod
   to STAT that'd allow you to rapidly stream queries at your spools, since
   you don't really want to lock-step requests in a group with 10,000
   articles.  Although I guess the clever programmer might discover a way
   to do it synchronously with the transmission of overview to the user,
   which'd hide the delay and also spread out the load.

   I do actually have another news app that does this, and while I have not
   checked to see what kind of load it imposes on my spool servers, it does
   work _fast_.

   Downside:  STAT on diablo needs to be cleaned up a bit, since it does
   have a tendency to report "article available" for a while right after
   expiration.

   Upside:  largely portable, since it'll work with things like spools that
   are not under your administrative control, etc.

2) devising a way to notify dreaderd when a spool loses an article.  This
   becomes very complex since you may have multiple spools, etc.  In my
   particular environment, where I have classifications of spool servers
   and machines within the classification are identical, it'd be easiest.
   When I lose an article off of one spool server, simply notify all
   readers to expire it.  Of course, this still fails miserably for things
   like remote spools ("Supernews") and so I've not been anxious to dump
   engineering time into this sort of solution.

:Summarizing:
:
:	Expiring overview records when unable to retrieve the article:
:
:		- not by default
:
:		- should only be done when each and every spoolserver was
:		  available
:
:		- and only if each and every one returned a 430 No such article

Uhhh...  when my spool servers are not available, they return a 430 NSA for
_everything_ (can't have the dreaderd server boxes sitting there trying to
connect, or filling up the logs with connection refused messages).

:		- is only useful for sites with large numbers of users
:
:	The problem can be minimized by trying to match expiry settings.

... JG

Technical Details
Message-ID: <37bfed9a$0$30901@news.execpc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <slrn7rub83.9h4.ahu@hubert.ds9a.tudelft.nl> <37bf42fe$0$30893@news.execpc.com> <slrn7ruhpi.9q8.ahu@hubert.ds9a.tudelft.nl>

Show Full Headers
Complete Article Headers
Message-ID: <37bfed9a$0$30901@news.execpc.com>
Subject: Re: dreaderd expire problems, proposed solution
Date: Sun, 22 Aug 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <slrn7rub83.9h4.ahu@hubert.ds9a.tudelft.nl> <37bf42fe$0$30893@news.execpc.com> <slrn7ruhpi.9q8.ahu@hubert.ds9a.tudelft.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 515779963
Sender: jgreco@earth.execpc.com
X-Trace: nreader1.newsops.execpc.com 935325082 30901 jgreco@169.207.16.1
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com