πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92008

Re: Switching INN 2 storage format

#92008
From: Tanguy Ortolo
Date: Mon, 17 Feb 2025 15:14
31 lines
2567 bytes
Julien Γ‰LIE, 2025-02-14 20:55+0100:
> If you are looking for a news storage format writing one article per 
> file, either timehash or tradspool could be used.

I got that already. I was considering timehash for performance reasons,
but your insight eventually convinced me of using traspool. The simpler,
the better. My time is more valuable than my CPU's time. ;-)

Plus it will allow me to easily do some basic stats about article size
and filesystem usage.

>> As I understand it, switching storage format for /new/ articles can
>> simply be done by simply adding the new storage backend in first
>> position in storage.conf, can it not?
> 
> Exactly.  The first matching class found in the storage.conf file is 
> used.  You'll have to restart innd to take the modified file into account.

Thanks for confirming. Of course I restarted innd, I never imagined such
a change could be applied without restarting.

> There is a program named "respool" in the contrib directory 
> <https://github.com/InterNetNews/inn/blob/main/contrib/respool.c> but I 
> have never used it so I do not know whether it works fine.  Use at your 
> own risk!  :-)

Or not use at all. Keeping existing articles in timecaf is good enough,
that worked for years after all. :-)

-- 
Tanguy
Technical Details
Message-ID: <vovjpg$bria$1@herbert.ortolo.eu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fdn.fr!news.ortolo.eu!.POSTED.localhost!not-for-mail
References: <vofpbq$pmf$1@herbert.ortolo.eu> <voo745$5sgj$2@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <vovjpg$bria$1@herbert.ortolo.eu>
Subject: Re: Switching INN 2 storage format
Date: Mon, 17 Feb 2025 15:14:56 +0000
From: Tanguy Ortolo <tanguy@ortolo.eu>
References: <vofpbq$pmf$1@herbert.ortolo.eu> <voo745$5sgj$2@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fdn.fr!news.ortolo.eu!.POSTED.localhost!not-for-mail
Newsgroups: news.software.nntp
Supersedes: <vouuop$bbfg$3@herbert.ortolo.eu>
Sender: tanguy@localhost
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Feb 2025 15:14:56 -0000 (UTC)
Injection-Info: herbert.ortolo.eu; posting-account="tanguy"; posting-host="localhost:::1";
 logging-data="388682"; mail-complaints-to="usenet@ortolo.eu"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.12.9+bpo-amd64 (x86_64))
Cancel-Key: sha1:wHWQ9zYICigZQdpGct2CvtwBa9U=
Cancel-Lock: sha1:PFLigfXYx59cjEa8/S85cni6Vq4=