Re: [mlmmj] Patches wanted for hashing/nesting archive directory (1M+ mails in list)

Chris Knadle <[email protected]>
Newsgroups org.mlmmj.mlmmj
Message-ID <[email protected]>
Robin H. Johnson:
> (Sorry for the lag, busy month so far)
> 
> On Mon, Oct 01, 2018 at 02:45:00AM +0000, Chris Knadle wrote:
>> Robin H. Johnson:
>>> One of the larger gentoo.org lists recently passed 1M mails, and while
>>> performance hasn't taken a noticeable hit, doing admin ops in such large
>>> directories is painful.
>> Mmm. Yeah that's a lot for one directory.
>>
>>> Has anybody started on patches to use a nested directory structure for
>>> archive? Ideally something that supports cleanly migrating from the old
>>> flat layout.
>> Not that I know of, but I think there's a reason.
>>
>> Mlmmj doesn't include a "web archiver", so I think the only reason to keep old
>> archives in the same directory is for getting previous messages from the list
>> via email by sending mail to <listname>-get-N@<list-domain-name> where N is the
>> number of the desired message.  It's very unlikely that a user would want to use
>> this to retrieve very many messages.
>
> Isn't the archive directory also used in the delayed/retry delivery
> cases? (I need to check the moderation cases as well).

I think no; I believe the /queue, /requeue, and /bounce directories for the
particular mailing list are used for that.  (I haven't examined the code.)

> The get-N functionality does get usage in Gentoo, as we document it in
> counterpart to the 'you missed some mail because your address was
> bouncing'
> 
> For web-archiving, we do it entirely outside of mlmmj (subscribe the
> archiver to the list, use get-N for missing mail, profit).

If I were in the position of dealing with the mail archives, what I would want
to do is to leave about 3 months of archives within MLMMJ to allow get-N mail
retrieval, and the rest of the archives broken up into sub-directories by month,
i.e "2018-08", and work out some method of having the web archives updated as
new mail comes in, and then figure out how to deal with the file move transition
for the months that the raw mail archives moved into sub-directories.

MLMMJ only needs a file with the unique message number to retrieve the message,
so I understand your suggestion for allowing nesting of archives within
subdirectories.  However I also realize that would come with a cost -- there'd
be some I/O performance impact for the search if an archive file was not
immediatly in /archive directly.
Still ... I like the idea.  It seems like a logical thing I'd want.

Another thought I had was that it's also possible to make soft-links within
/archive to point to /archive/<subdirectory> mails.  This wouldn't help with the
number of files in /archive because that wouldn't change, but an administrator
looking within /archive could see which messages were new (i.e. which ones were
actual files) rather than old (softlinks).

  -- Chris

-- 
Chris Knadle
[email protected]
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEe1KzyGmRW/4DhtV6ieLKD9m6RHAFAlvdFLgACgkQieLKD9m6
RHC/yg//Y9nXRovB1/RCFc5mbEJQ40/cu/JrrFYSoZ5+LM8bRK+MubHSUnsQArJE
J8B6iAc0fA+nfEM95yp/6TMTlWPQsjQejBpFeqXtNs2HMjn50ip9ru27lPhMwTCn
jv6P1AoFcumPY1itIIjJNezQMeGG+y7NBhLK8vd0dI4fT0wsSSre/CvbIFVwz/XI
qESQpbisHtUHn8MOjiXynRl1d0gEnT9x1SVBnqTYc0FHRLf8mnKONg/CqDOeDJ8Y
2CVE96CsvMJSYGm3lZtgmBKN9PyuSkoPjCGsid//nH+z8QECj4QZ7GWRkIb8a4JU
YpRgrrZ0mT90IYJB8IH09FUWrvgbAOhmeiKvRxVPRlXOIa3mQCKmZg1PWcWKFyNJ
U5Ln0NiIyTu3WKIE72I4uKYNLLOpMhmeV3/Jp6pcIz1FHcl0gMmQQHU0bHlihdcv
i/h0DxwShEkW2cBNbDstKYbS9IqT47kNBS/QijsIhP+1zHwCWq76OI+QdyOm9Lm3
3o01at1zmW2Zb/8uEQHtfm5O+XOXCaCp5RsfYyUpgT5oZc4ikmBROT4z6FuiFBhX
FBsDxq71PTGciLdz1lZLRr3dIztkqdAOXRz3H8JaAai/jy9xnHEuTogQXiin84h2
xnMY5WCUa3v16tF7r2k21kqfyZDldloybpl0G0r3z+gz2eNIj6E=
=E7Xk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.