Mysql performance analysis

0

Hello all,

Its aurora mysql database. At one specific time we see high resource/ACU utilization and from the dashboard and its showing the the top consumer processes in descending fashion too. Now want to understand , how can we further dig into the top resource consuming process/queries and find the exact point where we have to fix things?

I understand "explain analyze" will give the detail execution of the query along with where the majority of resource getting spent . Want to understand if that is the only option we have ? (For e.g. like if something which shows the resource spent on the exact line of the execution path for full scan, sorting, joins etc. , so as to take necessary action).

In Oracle we used to have Performance views which holds real time execution report of the queries/procedures and shows the exact line in the execution path which is contributing majority of the resource. Also views to hold entries of the sample historical executions, to see where(which line in the execution plan) the query spent most of the time. Do we have such things available in Aurora mysql?

Veem
已提問 5 個月前檢視次數 204 次
1 個回答
0

First of all I recommend turn on the performance insight. Aurora provides CloudWatch metrics on wait events, query patterns and top resource consumers. The Performance Insights dashboard integrates this which can help identify top queries. Also the Performance Schema tables in MySQL provide runtime performance metrics on queries, statements and stages that you can analyze. This is similar to Oracle performance views. Last you can enable the slow query log to capture execution details over time. The log files or log tables can then be analyzed separately. I hope this would help you.

AWS
Regina
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南