[英]Azure Database for PostgreSQL server is displaying 100% CPU utilization
Azure Database for the PostgreSQL server is displaying 100% CPU utilization every day from 10 AM to 12 PM. Azure PostgreSQL 服务器的数据库每天从上午 10 点到下午 12 点显示 100% 的 CPU 利用率。 The load on the server is minimal when this is happening.
发生这种情况时,服务器上的负载是最小的。 Did anyone face the same issue?
有没有人面临同样的问题? What could be the probable cause for this to happen?
发生这种情况的可能原因是什么?
Attached a screenshot of the CPU usage for 3 days (below are the observations).附上 3 天 CPU 使用率的截图(以下是观察结果)。
Check your long running queries to understand what is causing high processing time and update your database tables Statistics regularly by using the “Analyze” command.检查您长时间运行的查询以了解导致高处理时间的原因,并使用“分析”命令定期更新您的数据库表统计信息。
If you maxed out CPU, scaling up your server by increasing the number of vCores is a good approach to enlarge your resources to be able to accommodate your workload.如果您用尽了 CPU,则通过增加 vCore 的数量来扩展服务器是扩大资源以适应工作负载的好方法。
Enable Azure PostgreSQL Query Store to be able to view your long running queries:启用 Azure PostgreSQL 查询存储,以便能够查看您长时间运行的查询:
https://docs.microsoft.com/en-us/azure/postgresql/concepts-query-store https://docs.microsoft.com/en-us/azure/postgresql/concepts-query-store
Also please follow this quick tips for PostgreSQL也请遵循 PostgreSQL 的快速提示
https://techcommunity.microsoft.com/t5/Azure-Database-Support-Blog/Azure-Database-for-PostgreSQL-performance-Quick-Tips/ba-p/369125 https://techcommunity.microsoft.com/t5/Azure-Database-Support-Blog/Azure-Database-for-PostgreSQL-performance-Quick-Tips/ba-p/369125
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.