Thread View: news.software.nntp
5 messages
5 total messages
Started by bert hubert
Sat, 21 Aug 1999 00:00
dreaderd expire problems, proposed solution
Author: bert hubert
Date: Sat, 21 Aug 1999 00:00
Date: Sat, 21 Aug 1999 00:00
32 lines
1885 bytes
1885 bytes
Hi everybody,
We're having a problem with dreaderd. When articles expire on our
spoolserver, dreaderd doesn't notice this. The spool is using INN with
CNFS, so articles may disappear in a non-FIFO way.
Dreaderd doesn't expire its overview data in the same way, so it will still
present vanished articles to the user. This is annoying.
Now, I was wondering: suppose I managed to hack dreaderd so that it
instantly expires its overview data if it discovers that it can't retrieve
an article anymore. This way, only a single user would be inconvenienced and
from then on, dreaderd would cease displaying the expired article.
I am not experience enough in the ways of diablo and news in general to be
certain that this is a good idea. Before delving into the source, I would
like people's input on this.
Should it turn out to be useful, I'll make the patch available.
Thanks for your attention & regards,
bert hubert.
--
Delft University | Absoluut geen woordvoerder van Casema. Gewoon
of Technology, | niet geloven wat ik zeg.
Department of Physics | Inspice et cautus eris - D11T'95
Re: dreaderd expire problems, proposed solution
Author: Joe Greco
Date: Sat, 21 Aug 1999 00:00
Date: Sat, 21 Aug 1999 00:00
42 lines
2808 bytes
2808 bytes
In news.software.nntp article <slrn7rub83.9h4.ahu@hubert.ds9a.tudelft.nl>, ahu@casema.net (bert hubert) wrote: :Hi everybody, : :We're having a problem with dreaderd. When articles expire on our :spoolserver, dreaderd doesn't notice this. The spool is using INN with :CNFS, so articles may disappear in a non-FIFO way. : :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. :Now, I was wondering: suppose I managed to hack dreaderd so that it :instantly expires its overview data if it discovers that it can't retrieve :an article anymore. This way, only a single user would be inconvenienced and :from then on, dreaderd would cease displaying the expired article. 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 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- 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 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? Personally, I'd think it better to fix your spool or expiration values. It 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. (Fixing the "first-hit" case has been discussed, too, and is unfortunately a bit expensive or requires sacrificing flexibility). ... JG
Re: dreaderd expire problems, proposed solution
Author: bert hubert
Date: Sun, 22 Aug 1999 00:00
Date: Sun, 22 Aug 1999 00:00
89 lines
4322 bytes
4322 bytes
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.
>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."
>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.
>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.
>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.
>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.
>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. And
sometimes articles can expire rather fast, we also carry the large binary
groups, but expire them pretty rapidly.
>(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.
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
- is only useful for sites with large numbers of users
The problem can be minimized by trying to match expiry settings.
Thanks for your input & regards,
bert hubert.
--
Delft University | Absoluut geen woordvoerder van Casema. Gewoon
of Technology, | niet geloven wat ik zeg.
Department of Physics | Inspice et cautus eris - D11T'95
Re: dreaderd expire problems, proposed solution
Author: bert hubert
Date: Sun, 22 Aug 1999 00:00
Date: Sun, 22 Aug 1999 00:00
100 lines
5612 bytes
5612 bytes
On 22 Aug 1999 07:31:20 -0500, Joe Greco wrote:
>: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.
No, because if my server is offline, it will not respond with a 430, it
won't respond at all, and my proposed algorithm will not expire the overview
data. It will do so only is all spool servers were up, and all of them
failed. Furthermore, this feature is optional.
>"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.
This feature would require some discipline, that is true. It may not always
be a good idea.
>: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.
We are talking 35.000 users with a large binary dependency here. Cable modem
users can be very demanding to support...
>: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.
As said before, we are talking cable modem users here which according to
several pieces of research are over 5 times more active on the net than
POTS/ISDN users. It is most of my traffic, and also the area where people
report most of their problems. Happy customers are important to me, even if
they are reading alt.binaries.erotica.*..
>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.
This is very hard to accomplish I'm afraid.. The idea is to do this as much
as possible, and use the proposed algorithm to 'trim the edges'.
> 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_.
I think this would be a lot of work for the spool servers.
>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.
I have been thinking along the lines of a central overview server where
readers cache overview data and invalidate it after a few minutes and
recheck with the overview master. Spool servers which expire articles send a
notification to the overview master, which then decreases the reference
count. Once this hits zero, the overview record is zonked.
I haven't yet worked this out, but it does show some promise.
A third way would be to have a dedicated 'trimming tool' which continuously
checks the availability of articles, asynchronously. If you decide to do
maintenance, just switch off the trimming tool.
Thanks for thinking with me. I think I'll try something along these lines
anyhow, just to 'trim the edges'. Our spoolservers behave differently from
yours right now, so I just might get away with it.
Regards,
bert hubert.
--
Delft University | Absoluut geen woordvoerder van Casema. Gewoon
of Technology, | niet geloven wat ik zeg.
Department of Physics | Inspice et cautus eris - D11T'95
Re: dreaderd expire problems, proposed solution
Author: Joe Greco
Date: Sun, 22 Aug 1999 00:00
Date: Sun, 22 Aug 1999 00:00
160 lines
8458 bytes
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
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