The user Jose_C_Gomez is trying to free up space on their self-hosted Discourse server, which is running in mailing list mode and generates 2GB of email logs monthly. Despite setting the delete email logs after days option to 30, the logs remain large. Falco explains that the setting already handles log deletion, suggesting reducing it to 15 or 10 days. Jose_C_Gomez notes that upgrading PostgreSQL requires double the current storage space, which is a barrier. pfaffman clarifies the upgrade process and suggests adding storage via a new server or disk partition. Jose_C_Gomez suspects email activity is causing performance issues, with the server slowing down during high-traffic topics. pfaffman recommends increasing RAM and adding Sidekiq jobs, noting the current setup has 17GB of DB and 3GB of RAM. tobiaseigen suggests relying more on offsite backups to reduce local storage needs.
Just wondering if there is a supported way to clean this up? I saw a few posts about clearing the email_log table but that can have some repercussion in usability?
Is there a more appropriate place to clean up? I have trimmed our backups down to 1 and that helped. But I need to recoup several gigs.
I am trying to get my storage upgraded but at the moment that isn’t a choice I can easily make.
Any other areas where I can clean up? I have done apt-get autoremove, and autopurge and launcher clean
So I currently have 26GB free which is great, however I’m still ruinning the old PostGre version. Have been having Perf issues lately so I really want to upgrade PostGre but it requires “double” the storage space to do that.
I’ve been limping along with the old one, but I was hoping to get upgraded. I need like a couple of gigs to meet the “double” threshold required by postgre for upgrade.
Been running the 9.5 postgre template for like 6 months trying to find space… because of the nutty double space requirement. But lately my discourse slows to a crawl for no apparent reason, I don’t know what the issue is but I was hoping to eliminate that as an option by upgrading
sigh
I’m leaning towards something to do with email. We send out a LOT of email and it seems like when we have a very active topic that’s when sh*t hits the fan.
But I haven’t been able to figure out where the bottle neck is. Usually I end up doing an app rebuild , reboot and it settles out.
But within a few days it does it again. I know this is somewhat unrelated to the OP but if anyone has an idea… I’d love some thoughts.