Closed niker closed 4 weeks ago
OS: Synology Docker Yacht version: Unsure (I didn't have it installed long enough to get the info) Docker Containers: 28
I also experienced this behavior today, 6/27/2024. The Synology Resource monitor was showing the CPU at a constant 80% utilization (with no major tasks running). As @niker mentioned I discovered the uvicorn process was using the CPU 40% of the time, I then stopped the Yacht docker container (as I had just installed it) to see if it was causing the issue. After stopping the Yacht container the CPU utilization went back down to normal around 10% (@idle).
Describe the bug I have 19 docker containers running on my machine and yesterday I thought I got hacked and someone installed a cryptominer background process. After some detective work I discovered the 30-80% CPU usage is caused by process /usr/bin/python3 /usr/bin/uvicorn which is running under Yacht. And the very dashboard I was using to diagnose the issue was causing the massive load. This load is present even if the dashboard is not the active page which is confusing. The dashboard also seems to load in 3 separate stages, as if the command times out and the rest is fetched on second/third try.
To Reproduce
Expected behavior Not sure if this is a bug or inefficiency in the polling process but suffice to say portainer barely uses any CPU time in comparison. Maybe the polling rate could be slowed down by configuration and the dashboard hardly needs refreshing when it's not an active page or yacht is not the active browser tab.
Screenshots![obrazek](https://user-images.githubusercontent.com/1288463/215575380-5e15da9d-cccc-472a-98b0-dd8e5f3449c0.png)
Desktop: