I noticed that the vanilla mastodon server uses Ruby on Rails; and they picked Puma as their rack server which is a poor choice. I experimented by setting up a VM with
Deployment Setup for JRuby Rails App with Puma, Mina, and Moni
Rails5のpumaをsystemdで起動するメモ #Rails - Qiita
Deploy rails application with Mina, Nginx and Puma | by Alex Barashkov | Pixel Point | Medium
puma/rails/capistrano】pumactl stderr: bash: bundle: command not found とかで、deployできない - hamayuzinの日記
How to access Ruby web server such as WEBrick or Puma (Rails framework) from other computers on LAN | Eric's playground
Capistranoでpuma.sockが作成されない(Puma not running)
Ruby on Rails in 2022 • Tarn Aeluin
ruby on rails - Puma won't keep listening after initialization - Stack Overflow