Reducing CPU usage for a small Mastodon instance
-
Hi all. I'm a relatively new instance admin. My instance is running on Linode using a Cloudron app install. I noticed that my CPU usage is consistently pretty high. I only have two users on the instance so this seems to be as a result of a poor configuration on my part.
My server has 4 cores, 8GB of RAM. Can anyone recommend ways to make my instance more efficient. I'm also a little new to resource management, so I'll appreciate somewhat specific suggestions.
-
@pauljacobson I would check which process is consuming to much CPU. If you ssh into the server and run
top
, what do you see? -
@girish Hi there. I did some digging, and it looks like the main culprit was a Mail service running in the Docker container. It was running consistently at 100% CPU usage. I stopped that process and this seems to have dropped my overall CPU usage.
Thanks for getting back to me about this!
-
@pauljacobson ah yes, the fix for haraka is coming. I recently submitted a patch upstream for this which has now been merged - https://github.com/haraka/Haraka/pull/3104 .