High CPU Usage of RDS for PostgreSQL Instances
If the CPU usage is high or close to 100% on your RDS for PostgreSQL instance, data read/write processing and network connection will slow down and errors will be reported when you delete data. Your workload will be affected.
Solution
Analyze slow SQL logs and CPU usage to locate and optimize slow queries.
- View the slow SQL logs to check for slowly executed SQL queries and view their performance characteristics (if any) to locate the cause.
For details on viewing RDS for PostgreSQL logs, see Querying Slow Query Logs.
- View the CPU usage of your RDS instance to facilitate problem locating.
For details, see Monitoring by Cloud Eye.
- Create read replicas to reduce read pressure on primary instances.
- Add indexes for associated fields in multi-table join queries.
- Do not use the SELECT * statement for full table scans. Instead, specify the fields you need or add the WHERE clause.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot