Custom processing of videos and GIFs

Masto.host server resources are shared between Mastodon servers. This offers some optimisation in terms of resource usage for concurrent active users, as people access at different times and peak active users per Mastodon server is very different depending on the location of most of its users. Still, the sharing of resources also causes a problem in terms of federation. When … Read More

Sidekiq and Web limits

Both Sidekiq and Web limits only limit the concurrency, meaning how much “work” they can do simultaneously. As an example, a limit of 2 Sidekiq threads will only allow at any given time a maximum of 2 Sidekiq jobs to be running. The same goes for the Web process but the Web process allows for multiple workers. In theory a … Read More

I had to block some external instances

There is a bug that in a very specific situation, instances running version 2.3.x (not sure if others) can get a stuck Sidekiq request to /users/___username___/collections/featured This causes an endless loop of that request and could bring my servers to an halt. So, I had to make the decision to block several instances that were causing a massive amount of … Read More

Mastodon PgBouncer Guide

I did some changes to the initial commit by Nolan to the documentation of Mastodon PgBouncer Guide. As my pull request is still waiting to be approved, I leave it also here because I had some trouble to get it to work with the instructions that were initially shared. Installing PgBouncer On Ubuntu/Debian: sudo apt install pgbouncer Then: nano /etc/default/pgbouncer … Read More