mlmmj replication
Hello.
I'm using mlmmj and i'm are very satisfied with mlmmj features, because it's a very greate mailing list system.
My setup have mlmmj with postfix, mariadb and home directory located in /var/spool/mlmmj/.
Now, I want to create HA system. Does mlmmj provides some way of replication?
Thank you for your time and answer.
Signature · 2 lines
Best regards, Rok
Quoted 2 lines · Rok Saksida
Now, I want to create HA system. Does mlmmj provides some way of replication?
As you've probably noticed, mlmmj is a very simple piece of software. It does not provide sophisticates features. You need to build your HA capability yourself.
For my private small server, I have contenerized mlmmj, so I can bring it up on one of two machines, and it connects to an internal bridge using a private IP address, so I don't have to reconfigure postfix, bridge takes care of delivering packets. But the container is only software etc. The run-time data (configuration, state and archive) is mounted form outside the container. Configuration is kept in git with clones on both machines. State (subscribed addresses and message sequence numbers) and archives are copied via rsync in cron. I had not implemented automatic switchover and don't intend to, it is too complicated for my small installation, and postfix will keep messages in its queue until I fire up the container on the other host.
Signature · 1 line
Piotr "Malgond" Auksztulewicz [email protected]
Quoted 9 lines · Piotr Auksztulewicz
Quoted 2 lines · Rok Saksida
Now, I want to create HA system. Does mlmmj provides some way of replication?
As you've probably noticed, mlmmj is a very simple piece of software. It does not provide sophisticates features. You need to build your HA capability yourself.
For my private small server, I have contenerized mlmmj, so I can bring
...
Quoted 1 line
in its queue until I fire up the container on the other host.
How do you intend to handle the case where the failure might be after a mail is delivered, index/sequence has incremented, but before the next rsync cron has fired?
What about rsync scandir time for large archives?
I ask because I'm looking for improving the solutions for Gentoo's deployment of mlmmj, specifically to handle potential hard failures.
The /archives/ directories are my largest concern, the largest of which presently has 1.247M mails in a single directory.
If the /archives/ directory could be sharded, then it would be significantly easier; possibly in conjunction with incron or other inotify-based trigger for targeted replication.
Signature · 5 lines
Robin Hugh Johnson Gentoo Linux: Dev, Infra Lead, Foundation Treasurer E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
Quoted 3 lines · Robin H. Johnson
How do you intend to handle the case where the failure might be after a mail is delivered, index/sequence has incremented, but before the next rsync cron has fired?
I do not at the moment. My installation is small and traffic is very low. I have implemented my 'cluster' mostly to be able to resume operation quickly after a failure, not to have 99.999% availability. If something happens to one of my VPSes, I will just switch to the other and take time to repair or rebuild the broken one. I have described my setup as an example and an inspiration for further work.
Quoted 2 lines
If the /archives/ directory could be sharded, then it would be significantly easier;
It would be a nice feature request/contribution. I started a workaround:
a cron script that will move old archived emails to a different, sharded hierarchy, at the cost of not being able to retrieve old messages by list+get-N functionality, but I abandoned it because I don't get that many emails.
Signature · 1 line
Piotr "Malgond" Auksztulewicz [email protected]