I have seen substantial increase in CPU usage since upgrading this weekend. The CPU usage of RUBY appears to be the primary driver. This was referenced by another discourse user in this topic.
As you can see from the graphs below, CPU usage and load pre-upgrade were much lower than post-upgrade. The upgrade occurred on the evening of 1/31.
In 33 hours, there is a significant ruby CPU usage. Based on the top data, I have seen 2x CPU usage in the last 33 hours over 22 days. In 33 hours, I have seen 11 hours of CPU time. (648 minutes of CPU time across 5 PIDs)
Additional Data:
Traffic has been down over the last two days by about 10%. (analytics and dashboard)
Standard single container discourse install (no-chat)
Sidekiq queues are minimal (1K to 2K per day)
Nothing seems unusual in the discourse logs
I run on a DO server with 8GB RAM and 2 AMD vCPUs.
This isn’t the case where the server is down critical, but servers that run at 5% to 7% are much happier than those that run at 25%.
What info can I provide to assist in troubleshooting this issue?
Lets leave this in support for a bit till we determine if there is a bug.
Can you enter the container and run an htop from the inside (you will have to install it) that way you will be able to tell which specific process is consuming high amounts of cpu.
Yes, it resolved the high CPU issue. My 1-minute and 5-minute load is about 1/3 of the previous values. That is with htop and netdata now running on the system.