SlideShare a Scribd company logo
1 of 40
Download to read offline
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Greg Khairallah, Business Development Manager
for Big Data and Analytics, AWS
March 19, 2015
Cost and Performance
Optimization in Amazon RDS
Agenda
Instance and Storage Selection
Monitoring
Reserved Instances
Instance and Storage Selection
Instance Selection
• RDS offers a wide range of instance classes
• Instance types differ on CPU, RAM, network
performance, EBS Optimized
• Base selection on
• Performance
• Cost (will differ based on type and region)
• Region (not all instance types available in all regions)
• Engine (not all instance types available for all engines)
• Elastically scale instance size up/down
Instance Selection: Current Generation
Instance Type vCPU Memory (GiB)
PIOPS-Optimized
Network Performance
Standard - Current Generation
db.m3.medium 1 3.75 - Moderate
db.m3.large 2 7.5 - Moderate
db.m3.xlarge 4 15 Yes Moderate
db.m3.2xlarge 8 30 Yes High
Memory optimized - current generation
db.r3.large 2 15 - Moderate
db.r3.xlarge 4 30.5 Yes Moderate
db.r3.2xlarge 8 61 Yes High
db.r3.4xlarge 16 122 Yes High
db.r3.8xlarge 32 244 - 10 Gigabit
Micro instances
db.t2.micro 1 1 - Low to Moderate
db.t2.small 1 2 - Low to Moderate
db.t2.medium 2 4 - Low to Moderate
Instance Selection: Previous Generation
Instance Type vCPU Memory (GiB) PIOPS-Optimized
Network
Performance
Standard - previous generation
db.m1.small 1 1.7 - Low
db.m1.medium 1 3.75 - Moderate
db.m1.large 2 7.5 Yes Moderate
db.m1.xlarge 4 15 Yes High
Memory optimized - previous generation
db.m2.xlarge 2 17.1 - Moderate
db.m2.2xlarge 4 34.2 Yes Moderate
db.m2.4xlarge 8 68.4 Yes High
db.cr1.8xlarge 32 244 - High
Micro instances
db.t1.micro 1 0.613 - Very Low
Instance Selection
• Measure existing application workload
• Use native database engine tools – system tables, Oracle
Enterprise Manager, Statspack, SQL Server Tuning Advisor
• Use CloudWatch metrics
• Test and scale accordingly
What is General Purpose (SSD) Storage
• New EBS Volume Type - SSD Backed / Solid State Drive
• New Default Volume Type on RDS
• Available on all RDS DB Instance types and DB engines in all
Regions
• Flat, Per-Gigabyte Rate. No I/O Charges
• Volume bundles Baseline IOPS
• 1GB : 3 IOPS.
• Scales predictably, linearly, 10:30 ,100:300, 1TB:3K
• Burst Capable Volume
Sizing General Purpose (SSD) volume for
databases
• Calculate your required IOPS needed in steady state
• Provision the GB = (Steady state IOPS) ÷ 3
• For example, customer requiring1500 steady state IOPS
• Provision 1500 ÷ 3 = 500 GB
• IO bursts will support
• Database load or table scan operations
• Spike in IO workload
Provisioned IOPS
• Provisioned IOPS storage is a storage option that delivers fast,
predictable, and consistent throughput performance
• When fast and consistent I/O performance required
• Optimized for I/O intensive, online transaction processing
(OLTP) workloads that have consistent performance
requirements
• Important: Recommended for random reads and writes and not
sequential workloads
Activities that Impact Storage Performance
• Nightly backups
• There is no additional charge for backup storage up to 100%
of your provisioned database storage for an active DB
Instance
• Perform these tasks during your maintenance window
• DB snapshot creation
• Single-AZ to Multi-AZ modification
• Read replica creation
Caveats
• Allocated storage and provisioned storage can be modified
• Scaling Storage operations can impact performance until new
allocation is finished
• Except for SQL Server
• Export data
• Create new DB instance with larger storage
• Import data
• Initially size SQL Server storage for future growth to avoid this
Burst mode – GP2 & T2
GP2 – SSD based Amazon EBS storage
• 3 IOPS per GB base performance
• Earn credits when usage below base
• Burst to 3000+ IOPS
T2 – Amazon EC2 instance with burst capability
• Base performance + burst
• Earn credits per hour when below base performance
• Can store up to 24 hours worth of credits
• Amazon CloudWatch metrics to see credits & usage
Burst mode – GP2 & T2
T2 – CPU credits
Burst mode vs. Standard vs. Provisioned IOPS
0
1000
2000
3000
4000
5000
6000
7000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
TransactionsperSecond(TPS)
Hours
100% Read - 20GB data
Series1
$0.575 per hour
Burst mode vs. Standard vs. Provisioned IOPS
0
1000
2000
3000
4000
5000
6000
7000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
TransactionsperSecond(TPS)
Hours
100% Read - 20GB data
Series1 Series2
$0.575 per hour
$0.408 per hour
Burst mode vs. Standard vs. Provisioned IOPS
0
1000
2000
3000
4000
5000
6000
7000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
TransactionsperSecond(TPS)
Hours
100% Read - 20GB data
Series1 Series2 Series3
$0.575 per hour
$0.408 per hour
$0.508 per hour
Burst mode vs. Standard vs. Provisioned IOPS
0
1000
2000
3000
4000
5000
6000
7000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
TransactionsperSecond(TPS)
Hours
100% Read - 20GB data
Series1 Series2 Series3 Series4
$0.105 per hour
$0.575 per hour
$0.408 per hour
$0.508 per hour
Burst mode vs. Standard vs. Provisioned IOPS
0
1000
2000
3000
4000
5000
6000
7000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
TransactionsperSecond(TPS)
Hours
100% Read - 20GB data
Series1 Series2 Series3 Series4 Series5
$0.105 per hour
$0.575 per hour
$0.233 per hour
$0.408 per hour
$0.508 per hour
Scale and Performance
How to scale with Amazon RDS
• Scale up or down with resizable instance types
• CPU to 32 vCPUs, RAM to 244 GiB
• Scale your storage up with a few clicks
• Scale while online
• Easy conversion from standard to Provisioned IOPS storage
• Put a cache in front of Amazon RDS
• Amazon ElastiCache for Memcached or Redis
• Or your favorite cache, self-managed in Amazon EC2
• Offload read traffic to Read Replicas
Reads10% Reads10% Reads10% Reads10%
Reads10% Reads10% Reads10% Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Reads10%
Writes10%
Reads10%
Writes10%
Reads10%
Reads
90%
Writes10%
Read to write ratio
Primary
Writes10%
Replica1
Writes10%
Replica2
Writes10%
Replica3
Writes10%
Replica4
Writes 20% Writes 20% Writes 20% Writes 20%
Reads
80%
Reads 20% Reads 20% Reads 20% Reads 20%
Reads 20%
Writes 20%
Reads 20%
Writes 20%
Reads 20%
Writes 20%
Reads 20%
Writes 20%
Writes 20%
Writes20%
Read to write ratio – More writes
Primary Replica1 Replica2 Replica3 Replica4
Series1
Series2
Series3
Series4
Series5
1
2
3
4
5
6
7
8
1 2 3 4 5 6
Scale
Scale based on % Write
InnoDB cache warming
4x
Load buffer pool
Dump buffer pool
0
5000
10000
15000
20000
25000
30000
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
TransactionsperSecond
Time (sec)
Workload with 50/50 R/W ratio
Unwarmed Cache
Warmed Cache
4X
9 min
To enable InnoDB cache warming…
Monitoring
CloudWatch
• Monitor AWS resources in real-time
• Collect and track metrics
• Metrics data provide visibility into performance, storage,
number of database connections, etc.
• Send notifications based on the monitoring rules that you
define
CloudWatch Alert Options
• RDS Metrics
• CPU Utilization - Track the percentage of CPU utilization
• Free Storage Space – Track available storage space
• Free Memory – Amount of Available RAM
• Database Connections – Number of databases connections
in use
CloudWatch Alert Options
• RDS Metrics
• IOPS – Number of IO operations completed per second
• Latency – Elapsed time between the submission of an I/O and
it’s submission.
• Throughput – Number of bytes per second transferred to or from
disk
• Queue Depth – Number of I/O requests in the queue waiting to
be serviced
CloudWatch Alert Options
• Queue Depth – Number of I/O requests in the queue waiting
to be serviced
• Queue depth of 5 for every 1000 IOPS
• If less, not enough I/O generated
• If more, you may want to increase IOPS
CloudWatch Alert Options
Metric Actions
CPU Utilization Scale Compute
Freeable Space Scale Storage Up
Freeable Memory and Swap Usage Scale Compute
Write Latency Add Provisioned IOPS
DB Connections Check connection pooling
CloudWatch Alert Options
Cloudwatch Alert Options
• A number of options to get alerted – SMS, SQS, HTTPS,
Email-JSON, Email………
Database Parameter Groups
DB parameter groups act as a container for engine configuration values
that are applied to one or more DB instances.
Reduce Costs
Save money with RDS Reserved Instances
Pay a low up-front fee to get a lower hourly price on
database instances for a 1- or 3-year term
The lower-price entitlement applies to any running instance
matching its description
Choose among Heavy, Medium, Light RIs
Month 1 Month 2 Month 3 Month 4 Month 5 Month 6 Month 7 Month 8 Month 9 Month 10 Month 11 Month 12
On-demand 544.50 1,089.00 1,633.50 2,178.00 2,722.50 3,267.00 3,811.50 4,356.00 4,900.50 5,445.00 5,989.50 6,534.00
Heavy RI 1-yr 1,508.10 1,750.20 1,992.30 2,234.40 2,476.50 2,718.60 2,960.70 3,202.80 3,444.90 3,687.00 3,929.10 4,171.20
Start saving here
Thank You!

More Related Content

What's hot

What's hot (20)

Amazon Aurora: Under the Hood
Amazon Aurora: Under the HoodAmazon Aurora: Under the Hood
Amazon Aurora: Under the Hood
 
ElastiCache & Redis
ElastiCache & RedisElastiCache & Redis
ElastiCache & Redis
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
Practical FinOps in Practice
Practical FinOps in PracticePractical FinOps in Practice
Practical FinOps in Practice
 
Cost Star Ratings to score team's AWS optimization at Morningstar" - Katelyn ...
Cost Star Ratings to score team's AWS optimization at Morningstar" - Katelyn ...Cost Star Ratings to score team's AWS optimization at Morningstar" - Katelyn ...
Cost Star Ratings to score team's AWS optimization at Morningstar" - Katelyn ...
 
Introduction to AWS Cost Management
Introduction to AWS Cost ManagementIntroduction to AWS Cost Management
Introduction to AWS Cost Management
 
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS SummitAmazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
 
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best PracticesAmazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
 
Intro to High Performance Computing in the AWS Cloud
Intro to High Performance Computing in the AWS CloudIntro to High Performance Computing in the AWS Cloud
Intro to High Performance Computing in the AWS Cloud
 
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...
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
RDS Postgres and Aurora Postgres | AWS Public Sector Summit 2017
 
Introduction to Amazon Relational Database Service (Amazon RDS)
Introduction to Amazon Relational Database Service (Amazon RDS)Introduction to Amazon Relational Database Service (Amazon RDS)
Introduction to Amazon Relational Database Service (Amazon RDS)
 
"FinOps and its role in Arity / Allstate" - Mike Rosenberg at the Chicago AWS...
"FinOps and its role in Arity / Allstate" - Mike Rosenberg at the Chicago AWS..."FinOps and its role in Arity / Allstate" - Mike Rosenberg at the Chicago AWS...
"FinOps and its role in Arity / Allstate" - Mike Rosenberg at the Chicago AWS...
 
AWS EMR Cost optimization
AWS EMR Cost optimizationAWS EMR Cost optimization
AWS EMR Cost optimization
 
Masterclass Webinar: Amazon Elastic MapReduce (EMR)
Masterclass Webinar: Amazon Elastic MapReduce (EMR)Masterclass Webinar: Amazon Elastic MapReduce (EMR)
Masterclass Webinar: Amazon Elastic MapReduce (EMR)
 
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...
Migrating Databases to the Cloud: Introduction to AWS DMS - SRV215 - Chicago ...
 
Architecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesArchitecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-Practices
 
Deep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech Talks
Deep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech TalksDeep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech Talks
Deep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech Talks
 
Cassandra Operations at Netflix
Cassandra Operations at NetflixCassandra Operations at Netflix
Cassandra Operations at Netflix
 

Similar to AWS Webcast - Cost and Performance Optimization in Amazon RDS

Sizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-Final
Sizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-FinalSizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-Final
Sizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-Final
Vigyan Jain
 

Similar to AWS Webcast - Cost and Performance Optimization in Amazon RDS (20)

AWS March 2016 Webinar Series - Managed Database Services on Amazon Web Services
AWS March 2016 Webinar Series - Managed Database Services on Amazon Web ServicesAWS March 2016 Webinar Series - Managed Database Services on Amazon Web Services
AWS March 2016 Webinar Series - Managed Database Services on Amazon Web Services
 
AWS Summit London 2014 | Uses and Best Practices for Amazon Redshift (200)
AWS Summit London 2014 | Uses and Best Practices for Amazon Redshift (200)AWS Summit London 2014 | Uses and Best Practices for Amazon Redshift (200)
AWS Summit London 2014 | Uses and Best Practices for Amazon Redshift (200)
 
AWS June Webinar Series - Getting Started: Amazon Redshift
AWS June Webinar Series - Getting Started: Amazon RedshiftAWS June Webinar Series - Getting Started: Amazon Redshift
AWS June Webinar Series - Getting Started: Amazon Redshift
 
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store PerformanceDeep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
 
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store PerformanceDeep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
 
Deep Dive: Maximizing EC2 and EBS Performance
Deep Dive: Maximizing EC2 and EBS PerformanceDeep Dive: Maximizing EC2 and EBS Performance
Deep Dive: Maximizing EC2 and EBS Performance
 
Getting Started with Managed Database Services on AWS - September 2016 Webina...
Getting Started with Managed Database Services on AWS - September 2016 Webina...Getting Started with Managed Database Services on AWS - September 2016 Webina...
Getting Started with Managed Database Services on AWS - September 2016 Webina...
 
Selecting the Right AWS Database Solution - AWS 2017 Online Tech Talks
Selecting the Right AWS Database Solution - AWS 2017 Online Tech TalksSelecting the Right AWS Database Solution - AWS 2017 Online Tech Talks
Selecting the Right AWS Database Solution - AWS 2017 Online Tech Talks
 
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
 
Introduction to Database Services
Introduction to Database ServicesIntroduction to Database Services
Introduction to Database Services
 
Uses and Best Practices for Amazon Redshift
Uses and Best Practices for Amazon Redshift Uses and Best Practices for Amazon Redshift
Uses and Best Practices for Amazon Redshift
 
AWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startupsAWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startups
 
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWS
 
Maximizing EC2 and Elastic Block Store Disk Performance
Maximizing EC2 and Elastic Block Store Disk PerformanceMaximizing EC2 and Elastic Block Store Disk Performance
Maximizing EC2 and Elastic Block Store Disk Performance
 
(STG402) Amazon EBS Deep Dive
(STG402) Amazon EBS Deep Dive(STG402) Amazon EBS Deep Dive
(STG402) Amazon EBS Deep Dive
 
Relational Databases Utilising Amazon RDS - Technical 201
Relational Databases Utilising Amazon RDS - Technical 201Relational Databases Utilising Amazon RDS - Technical 201
Relational Databases Utilising Amazon RDS - Technical 201
 
Amazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service MeetupAmazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service Meetup
 
Understanding Elastic Block Store Availability and Performance
Understanding Elastic Block Store Availability and PerformanceUnderstanding Elastic Block Store Availability and Performance
Understanding Elastic Block Store Availability and Performance
 
Sizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-Final
Sizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-FinalSizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-Final
Sizing MongoDB on AWS with Wired Tiger-Patrick and Vigyan-Final
 

More from 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

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
 

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)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
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
 

AWS Webcast - Cost and Performance Optimization in Amazon RDS

  • 1. © 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Greg Khairallah, Business Development Manager for Big Data and Analytics, AWS March 19, 2015 Cost and Performance Optimization in Amazon RDS
  • 2. Agenda Instance and Storage Selection Monitoring Reserved Instances
  • 4. Instance Selection • RDS offers a wide range of instance classes • Instance types differ on CPU, RAM, network performance, EBS Optimized • Base selection on • Performance • Cost (will differ based on type and region) • Region (not all instance types available in all regions) • Engine (not all instance types available for all engines) • Elastically scale instance size up/down
  • 5. Instance Selection: Current Generation Instance Type vCPU Memory (GiB) PIOPS-Optimized Network Performance Standard - Current Generation db.m3.medium 1 3.75 - Moderate db.m3.large 2 7.5 - Moderate db.m3.xlarge 4 15 Yes Moderate db.m3.2xlarge 8 30 Yes High Memory optimized - current generation db.r3.large 2 15 - Moderate db.r3.xlarge 4 30.5 Yes Moderate db.r3.2xlarge 8 61 Yes High db.r3.4xlarge 16 122 Yes High db.r3.8xlarge 32 244 - 10 Gigabit Micro instances db.t2.micro 1 1 - Low to Moderate db.t2.small 1 2 - Low to Moderate db.t2.medium 2 4 - Low to Moderate
  • 6. Instance Selection: Previous Generation Instance Type vCPU Memory (GiB) PIOPS-Optimized Network Performance Standard - previous generation db.m1.small 1 1.7 - Low db.m1.medium 1 3.75 - Moderate db.m1.large 2 7.5 Yes Moderate db.m1.xlarge 4 15 Yes High Memory optimized - previous generation db.m2.xlarge 2 17.1 - Moderate db.m2.2xlarge 4 34.2 Yes Moderate db.m2.4xlarge 8 68.4 Yes High db.cr1.8xlarge 32 244 - High Micro instances db.t1.micro 1 0.613 - Very Low
  • 7. Instance Selection • Measure existing application workload • Use native database engine tools – system tables, Oracle Enterprise Manager, Statspack, SQL Server Tuning Advisor • Use CloudWatch metrics • Test and scale accordingly
  • 8. What is General Purpose (SSD) Storage • New EBS Volume Type - SSD Backed / Solid State Drive • New Default Volume Type on RDS • Available on all RDS DB Instance types and DB engines in all Regions • Flat, Per-Gigabyte Rate. No I/O Charges • Volume bundles Baseline IOPS • 1GB : 3 IOPS. • Scales predictably, linearly, 10:30 ,100:300, 1TB:3K • Burst Capable Volume
  • 9. Sizing General Purpose (SSD) volume for databases • Calculate your required IOPS needed in steady state • Provision the GB = (Steady state IOPS) ÷ 3 • For example, customer requiring1500 steady state IOPS • Provision 1500 ÷ 3 = 500 GB • IO bursts will support • Database load or table scan operations • Spike in IO workload
  • 10. Provisioned IOPS • Provisioned IOPS storage is a storage option that delivers fast, predictable, and consistent throughput performance • When fast and consistent I/O performance required • Optimized for I/O intensive, online transaction processing (OLTP) workloads that have consistent performance requirements • Important: Recommended for random reads and writes and not sequential workloads
  • 11. Activities that Impact Storage Performance • Nightly backups • There is no additional charge for backup storage up to 100% of your provisioned database storage for an active DB Instance • Perform these tasks during your maintenance window • DB snapshot creation • Single-AZ to Multi-AZ modification • Read replica creation
  • 12. Caveats • Allocated storage and provisioned storage can be modified • Scaling Storage operations can impact performance until new allocation is finished • Except for SQL Server • Export data • Create new DB instance with larger storage • Import data • Initially size SQL Server storage for future growth to avoid this
  • 13. Burst mode – GP2 & T2 GP2 – SSD based Amazon EBS storage • 3 IOPS per GB base performance • Earn credits when usage below base • Burst to 3000+ IOPS T2 – Amazon EC2 instance with burst capability • Base performance + burst • Earn credits per hour when below base performance • Can store up to 24 hours worth of credits • Amazon CloudWatch metrics to see credits & usage
  • 14. Burst mode – GP2 & T2
  • 15. T2 – CPU credits
  • 16. Burst mode vs. Standard vs. Provisioned IOPS 0 1000 2000 3000 4000 5000 6000 7000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 TransactionsperSecond(TPS) Hours 100% Read - 20GB data Series1 $0.575 per hour
  • 17. Burst mode vs. Standard vs. Provisioned IOPS 0 1000 2000 3000 4000 5000 6000 7000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 TransactionsperSecond(TPS) Hours 100% Read - 20GB data Series1 Series2 $0.575 per hour $0.408 per hour
  • 18. Burst mode vs. Standard vs. Provisioned IOPS 0 1000 2000 3000 4000 5000 6000 7000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 TransactionsperSecond(TPS) Hours 100% Read - 20GB data Series1 Series2 Series3 $0.575 per hour $0.408 per hour $0.508 per hour
  • 19. Burst mode vs. Standard vs. Provisioned IOPS 0 1000 2000 3000 4000 5000 6000 7000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 TransactionsperSecond(TPS) Hours 100% Read - 20GB data Series1 Series2 Series3 Series4 $0.105 per hour $0.575 per hour $0.408 per hour $0.508 per hour
  • 20. Burst mode vs. Standard vs. Provisioned IOPS 0 1000 2000 3000 4000 5000 6000 7000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 TransactionsperSecond(TPS) Hours 100% Read - 20GB data Series1 Series2 Series3 Series4 Series5 $0.105 per hour $0.575 per hour $0.233 per hour $0.408 per hour $0.508 per hour
  • 22. How to scale with Amazon RDS • Scale up or down with resizable instance types • CPU to 32 vCPUs, RAM to 244 GiB • Scale your storage up with a few clicks • Scale while online • Easy conversion from standard to Provisioned IOPS storage • Put a cache in front of Amazon RDS • Amazon ElastiCache for Memcached or Redis • Or your favorite cache, self-managed in Amazon EC2 • Offload read traffic to Read Replicas
  • 23. Reads10% Reads10% Reads10% Reads10% Reads10% Reads10% Reads10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Reads10% Writes10% Reads10% Writes10% Reads10% Reads 90% Writes10% Read to write ratio Primary Writes10% Replica1 Writes10% Replica2 Writes10% Replica3 Writes10% Replica4
  • 24. Writes 20% Writes 20% Writes 20% Writes 20% Reads 80% Reads 20% Reads 20% Reads 20% Reads 20% Reads 20% Writes 20% Reads 20% Writes 20% Reads 20% Writes 20% Reads 20% Writes 20% Writes 20% Writes20% Read to write ratio – More writes Primary Replica1 Replica2 Replica3 Replica4
  • 26. InnoDB cache warming 4x Load buffer pool Dump buffer pool
  • 28. To enable InnoDB cache warming…
  • 30. CloudWatch • Monitor AWS resources in real-time • Collect and track metrics • Metrics data provide visibility into performance, storage, number of database connections, etc. • Send notifications based on the monitoring rules that you define
  • 31. CloudWatch Alert Options • RDS Metrics • CPU Utilization - Track the percentage of CPU utilization • Free Storage Space – Track available storage space • Free Memory – Amount of Available RAM • Database Connections – Number of databases connections in use
  • 32. CloudWatch Alert Options • RDS Metrics • IOPS – Number of IO operations completed per second • Latency – Elapsed time between the submission of an I/O and it’s submission. • Throughput – Number of bytes per second transferred to or from disk • Queue Depth – Number of I/O requests in the queue waiting to be serviced
  • 33. CloudWatch Alert Options • Queue Depth – Number of I/O requests in the queue waiting to be serviced • Queue depth of 5 for every 1000 IOPS • If less, not enough I/O generated • If more, you may want to increase IOPS
  • 34. CloudWatch Alert Options Metric Actions CPU Utilization Scale Compute Freeable Space Scale Storage Up Freeable Memory and Swap Usage Scale Compute Write Latency Add Provisioned IOPS DB Connections Check connection pooling
  • 36. Cloudwatch Alert Options • A number of options to get alerted – SMS, SQS, HTTPS, Email-JSON, Email………
  • 37. Database Parameter Groups DB parameter groups act as a container for engine configuration values that are applied to one or more DB instances.
  • 39. Save money with RDS Reserved Instances Pay a low up-front fee to get a lower hourly price on database instances for a 1- or 3-year term The lower-price entitlement applies to any running instance matching its description Choose among Heavy, Medium, Light RIs Month 1 Month 2 Month 3 Month 4 Month 5 Month 6 Month 7 Month 8 Month 9 Month 10 Month 11 Month 12 On-demand 544.50 1,089.00 1,633.50 2,178.00 2,722.50 3,267.00 3,811.50 4,356.00 4,900.50 5,445.00 5,989.50 6,534.00 Heavy RI 1-yr 1,508.10 1,750.20 1,992.30 2,234.40 2,476.50 2,718.60 2,960.70 3,202.80 3,444.90 3,687.00 3,929.10 4,171.20 Start saving here