🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91447

Re: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk)

#91447
From: John Goerzen
Date: Wed, 17 Jan 2024 05:10
93 lines
5301 bytes
On 2024-01-17, Russ Allbery <eagle@eyrie.org> wrote:
> John Goerzen <jgoerzen@complete.org> writes:
>
>> In reading some more docs, I have a clue, but it is not an answer.
>
>> It doesn't state which is the default.
>
> I believe the default is neither of those: the overview information is
> removed as the article expires from each group, but the article itself is
> retained until it has expired from all groups.

Hi Russ, and thanks for the reply!

I am a little fuzzy on the relationship between the triple of (overview,
history, article storage on disk).

It sounds like you're saying:

- The overview information is per-group (which is pretty much has to be, given
  what overview is for).  So expireover could remove the article from overview
  for a group per expire.ctl without removing the hardlink to it from that
  group, or the history entry.

- Then after it is expired from all groups (I guess by checking the Xref
  header?) it is finally removed from the history and on-disk as well.

Did I get that right?  I think this could explain the behavior I was seeing, of
ovdb and active not showing all the old articles, but them still being on disk
and (mostly?) in history.

In that case, the only "penalty" I am paying here is the cost of the directory
entry, since the inode and data is already spoken for with the other crossposts.

So, expireover -k would modify that by not even removing it from overview
either, until all references are removed.

And -e would change it to remove from everywhere as soon as even one of the
Xrefs expire it.

> Crossposting was my first guess about what behavior you were seeing, but
> then I decided it couldn't be that since you had thousands of unexpired
> messages.  But now that you say that you keep everything forever except
> certain groups, it all makes sense.  Your example group, alt.atheism, is
> notorious for getting tons of crossposted troll posts from tons of other
> groups, so much of its traffic is crossposted.

Oh interesting.  That could account for it indeed.  And with all the hardlinks,
space attribution is notoriously difficult, and it could be that the tool I was
using (ncdu) was arbitrarily assigning the space to the first instance it
encountered (and with alt.atheism sorting near the top of the group list, that
seems plausible).

>> - Since a tradspool article is hardlinked into every newsgroup it is
>>   posted to, how does -e even know where to remove it from?  Same for
>>   ctlinnd cancel and such.  It would have to rm/unlink it from multiple
>>   places if crossposted.
>
> It uses the Xref header of the article to find all the groups to which it
> was posted.  It has to retrieve that anyway to know what expiration rules
> to apply.  This is why although the standard doesn't require it, INN
> requires the Xref header be present in the overview database.

Ahhhh.  That makes sense.

>> - Part of the reason I picked tradspool was to have more fine-grained
>>   control over expiry.  I had thought that it would simply unlink a
>>   crossposted article from any group whose rules would expire it.  It
>>   sounds like it's all-or-nothing, and perhaps -k is the default.
>
> I forget why we don't do that.  I think it's because the links aren't
> always hard links; sometimes they're symlinks and in that case you can't
> just delete the article out of each group independently?  But I'm not
> really sure.

I've been wondering of I could use different storage classes to solve this
problem.  Or maybe that would introduce more; I've never had more than one
storage class before.

What is the mechanism when an article is crossposted into groups that are in
different classes?  Is it safe to use tradspool for multiple classes?  (I think
it is, given the example in the manpage of timehash for multiple classes)  I
imagine that in the case where an article is crossposted to multiple classes
using different storage methods, it would either have to be duplicated into all
of them, or somehow everything will need to know where to find it (implying that
cnfs rolling expiry may hold some surprises for some messages that are
crossposted outside of cnfs).

Can one move groups between classes if the storage method is the same?  (I note
the warning "arbitrary but permanent" and am not sure how it might apply here.)

Thanks again,

John
Technical Details
Message-ID: <slrnuqeo9o.borl.jgoerzen@slrnh.complete.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> <8734uw4qs3.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnuqeo9o.borl.jgoerzen@slrnh.complete.org>
Subject: Re: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk)
Date: Wed, 17 Jan 2024 05:10:16 +0000
From: John Goerzen <jgoerzen@complete.org>
References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> <8734uw4qs3.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Alexandria NNCP news system
Injection-Date: Wed, 17 Jan 2024 05:10:16 -0000 (UTC)
Injection-Info: alexnews.alexandria.complete.org; logging-data="158998"; mail-complaints-to="jgoerzen@complete.org"
User-Agent: slrn/1.0.3 (Linux)