Augmenting my Mastodon instance with S3-compatible object storage
Wednesday, December 28th, 2022
I run my nerd.megahuge.com personal Mastodon instance on an inexpensive virtual private server such as the ones you can find via LowendBox.com. The CPU and memory specs are absolutely more than enough to manage a single-user instance, however Mastodon’s cached media files can grow into the tens of gigabytes, even with cron jobs removing any cache over 3 days old and culling accounts on a regular basis.
I found these instructions very useful in helping me to move my Mastodon public/system folder to S3-compatible object storage. Since I have modest needs and the object storage I chose doesn’t charge egress fees, I didn’t go to the extra length of putting an nginx cache/proxy in front of it.
Finally, I installed Restic to back up my entire VPS to a separate S3 bucket. All in all, a couple of hours well spent!
I run my nerd.megahuge.com personal Mastodon instance on an inexpensive virtual private server such as the ones you can find via LowendBox.com. The CPU and memory specs are absolutely more than enough to manage a single-user instance, however Mastodon’s cached media files can grow into the tens of gigabytes, even with cron jobs removing any cache over 3 days old and culling accounts on a regular basis.
I found these instructions very useful in helping me to move my Mastodon public/system folder to S3-compatible object storage. Since I have modest needs and the object storage I chose doesn’t charge egress fees, I didn’t go to the extra length of putting an nginx cache/proxy in front of it.
Finally, I installed Restic to back up my entire VPS to a separate S3 bucket. All in all, a couple of hours well spent!