Optimize Mastodon
Just tuned the values of the parameters of Mastodon according the post by Nora Codes.
There is a rule here:
(MAX_THREADS
x WEB_CONCURRENCY
( CPU cores x 1.5 )) + (STREAMING_CLUSTER_NUM
( CPU cores – 1) x DB_POOL
) + (sidekiq
equals to DB_POOL
) < max_connections
The VPS hosting howdee #Mastodon instance has a 4-Core CPU, 8G RAM. The values of the above parameters are:
- MAX_THREADS = 5 # default value
- WEB_CONCURRENCY = 6 # 4 x 1.5
- STREAMINGCLUSTERNUM = 3 # default value, 4 -1
- DB_POOL = sidekiq = 25 # default value
- max_connections = 200 # manual adjustment
Don't know how the changes will effect the Mastodon performance, since there's only 1 user...