RDS Aurora problem engine 5.7.mysql_aurora.2.11.2

0

Yesterday, I upgraded my three RDS instances to utilize engine 5.7.mysql_aurora.2.11.2. However, I have noticed a decrease in performance. After monitoring it for a day, I observed a discrepancy between the performance before and after the upgrade. Presently, our application is experiencing slowness. Could you kindly assist me with this matter as we have not made any modifications to our application code?

same as this: https://serverfault.com/questions/1132187/issues-with-aws-aurora-mysql-engine-version-5-7-mysql-aurora-2-10-3

3개 답변
0
수락된 답변

UPDATE!!!

After delete this aurora 5.7 engine 2.11.2 then create new aurora 5.7 engine.2.07.0

" PROBLEM SOLVED "

답변함 일 년 전
profile picture
전문가
검토됨 3달 전
  • Now. They force me to upgrade before June 1 (or they will upgrade for you automatically). Yesterday I upgraded from version 2.0x.x to 2.11.4

    My aurora rds performance dropped so much. How can I solve this?

0

After any version upgrade it is expected that a query gives different performance, especially for major engine upgrade as the execution plan might have changed after an upgrade.

To rule out the possibility of an increased workload on the instance after the upgrade you can analyse the cloudwatch metrics on your Aurora instance.

You can refer to the doc below on monitoring Amazon RDS metrics with Amazon CloudWatch

[+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/monitoring-cloudwatch.html

If there is no increase in the workload on the instance, then you can analyse the workload on your Aurora instance using performance insights and filter the load by top waits, SQL statements, hosts, or users. Additionally, you can enable slow query logs for your DB instance with preferable output as File, for tracking long queries executed in your Aurora instance. With parameter 'long_query_time' you can specify the time in seconds for queries to be considered slow and therefore be logged.

You can refer to the doc below on monitoring DB load with Performance Insights on Amazon RDS:-

[+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html

Additionally, you can refer to the doc below for info on Aurora MySQL slow query logs:-


[+] https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.MySQL.LogFileSize.html#USER_LogAccess.MySQL.Generallog

Once you identify the slow queries from performance insights and slow query logs, you can check the query execution plan in older and the newer version and compare them to know which step is taking more time, you can use Profiler and based on that optimise the query.

You can consider the information given below for query optimisation:-

  1. You can run explain command if it is a select query. This will show you the individual steps involved in query execution. You may also want to consider running a check of the queries being executed by sessions that are active and run an “explain” command on them. This will tell you if you are doing full table scans or using a bad index.

Reference link: https://dev.mysql.com/doc/refman/5.7/en/explain.html

  1. Moreover, if you want to know how long a query normally runs for, after having the query, you may use profiling to measure it when it is not blocked, a quick example:



SET profiling = 1;
 select/insert/update/delete ....    <------ run your query here
 SHOW PROFILES;  <------ find the id for above query
 SHOW PROFILE FOR QUERY #;   To disable it: SET profiling = 0;

The SHOW PROFILE and SHOW PROFILES statements will display you the profiling information that indicates resource usage for statements executed during the course of the current session.

Reference Link: https://dev.mysql.com/doc/refman/8.0/en/show-profile.html



  1. ANALYZE : Refresh the metadata statistics for the tables, that will optimize the execution plan with the current data

[+] https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html

  1.  OPTIMIZE : Refresh the statistics, rebuild the indexes and defragment the tablespace to improve read times and reclaim unused space

[+] https://dev.mysql.com/doc/refman/8.0/en/optimize-table.html

If you still face any issues, please reach out to AWS Support via a case so that they can help you after checking your resources

AWS
지원 엔지니어
답변함 일 년 전
0

Enter image description here

This QUERY "gives different performance" and I can't do anything about it.

답변함 일 년 전

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

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

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

관련 콘텐츠