-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres high CPU usage #68
Comments
It seems not to be traffic related. The number of requests:
|
Looks like complex queries, eg:
|
We should either asks IT for more CPU or add some limits on the postgres container, see main...postgres-cpu-mem-limit or both. |
Query or database optimizations would probably require going very much under the hood of Strapi, since we don't work with the DB directly, but use the Strapi REST API. I think a good first measure would be setting limits on the Postgres container. If users complain about performance, we can still look into increasing CPUs. |
During the high usage of CPUs (around 11:30 until 14:15 as depicted in vcenter) i didn't noticed any performance issues in the system as a logged in user. But i only viewed some records, no edits or other actions. |
Maybe worth a look: https://strapi.io/blog/caching-in-strapi-with-rest-cache-plugin |
I think the main use case these queries are produced for are lookups. That's why'd I'd assume caching won't help much here, but a good thing to keep in mind in case we have performance issues in the future. |
CPU usage at nearly 100% again from |
From monit alert:
postgres processes on production server, sorted by CPU usage:
Docker Stats:
See also statistics in our internal vcenter.
The text was updated successfully, but these errors were encountered: