Postal v3 not cleaning up raw messages #2910
Replies: 2 comments 5 replies
-
The settings page has a retention tab so your first stop should be that page to confirm what the current settings are. I think these are the defaults but I can't remember. I believe that the tables can be deleted manually if you follow the same steps as the code takes postal/lib/postal/message_db/provisioner.rb Lines 114 to 127 in c12f30e |
Beta Was this translation helpful? Give feedback.
-
I've got the same issue I think. I have a bunch of servers on V3 and they're all exhibiting the same behavior. |
Beta Was this translation helpful? Give feedback.
-
Hi guys,
Got alerted today that our Postal installation has used too much space. It turned out that it is not heeding the message retention limits any longer as set: 60 days or 65 GB after the upgrade to Postal v3. Current version used is 3.1.1 but I could not find any mentions in the later Release notes about that topic, so I guess it is a "unplanned feature".
There are still raw-message tables there from January (more than 60 days, but from Postal 2 at that time) and the database has grown to over 127GB.
I am a bit afraid to just go and delete raw-message tables, I noted that their size is (correctly) indexed in raw_message_sizes and referenced also in the message table.
In the scheduled_tasks table there is a task scheduled "ProcessMessageRetentionScheduledTask" for tomorrow (and not some long passed date), so it appears it is getting processed regularly.
Noted also that some of the messages from back in January do not all have status "sent" in the table (some bounced, some processed, some HoldCancelled). Anyways, these emails are not important any longer and can all go.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions