SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Performance Insights to
Optimize Database Performance
Kyle Hailey
Principal Product Manager
Amazon RDS
D A T 4 0 2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
What is Performance Insights?
Sampling
Average active sessions (AAS)
Bottleneck analysis
Exploring Performance Insights
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 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
© 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
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introducing: Performance Insights
• Dashboard
• DB load
• Adjustable timeframe
• Filterable by attribute (SQL, User, Host, Wait)
• SQL causing load
• Phased Amazon RDS delivery
• Amazon Aurora, Amazon RDS for MySQL, PostgreSQL, Oracle, SQL Server, MariaDB
• Guided discovery of performance problems
• For both beginners & experts
• Core metric “database load”
© 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”?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance Insights dashboard
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sampling is like film
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Query run often
Fast query run rarely
Slow query
User 1
User 2
User 3
Time
Sampling every second
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Active session state
idleidle idle idleQuery 1 Query 2 Query 3
Time
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AAS load graph
User 1
User 2
User 3
User 4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AAS load graph
User 1
User 2
User 3
User 4
Active sessions
=
1
2
3
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Active session
Time
User 1
1 2 3 4 5 6 7 8 9 10
Active sessions
1
2
3
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Active session
Time
User 1
User 2
1 2 3 4 5 6 7 8 9 10
Active sessions
1
2
3
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Active session
Time
User 1
User 2
1 2 3 4 5 6 7 8 9 10
Active sessions
1
2
3
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Average active session
Time
User 1
User 2
1 2 3 4 5 6 7 8 9 10
Active sessions
1
2
3
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Average active session
Time
User 1
User 2
User 3
User 4
User 5
User 6
User 7
User 8
User 9
User 10
1 2 3 4 5 6 7 8 9 10
Active sessions
1
2
3
4
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Active session state
idleidle idle idleQuery 1 Query 2 Query 3
Time
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Active session state
Time
CPU IO Wait
idleidle idle idleQuery 1 Query 2 Query 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AAS by session state
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Showing per second samples
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AAS over one minute averages
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AAS compared to max CPU
Max vCPU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 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
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When users say the database is slow …
You prove that it’s not the database
AAS = 0
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Also useful for sizing
• If CPU load significantly less than #vCPU then oversized
• If CPU load Is > #vCPU undersized
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Accessing Performance Insights
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Access to Performance Insights
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Max vCPU
Max
vCPU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CPU bottleneck
Bottleneck
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Customer use case: CPU bottleneck
Wait
States
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CPU bottleneck
CPU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CPU bottleneck
CPU
Load
SQL
with high CPU
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Click and drag
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Zoom in
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Wait bottleneck
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Wait bottleneck
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Other dimensions
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Top host by SQL statement
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance Insights across DB engines
• Performance Insights supports
• Amazon Aurora
• MySQL
• Postgres
• Amazon RDS
• MySQL
• Postgres
• Oracle
• RDS SQL Server and MariaDB forthcoming
• Interface is the same across different engines
• Allows DBA to do performance work across different engines easily
• Dashboard content same
• Only difference is the wait event names, which are engine dependent
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora MySQL—Five users
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora PostgreSQL—Five users
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Oracle—Five users
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
PostgreSQL —Five users
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
MySQL—Five users
© 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 for PostgreSQL 10
• Amazon RDS for MySQL 5.6.41+ and 5.7.22+
• Amazon RDS for Oracle
• Functionality
• DB load chart
• Top N table
• Wait, user, host, SQL
• API/SDK
• Long-term data retention
• Alerts through Amazon CloudWatch
© 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 for PostgreSQL 10
• Amazon RDS for MySQL 5.6.41+ and 5.7.22+
• Amazon RDS for 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 for SQL server
• Functionality
• SQL execution plan
• SQL stats
• OS and DB statistics
© 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
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“With Performance Insights, we have
been able to quickly isolate slow and
underperforming queries.”
Matt Finlayson
Vice President of Engineering
Cloudability
“Not only has [Performance Insights]
saved us a lot of time in diagnosing
queries, it has also helped us lower our
costs. ”
Steve Atherton
CTO
Catalyz
“One of the most valuable tools AWS
provides for Aurora is Performance
Insights. Our DBA uses this dashboard
on a daily basis”
Stephen Sciarini
IT Manager
New Innovations
Before “our diagnostics process was
laborious … With Performance Insights,
we open one tool and quickly and easily
see where we have problems.”
Grant Evans
DBA & AWS Administrator
Enova
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark
Alexa + Performance Insights
New integration between Alexa & Performance
Insights can be your assistant DBA
Uses the Performance Insights API to identify
bottlenecks in Amazon RDS
Get actionable suggestions such as on-demand
scaling, DBA notifications & paging
Go to the Slalom booth (#1438) to see a live demo
and learn more!
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Kyle Hailey
Principal Product Manager
Amazon RDS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

MySQL8.0 SYS スキーマ概要
MySQL8.0 SYS スキーマ概要MySQL8.0 SYS スキーマ概要
MySQL8.0 SYS スキーマ概要
Shinya Sugiyama
 
監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性
監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性
監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性
Ohyama Masanori
 
MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"
MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"
MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"
Kentaro Yoshida
 
人生がときめくAPIテスト自動化 with Karate
人生がときめくAPIテスト自動化 with Karate人生がときめくAPIテスト自動化 with Karate
人生がときめくAPIテスト自動化 with Karate
Takanori Suzuki
 
基礎から学ぶ? EC2マルチキャスト
基礎から学ぶ? EC2マルチキャスト基礎から学ぶ? EC2マルチキャスト
基礎から学ぶ? EC2マルチキャスト
Noritaka Sekiyama
 
MySQL 5.7にやられないためにおぼえておいてほしいこと
MySQL 5.7にやられないためにおぼえておいてほしいことMySQL 5.7にやられないためにおぼえておいてほしいこと
MySQL 5.7にやられないためにおぼえておいてほしいこと
yoku0825
 
AWSからのメール送信
AWSからのメール送信AWSからのメール送信
AWSからのメール送信
Amazon Web Services Japan
 
Oracleからamazon auroraへの移行にむけて
Oracleからamazon auroraへの移行にむけてOracleからamazon auroraへの移行にむけて
Oracleからamazon auroraへの移行にむけて
Yoichi Sai
 
ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来
ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来
ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来
Hiromasa Oka
 
Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...
Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...
Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...
Amazon Web Services
 
Day 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のこと
Day 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のことDay 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のこと
Day 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のこと
Amazon Web Services Japan
 
日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント
日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント
日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント
Amazon Web Services Japan
 
マルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのことマルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのこと
Amazon Web Services Japan
 
20200212 AWS Black Belt Online Seminar AWS Systems Manager
20200212 AWS Black Belt Online Seminar AWS Systems Manager20200212 AWS Black Belt Online Seminar AWS Systems Manager
20200212 AWS Black Belt Online Seminar AWS Systems Manager
Amazon Web Services Japan
 
Secured API Acceleration with Engineers from Amazon CloudFront and Slack
Secured API Acceleration with Engineers from Amazon CloudFront and SlackSecured API Acceleration with Engineers from Amazon CloudFront and Slack
Secured API Acceleration with Engineers from Amazon CloudFront and Slack
Amazon Web Services
 
NY Meetup: Scaling MariaDB with Maxscale
NY Meetup: Scaling MariaDB with MaxscaleNY Meetup: Scaling MariaDB with Maxscale
NY Meetup: Scaling MariaDB with Maxscale
Wagner Bianchi
 
Where狙いのキー、order by狙いのキー
Where狙いのキー、order by狙いのキーWhere狙いのキー、order by狙いのキー
Where狙いのキー、order by狙いのキー
yoku0825
 
はじめての Gatling
はじめての Gatlingはじめての Gatling
はじめての Gatling
Naoya Nakazawa
 
[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト
Takahiro Moteki
 
SQLアンチパターン(インデックスショットガン)
SQLアンチパターン(インデックスショットガン)SQLアンチパターン(インデックスショットガン)
SQLアンチパターン(インデックスショットガン)Tomoaki Uchida
 

What's hot (20)

MySQL8.0 SYS スキーマ概要
MySQL8.0 SYS スキーマ概要MySQL8.0 SYS スキーマ概要
MySQL8.0 SYS スキーマ概要
 
監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性
監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性
監査要件を有するシステムに対する PostgreSQL 導入の課題と可能性
 
MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"
MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"
MySQLと組み合わせて始める全文検索プロダクト"elasticsearch"
 
人生がときめくAPIテスト自動化 with Karate
人生がときめくAPIテスト自動化 with Karate人生がときめくAPIテスト自動化 with Karate
人生がときめくAPIテスト自動化 with Karate
 
基礎から学ぶ? EC2マルチキャスト
基礎から学ぶ? EC2マルチキャスト基礎から学ぶ? EC2マルチキャスト
基礎から学ぶ? EC2マルチキャスト
 
MySQL 5.7にやられないためにおぼえておいてほしいこと
MySQL 5.7にやられないためにおぼえておいてほしいことMySQL 5.7にやられないためにおぼえておいてほしいこと
MySQL 5.7にやられないためにおぼえておいてほしいこと
 
AWSからのメール送信
AWSからのメール送信AWSからのメール送信
AWSからのメール送信
 
Oracleからamazon auroraへの移行にむけて
Oracleからamazon auroraへの移行にむけてOracleからamazon auroraへの移行にむけて
Oracleからamazon auroraへの移行にむけて
 
ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来
ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来
ZOZOTOWNのマルチクラウドへの挑戦と挫折、そして未来
 
Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...
Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...
Amazon DynamoDB Under the Hood: How We Built a Hyper-Scale Database (DAT321) ...
 
Day 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のこと
Day 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のことDay 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のこと
Day 1 with Amazon Web Services - AWSご利用開始時に最低限おさえておきたい10のこと
 
日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント
日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント
日本のお客様におけるAmazon Auroraへの移行・検証事例と技術ポイント
 
マルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのことマルチテナント化で知っておきたいデータベースのこと
マルチテナント化で知っておきたいデータベースのこと
 
20200212 AWS Black Belt Online Seminar AWS Systems Manager
20200212 AWS Black Belt Online Seminar AWS Systems Manager20200212 AWS Black Belt Online Seminar AWS Systems Manager
20200212 AWS Black Belt Online Seminar AWS Systems Manager
 
Secured API Acceleration with Engineers from Amazon CloudFront and Slack
Secured API Acceleration with Engineers from Amazon CloudFront and SlackSecured API Acceleration with Engineers from Amazon CloudFront and Slack
Secured API Acceleration with Engineers from Amazon CloudFront and Slack
 
NY Meetup: Scaling MariaDB with Maxscale
NY Meetup: Scaling MariaDB with MaxscaleNY Meetup: Scaling MariaDB with Maxscale
NY Meetup: Scaling MariaDB with Maxscale
 
Where狙いのキー、order by狙いのキー
Where狙いのキー、order by狙いのキーWhere狙いのキー、order by狙いのキー
Where狙いのキー、order by狙いのキー
 
はじめての Gatling
はじめての Gatlingはじめての Gatling
はじめての Gatling
 
[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト[社内勉強会]ELBとALBと数万スパイク負荷テスト
[社内勉強会]ELBとALBと数万スパイク負荷テスト
 
SQLアンチパターン(インデックスショットガン)
SQLアンチパターン(インデックスショットガン)SQLアンチパターン(インデックスショットガン)
SQLアンチパターン(インデックスショットガン)
 

Similar to Using Performance Insights to Optimize Database Performance (DAT402) - AWS re:Invent 2018

Introducing Performance Insights - Cloud-Based Database Performance Monitorin...
Introducing Performance Insights - Cloud-Based Database Performance Monitorin...Introducing Performance Insights - Cloud-Based Database Performance Monitorin...
Introducing Performance Insights - Cloud-Based Database Performance Monitorin...
Amazon Web Services
 
Performance insights twitch
Performance insights twitchPerformance insights twitch
Performance insights twitch
Kyle Hailey
 
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Amazon Web Services
 
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdfCome scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Amazon Web Services
 
Migrating database to cloud
Migrating database to cloudMigrating database to cloud
Migrating database to cloud
Amazon Web Services
 
Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...
Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...
Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...
Amazon Web Services
 
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon RedshiftBuilding a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
Amazon Web Services
 
Open Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SFOpen Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SF
Amazon Web Services
 
Workshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeWorkshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data Lake
Amazon Web Services
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
Amazon Web Services
 
深入淺出 Amazon Database Migration Service
深入淺出 Amazon Database Migration Service 深入淺出 Amazon Database Migration Service
深入淺出 Amazon Database Migration Service
Amazon Web Services
 
Getting Started with Amazon Database Migration Service
Getting Started with Amazon Database Migration ServiceGetting Started with Amazon Database Migration Service
Getting Started with Amazon Database Migration Service
Amazon Web Services
 
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS DatabasesIVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
Amazon Web Services Japan
 
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
Amazon Web Services
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Amazon Web Services
 
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Amazon Web Services
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Amazon Web Services
 
Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...
Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...
Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...
Amazon Web Services
 
Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...
Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...
Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...
Amazon Web Services
 
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Amazon Web Services
 

Similar to Using Performance Insights to Optimize Database Performance (DAT402) - AWS re:Invent 2018 (20)

Introducing Performance Insights - Cloud-Based Database Performance Monitorin...
Introducing Performance Insights - Cloud-Based Database Performance Monitorin...Introducing Performance Insights - Cloud-Based Database Performance Monitorin...
Introducing Performance Insights - Cloud-Based Database Performance Monitorin...
 
Performance insights twitch
Performance insights twitchPerformance insights twitch
Performance insights twitch
 
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
 
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdfCome scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
 
Migrating database to cloud
Migrating database to cloudMigrating database to cloud
Migrating database to cloud
 
Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...
Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...
Accelerate Database Development and Testing with Amazon Aurora (DAT313) - AWS...
 
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon RedshiftBuilding a Modern Data Warehouse - Deep Dive on Amazon Redshift
Building a Modern Data Warehouse - Deep Dive on Amazon Redshift
 
Open Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SFOpen Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SF
 
Workshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data LakeWorkshop: Architecting a Serverless Data Lake
Workshop: Architecting a Serverless Data Lake
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
 
深入淺出 Amazon Database Migration Service
深入淺出 Amazon Database Migration Service 深入淺出 Amazon Database Migration Service
深入淺出 Amazon Database Migration Service
 
Getting Started with Amazon Database Migration Service
Getting Started with Amazon Database Migration ServiceGetting Started with Amazon Database Migration Service
Getting Started with Amazon Database Migration Service
 
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS DatabasesIVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
 
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
 
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
Get the Most out of Your Amazon Elasticsearch Service Domain (ANT334-R1) - AW...
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...
Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...
Best Practices for Running SQL Server on Amazon RDS (DAT323) - AWS re:Invent ...
 
Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...
Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...
Modern Cloud Data Warehousing ft. Equinox Fitness Clubs: Optimize Analytics P...
 
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
Lessons Learned from a Large-Scale Legacy Migration with Sysco (STG311) - AWS...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Using Performance Insights to Optimize Database Performance (DAT402) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Performance Insights to Optimize Database Performance Kyle Hailey Principal Product Manager Amazon RDS D A T 4 0 2
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda What is Performance Insights? Sampling Average active sessions (AAS) Bottleneck analysis Exploring Performance Insights
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 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
  • 6. © 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
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introducing: Performance Insights • Dashboard • DB load • Adjustable timeframe • Filterable by attribute (SQL, User, Host, Wait) • SQL causing load • Phased Amazon RDS delivery • Amazon Aurora, Amazon RDS for MySQL, PostgreSQL, Oracle, SQL Server, MariaDB • Guided discovery of performance problems • For both beginners & experts • Core metric “database load”
  • 8. © 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”?
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Insights dashboard
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sampling is like film
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Query run often Fast query run rarely Slow query User 1 User 2 User 3 Time Sampling every second
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Active session state idleidle idle idleQuery 1 Query 2 Query 3 Time
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AAS load graph User 1 User 2 User 3 User 4
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AAS load graph User 1 User 2 User 3 User 4 Active sessions = 1 2 3 4
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Active session Time User 1 1 2 3 4 5 6 7 8 9 10 Active sessions 1 2 3 4
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Active session Time User 1 User 2 1 2 3 4 5 6 7 8 9 10 Active sessions 1 2 3 4
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Active session Time User 1 User 2 1 2 3 4 5 6 7 8 9 10 Active sessions 1 2 3 4
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Average active session Time User 1 User 2 1 2 3 4 5 6 7 8 9 10 Active sessions 1 2 3 4
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Average active session Time User 1 User 2 User 3 User 4 User 5 User 6 User 7 User 8 User 9 User 10 1 2 3 4 5 6 7 8 9 10 Active sessions 1 2 3 4
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Active session state idleidle idle idleQuery 1 Query 2 Query 3 Time
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Active session state Time CPU IO Wait idleidle idle idleQuery 1 Query 2 Query 3
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AAS by session state
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Showing per second samples
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AAS over one minute averages
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AAS compared to max CPU Max vCPU
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 28. © 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
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. When users say the database is slow … You prove that it’s not the database AAS = 0
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Also useful for sizing • If CPU load significantly less than #vCPU then oversized • If CPU load Is > #vCPU undersized
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Accessing Performance Insights
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Access to Performance Insights
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Max vCPU Max vCPU
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CPU bottleneck Bottleneck
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Customer use case: CPU bottleneck Wait States
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CPU bottleneck CPU
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CPU bottleneck CPU Load SQL with high CPU
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Click and drag
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Zoom in
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Wait bottleneck
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Wait bottleneck
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Other dimensions
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Top host by SQL statement
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Insights across DB engines • Performance Insights supports • Amazon Aurora • MySQL • Postgres • Amazon RDS • MySQL • Postgres • Oracle • RDS SQL Server and MariaDB forthcoming • Interface is the same across different engines • Allows DBA to do performance work across different engines easily • Dashboard content same • Only difference is the wait event names, which are engine dependent
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora MySQL—Five users
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Aurora PostgreSQL—Five users
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle—Five users
  • 54. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. PostgreSQL —Five users
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. MySQL—Five users
  • 56. © 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 for PostgreSQL 10 • Amazon RDS for MySQL 5.6.41+ and 5.7.22+ • Amazon RDS for Oracle • Functionality • DB load chart • Top N table • Wait, user, host, SQL • API/SDK • Long-term data retention • Alerts through Amazon CloudWatch
  • 57. © 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 for PostgreSQL 10 • Amazon RDS for MySQL 5.6.41+ and 5.7.22+ • Amazon RDS for 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 for SQL server • Functionality • SQL execution plan • SQL stats • OS and DB statistics
  • 58. © 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
  • 59. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 60. “With Performance Insights, we have been able to quickly isolate slow and underperforming queries.” Matt Finlayson Vice President of Engineering Cloudability
  • 61. “Not only has [Performance Insights] saved us a lot of time in diagnosing queries, it has also helped us lower our costs. ” Steve Atherton CTO Catalyz
  • 62. “One of the most valuable tools AWS provides for Aurora is Performance Insights. Our DBA uses this dashboard on a daily basis” Stephen Sciarini IT Manager New Innovations
  • 63. Before “our diagnostics process was laborious … With Performance Insights, we open one tool and quickly and easily see where we have problems.” Grant Evans DBA & AWS Administrator Enova
  • 64. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Alexa + Performance Insights New integration between Alexa & Performance Insights can be your assistant DBA Uses the Performance Insights API to identify bottlenecks in Amazon RDS Get actionable suggestions such as on-demand scaling, DBA notifications & paging Go to the Slalom booth (#1438) to see a live demo and learn more!
  • 65. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Kyle Hailey Principal Product Manager Amazon RDS
  • 66. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.