Conversation
Fixes excessively high CPU and RAM usage on idling instance
|
After a longer test, the CPU and RAM load are still significantly higher than they were before the update. Seems like restoring changes that were introduced in #13 helps as well, but still nowhere clause the <1% CPU usage it was at before the update Even though it is much less noticeable, the plausible container itself has doubled its CPU usage since the update.
|
|
I let it run for a while, and I confirm the tweaks from #13 helped decrease the CPU usage further For reference, here's a graph showing the last 12 hours of CPU use, with numbers before updating, and after updating + applying the tweaks in this pull request |
Also includes a bunch of smaller optimizations


Fixes excessively high CPU and RAM usage on idling instance
All the following graphs are stacked CPU time / container, and the largest area is the clickhouse server. Spikes are not relevant except for the fact they indicate a restart of the plausible and clickhouse containers.
Upgrading from the latest
composefile from theanalyticsrepo caused the following increase in CPU usage from clickhouseUpgrading clickhouse to the latest version brought it back to a much lower level
Notice how the CPU usage was steadily increasing after I upgraded (even across restarts of the docker container)