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.
-
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!
-
@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 .
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login