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달 전203회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인