SlideShare a Scribd company logo
1 of 14
Download to read offline
Visualize RDS metrics using AWS CLI and JQuery
1
Andreas Ulm <andreas.ulm@root360.de>
Senior Cloud Architect root360 GmbH
AWS Certified Solutions Architect - Associate Level
AWS user group Leipzig – 4.2.2016
System
• Shopware
• webserver in ASG
• RDS (master-slave replication)
• no read-replica
2
Issue
• high request rate on webserver
• Shopware slows down
• 503 HTTP errors due to timeout of PHP
3
Cloudwatch Graphs
• no peak or plateau visible
• no AWS limit seems to be reached
4
Enhanced Monitoring Graphs
• “there is something fishy”
• “I need a bigger timeframe”
5
Enhanced Monitoring Logs
• every collected metric data is in Cloudwatch Logs
• log group name: RDSOSMetrics
• log stream name: <DbiResourceId>
• get by running: “aws rds describe-db-instances --query 'DBInstances[].
[DBInstanceIdentifier,DbiResourceId]'
• json format
• retrieved using “aws logs get-log-events --log-group-name
RDSOSMetrics --log-stream-name <DbiResourceId>”
6
Who can see the issue?
7
Self-made Plotting
• run bash script
• retrieve data
• convert data to valid json
• prepare data for plotting
• open index.html in browser
• load prepared json data
• plot data using flot library
8
Our Graphs
• there is a plateau !!
• AWS limit is reached in disk IO
9
RDS Disk IO
• specified in AWS documentation
• RDS
• EBS
• used IOPS < base IOPS => credits increase
• used IOPS > base IOPS => credits reduced per second
• burst up to 3000 IOPS
• credits = 0 => usable IOPS reduced & limited
10
Solution
• limit active => system very slow
• system need more base IOPS
• either, increase volume size
• 3 IOPS per GB volume size
• max. 3,000 IOPS using volume size >= 1 TB
• or, use provisioned IOPS
• MySQL: 1,000 - 30,000 IOPS
• SQL Server Express: 1,000 - 20,000 IOPS
• we use provisioned IOPS
11
Demo
12
Code
• available on Github: https://github.com/root360/AWS-RDS-
enhanced_monitoring
• license: Unlicense http://unlicense.org/
• use it
• change it
• publish/distribute it
• or don’t ;-)
• feedback: andreas.ulm@root360.de
13
Open Topic
e.g.:
• Questions
• multi account strategies
• RDS vs Aurora (tests, best practice, migration, compatibility)
• SES Limitations
• Server-Monitoring (RAM, CPU, SSD)
• YOUR TOPIC
14

More Related Content

What's hot

What's hot (20)

beSharp a serverless approach to big data on aws
beSharp a serverless approach to big data on awsbeSharp a serverless approach to big data on aws
beSharp a serverless approach to big data on aws
 
Droplr Serverless Revolution - How we killed 50 servers in a year
Droplr Serverless Revolution - How we killed 50 servers in a yearDroplr Serverless Revolution - How we killed 50 servers in a year
Droplr Serverless Revolution - How we killed 50 servers in a year
 
Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2
 
Future of Cloud Starts with Serverless
Future of Cloud Starts with ServerlessFuture of Cloud Starts with Serverless
Future of Cloud Starts with Serverless
 
DevOps in Droplr
DevOps in DroplrDevOps in Droplr
DevOps in Droplr
 
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
 
A Year of Droplr Cloud Architecture Evolution with AWS and Serverless
A Year of Droplr Cloud Architecture Evolution with AWS and ServerlessA Year of Droplr Cloud Architecture Evolution with AWS and Serverless
A Year of Droplr Cloud Architecture Evolution with AWS and Serverless
 
MongoDB on EC2 and EBS
MongoDB on EC2 and EBSMongoDB on EC2 and EBS
MongoDB on EC2 and EBS
 
vBrownBag @ VMworld - Apache CloudStack (ACS) & vSphere
vBrownBag @ VMworld - Apache CloudStack (ACS) & vSpherevBrownBag @ VMworld - Apache CloudStack (ACS) & vSphere
vBrownBag @ VMworld - Apache CloudStack (ACS) & vSphere
 
ECS위에 Log Server 구축하기
ECS위에 Log Server 구축하기ECS위에 Log Server 구축하기
ECS위에 Log Server 구축하기
 
Redis Developers Day 2014 - Redis Labs Talks
Redis Developers Day 2014 - Redis Labs TalksRedis Developers Day 2014 - Redis Labs Talks
Redis Developers Day 2014 - Redis Labs Talks
 
Consolidate MySQL Shards Into Amazon Aurora Using AWS Database Migration Serv...
Consolidate MySQL Shards Into Amazon Aurora Using AWS Database Migration Serv...Consolidate MySQL Shards Into Amazon Aurora Using AWS Database Migration Serv...
Consolidate MySQL Shards Into Amazon Aurora Using AWS Database Migration Serv...
 
Configuration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef AutomateConfiguration Management with AWS OpsWorks for Chef Automate
Configuration Management with AWS OpsWorks for Chef Automate
 
AWS Lambda at JUST EAT
AWS Lambda at JUST EATAWS Lambda at JUST EAT
AWS Lambda at JUST EAT
 
Redis Day Keynote Salvatore Sanfillipo Redis Labs
Redis Day Keynote Salvatore Sanfillipo Redis LabsRedis Day Keynote Salvatore Sanfillipo Redis Labs
Redis Day Keynote Salvatore Sanfillipo Redis Labs
 
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
 
Azure Recovery Services
Azure Recovery ServicesAzure Recovery Services
Azure Recovery Services
 
Artem Zhurbila 4 aws - s3, glacier, cloud front, rds
Artem Zhurbila 4 aws - s3, glacier, cloud front, rdsArtem Zhurbila 4 aws - s3, glacier, cloud front, rds
Artem Zhurbila 4 aws - s3, glacier, cloud front, rds
 
Setup Kubernetes Cluster On AWS Using KOPS
Setup Kubernetes Cluster On AWS Using KOPSSetup Kubernetes Cluster On AWS Using KOPS
Setup Kubernetes Cluster On AWS Using KOPS
 
Using Redis at Facebook
Using Redis at FacebookUsing Redis at Facebook
Using Redis at Facebook
 

Viewers also liked (9)

h.r.diploma
h.r.diplomah.r.diploma
h.r.diploma
 
fall 2013 edition
fall 2013 editionfall 2013 edition
fall 2013 edition
 
Mercy Nompone Resume 2016-9
Mercy Nompone Resume 2016-9Mercy Nompone Resume 2016-9
Mercy Nompone Resume 2016-9
 
High School certificate
High School certificateHigh School certificate
High School certificate
 
3rd february 2016 Forgiveness and grace
3rd february 2016    Forgiveness and grace3rd february 2016    Forgiveness and grace
3rd february 2016 Forgiveness and grace
 
OWAAT Cyprus Launches World's First Greek International Human Rights Self-Hel...
OWAAT Cyprus Launches World's First Greek International Human Rights Self-Hel...OWAAT Cyprus Launches World's First Greek International Human Rights Self-Hel...
OWAAT Cyprus Launches World's First Greek International Human Rights Self-Hel...
 
Mandala grupos y codigos
Mandala grupos y codigosMandala grupos y codigos
Mandala grupos y codigos
 
Appraisal Niches, Scotman Guide 2-2016
Appraisal Niches, Scotman Guide 2-2016Appraisal Niches, Scotman Guide 2-2016
Appraisal Niches, Scotman Guide 2-2016
 
Neighborhood Seen Jan 2016 Article
Neighborhood Seen Jan 2016 ArticleNeighborhood Seen Jan 2016 Article
Neighborhood Seen Jan 2016 Article
 

Similar to Visualization of RDS metrics using AWS CLI and JQuery at AWS Usergroup Leipzig

Training AWS: Module 8 - RDS, Aurora, ElastiCache
Training AWS: Module 8 - RDS, Aurora, ElastiCacheTraining AWS: Module 8 - RDS, Aurora, ElastiCache
Training AWS: Module 8 - RDS, Aurora, ElastiCache
Bùi Quang Lâm
 

Similar to Visualization of RDS metrics using AWS CLI and JQuery at AWS Usergroup Leipzig (20)

Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)
 
Deep Dive RDS & Aurora - Pop-up Loft TLV 2017
Deep Dive RDS & Aurora - Pop-up Loft TLV 2017Deep Dive RDS & Aurora - Pop-up Loft TLV 2017
Deep Dive RDS & Aurora - Pop-up Loft TLV 2017
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database Service
 
Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...
Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...
Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...
 
Enterprise Grade SQL Server Deployments in AWS
Enterprise Grade SQL Server Deployments in AWSEnterprise Grade SQL Server Deployments in AWS
Enterprise Grade SQL Server Deployments in AWS
 
The Enterprise Grade SQL Server Deployments in AWS
The Enterprise Grade SQL Server Deployments in AWSThe Enterprise Grade SQL Server Deployments in AWS
The Enterprise Grade SQL Server Deployments in AWS
 
Log Analysis At Scale
Log Analysis At ScaleLog Analysis At Scale
Log Analysis At Scale
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
 
Scaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit DublinScaling on AWS for the First 10 Million Users at Websummit Dublin
Scaling on AWS for the First 10 Million Users at Websummit Dublin
 
AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)
AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)
AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)
 
Postgres in Amazon RDS
Postgres in Amazon RDSPostgres in Amazon RDS
Postgres in Amazon RDS
 
Big data on aws
Big data on awsBig data on aws
Big data on aws
 
AWS Summit London 2014 | Scaling on AWS for the First 10 Million Users (200)
AWS Summit London 2014 | Scaling on AWS for the First 10 Million Users (200)AWS Summit London 2014 | Scaling on AWS for the First 10 Million Users (200)
AWS Summit London 2014 | Scaling on AWS for the First 10 Million Users (200)
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
 
Webinar - DreamObjects/Ceph Case Study
Webinar - DreamObjects/Ceph Case StudyWebinar - DreamObjects/Ceph Case Study
Webinar - DreamObjects/Ceph Case Study
 
Move your on prem data to a lake in a Lake in Cloud
Move your on prem data to a lake in a Lake in CloudMove your on prem data to a lake in a Lake in Cloud
Move your on prem data to a lake in a Lake in Cloud
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database Service
 
Training AWS: Module 8 - RDS, Aurora, ElastiCache
Training AWS: Module 8 - RDS, Aurora, ElastiCacheTraining AWS: Module 8 - RDS, Aurora, ElastiCache
Training AWS: Module 8 - RDS, Aurora, ElastiCache
 
Deep Dive on Amazon Relational Database Service (November 2016)
Deep Dive on Amazon Relational Database Service (November 2016)Deep Dive on Amazon Relational Database Service (November 2016)
Deep Dive on Amazon Relational Database Service (November 2016)
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 

Visualization of RDS metrics using AWS CLI and JQuery at AWS Usergroup Leipzig

  • 1. Visualize RDS metrics using AWS CLI and JQuery 1 Andreas Ulm <andreas.ulm@root360.de> Senior Cloud Architect root360 GmbH AWS Certified Solutions Architect - Associate Level AWS user group Leipzig – 4.2.2016
  • 2. System • Shopware • webserver in ASG • RDS (master-slave replication) • no read-replica 2
  • 3. Issue • high request rate on webserver • Shopware slows down • 503 HTTP errors due to timeout of PHP 3
  • 4. Cloudwatch Graphs • no peak or plateau visible • no AWS limit seems to be reached 4
  • 5. Enhanced Monitoring Graphs • “there is something fishy” • “I need a bigger timeframe” 5
  • 6. Enhanced Monitoring Logs • every collected metric data is in Cloudwatch Logs • log group name: RDSOSMetrics • log stream name: <DbiResourceId> • get by running: “aws rds describe-db-instances --query 'DBInstances[]. [DBInstanceIdentifier,DbiResourceId]' • json format • retrieved using “aws logs get-log-events --log-group-name RDSOSMetrics --log-stream-name <DbiResourceId>” 6
  • 7. Who can see the issue? 7
  • 8. Self-made Plotting • run bash script • retrieve data • convert data to valid json • prepare data for plotting • open index.html in browser • load prepared json data • plot data using flot library 8
  • 9. Our Graphs • there is a plateau !! • AWS limit is reached in disk IO 9
  • 10. RDS Disk IO • specified in AWS documentation • RDS • EBS • used IOPS < base IOPS => credits increase • used IOPS > base IOPS => credits reduced per second • burst up to 3000 IOPS • credits = 0 => usable IOPS reduced & limited 10
  • 11. Solution • limit active => system very slow • system need more base IOPS • either, increase volume size • 3 IOPS per GB volume size • max. 3,000 IOPS using volume size >= 1 TB • or, use provisioned IOPS • MySQL: 1,000 - 30,000 IOPS • SQL Server Express: 1,000 - 20,000 IOPS • we use provisioned IOPS 11
  • 13. Code • available on Github: https://github.com/root360/AWS-RDS- enhanced_monitoring • license: Unlicense http://unlicense.org/ • use it • change it • publish/distribute it • or don’t ;-) • feedback: andreas.ulm@root360.de 13
  • 14. Open Topic e.g.: • Questions • multi account strategies • RDS vs Aurora (tests, best practice, migration, compatibility) • SES Limitations • Server-Monitoring (RAM, CPU, SSD) • YOUR TOPIC 14