Setting up Postgres 18 on Ubuntu 26.04 for Mastodon (Draft)
Install packages xxx
Install packages xxx
Notice: Mastodon requires two kinds of cache. Sidekiq queues and home feeds, and the rails cache.Large instances should consider running two or even separate Redis servers. Working from https://docs.joinmastodon.org/admin/scaling/ Mastodon Server: maxmemory-policy: noeviction and appendonly yes, appendfsync everysec because we want to save the state.Cache Server: `maxmemory-policy: allkeys-lru and save […]
Notes: Prepare system Install package Notice output Edit /etc/elasticsearch/jvm.options.d/heap.options Add about 50% of the memory for the JVM and the other 50% for the Apache Lucene (full text search) and OS cache.Both values should be the same… last time I checked, having a lower minimum caused a hard error starting […]
This is going to assume the new version is 18, and the database is called mastodon_production. Migration Stages Check Postgres pg_extension (Repack and other extensions) You can check if you used other extensions using this SQL on the old DB. NEWDB: New Cluster sudo pg_createcluster 18 techhubproduction -d /data/18/techhubproduction — […]
With the release of Ubuntu 26.04 LTS, I’ve started to rebuild some of my VMs from 24.04 and took the opportunity to polish the proxmox VM settings. Proxmox: VM CPU Tuning Notice: The details below are about my AMD EYPC Server CPUs, but for proxmox environments with only Intel or […]
Let’s answer the question… Is co-location right for you? Over 12 months ago, I made the switch from cloud VMs to dedicated co-location hosting a Proxmox cluster, and it turned out to be one of the best decisions for my specific needs. This move has allowed me to maintain predictable […]
There was a 24 hour window of submission for the Social Media Minimal Age bill.. and I decided to write something straight to the point. https://www.aph.gov.au/Parliamentary_Business/Committees/Senate/Environment_and_Communications/SocialMediaMinimumAge
TLDR: CHECKING YOUR WEB/PUMA LOGS AND SIDEKIQ DEAD QUEUE FOR S3 ReadTimeout ERRORS FOR FUN AND PROFIT!!! I recently started investigating the high bandwidth being used by my Mastodon instance, and noticed a lot of errors (similar to below) showing failures related to uploading files to my S3 provider Wasabi. […]
This should federate to Mastodon.