Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Invent 2018

298 views

Published on

Amazon Aurora offers several options for monitoring and optimizing MySQL database performance. These include Enhanced Monitoring and Performance Insights, an easy-to-use tool for assessing the load on your database and identifying slow-performing queries. In this session, learn how to tune the performance of your Aurora database with MySQL compatibility, whether your application is in development or in production.

  • Be the first to comment

Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Invent 2018

  1. 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Performance Insights to Optimize Database Performance Phil Intihar Marc Reilly Database Engineers Amazon RDS D A T 4 2 9
  2. 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Amazon Aurora MySQL Performance Tuning Overview of Performance Insights and Enhance Monitoring Q&A
  3. 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  4. 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is Amazon RDS Performance Insights? Customers asked for • Visibility into performance of Amazon Relational Database Service (Amazon RDS) databases • Want to optimize cloud database workloads • Easy tool • Often only part-time DBA or no DBA • Single pane of glass
  5. 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Released 2016 • OS metrics • Process/Thread list • Up to 1 second granularity First step: Amazon RDS Enhanced Monitoring
  6. 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Insights dashboard
  7. 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • All engines have a connections list showing • Active • Idle • We sample every second • For each active session, collect • SQL • State: CPU, I/O, lock, commit log wait, and more • Host • User • Expose as “average active sessions” (AAS) What is “database load”?
  8. 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AAS rules: Using CPU count as yardstick  AAS < 1 Database is not blocked  AAS ~= 0 Database basically idle Problems are in the APP not DB  AAS < # of CPUs CPU available Are any single sessions 100% active? • AAS > # of CPUs Could have performance problems  AAS >> # of CPUS There is a bottleneck
  9. 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Accessing Performance Insights
  10. 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  11. 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CPU bottleneck Bottleneck
  12. 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Customer use case: CPU bottleneck Wait States
  13. 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  14. 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Wait bottleneck
  15. 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  16. 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Other dimensions
  17. 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Top host by SQL statement
  18. 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is available • Available • Engines • Amazon Aurora PostgreSQL • Amazon Aurora MySQL 5.6 1.17.3 and higher • Amazon RDS Postgres 10 • Amazon RDS MySQL 5.6.41+ and 5.7.22+ • Amazon RDS Oracle • Functionality • DB load chart • Top N table • Wait, user, host, SQL • API/SDK • Long-term data retention • Alerts through Amazon CloudWatch
  19. 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is coming • Available • Engines • Amazon Aurora PostgreSQL • Amazon Aurora MySQL 5.6 1.17.3 and higher • Amazon RDS Postgres 10 • Amazon RDS MySQL 5.6.41+ and 5.7.22+ • Amazon RDS Oracle • Functionality • DB load chart • Top N table • Wait, user, host, SQL • API/SDK • Long-term data retention • Alerts through Amazon CloudWatch • Coming • Engines • Amazon Aurora MySQL 5.7 • Amazon RDS for MariaDB • Amazon RDS SQL server • Functionality • SQL execution plan • SQL stats • OS and DB statistics
  20. 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Summary: Amazon RDS Performance Insights  DB load: Average active sessions  Identifies database bottlenecks  Easy  Powerful  Top SQL  Identifies source of bottleneck  Enables problem discovery  Adjustable time frame  Hour, day, week, and longer  Questions:  rdspi@amazon.com
  21. 21. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Phil Intihar Marc Reilly Amazon RDS
  22. 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

×