Article View: news.software.nntp
Article #91448Re: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk)
From: Russ Allbery
Date: Wed, 17 Jan 2024 05:34
Date: Wed, 17 Jan 2024 05:34
75 lines
4150 bytes
4150 bytes
John Goerzen <jgoerzen@complete.org> writes:
> 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.
Correct. An article has one and only one history entry, which is only
dropped after it has expired completely *and* its Date header is older
than the history retention cutoff.
> - 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.
Yup, I think that's correct.
> 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.
Also correct.
> 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.
Yes, indeed. This may be what you want for your expiration configuration.
>> 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.
Oh, that's an interesting question. My first instinct is that tradspool
doesn't care about the storage classes at all (it predates them), just
whether the article is stored in a tradspool class, so I don't think this
would change behavior, but the class goes into the token, so maybe this
isn't correct.
> What is the mechanism when an article is crossposted into groups that
> are in different classes?
Whichever rule matches the article first takes ownership of the article
and the remaining rules are ignored. So one article is always stored in
one and only one storage class.
This is the technique I used to control disk space usage long ago when I
was running servers for other people. I sent the high-volume groups (and
thus also all the articles crossposted to them) into CNFS and let them
autoexpire, and only used tradspool for the lower volume groups.
I think you need different storage backends to pull this off, though. I
don't think making multiple storage classes and assigning them all to
tradspool will do anything.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87r0ig34lm.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-mailReferences:
<slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> <8734uw4qs3.fsf@hope.eyrie.org> <slrnuqeo9o.borl.jgoerzen@slrnh.complete.org>Show Full Headers
Complete Article Headers
Message-ID: <87r0ig34lm.fsf@hope.eyrie.org> Subject: Re: tradspool and crosspost expiry (was Re: INN expiring from overview but not history or disk) Date: Tue, 16 Jan 2024 21:34:45 -0800 From: Russ Allbery <eagle@eyrie.org> References: <slrnuqdfcq.9bhe.jgoerzen@slrnh.complete.org> <slrnuqebiq.borl.jgoerzen@slrnh.complete.org> <8734uw4qs3.fsf@hope.eyrie.org> <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 Newsgroups: news.software.nntp Organization: The Eyrie Mime-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="6672"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:5DnAuzwuDJNjYi7lca7bHvrwdBY= Lines: 74