SlideShare ist ein Scribd-Unternehmen logo
1 von 40
Downloaden Sie, um offline zu lesen
RDS Write i/o BenchmarK
     AWS RDS instance type comparison



     Roberto Gaiser
       @rgaiser
RDS

• MySQL / Oracle / SQL Server

• Running on EC2 managed by AWS, patches, replication
  and backup

• EBS (Elastic Block Store) for storage

• EBS = network block device

• “Black Box” = no “shell” access

• 1 EC2 Compute Unit =1.0-1.2 GHz 2007 Opteron or
  2007 Xeon processor
RDS

• MySQL / Oracle / SQL Server

• Running on EC2 managed by AWS, patches, replication
  and backup

• EBS (Elastic Block Store) for storage

• EBS = network block device

• “Black Box” = no “shell” access

• 1 EC2 Compute Unit =1.0-1.2 GHz 2007 Opteron or
  2007 Xeon processor
Instance Comparison

                         EC2 Compute
               Memory GB               Cores   Price/Hour *
                             Unit

    Small          1.7        1         1        $0.105

    Large          7.5        4         2        $0.415

   XLarge          15.0       8         4        $0.830

  2XLarge          34.0      13         4        $1.170

  4XLarge          68.0      26         8        $2.340

* Price for us-east-1
Instance Comparison

            EC2 Compute
                          Memory   Price/Hour
                Unit

 Small          1          1.0        1.0

 Large          4          4.4        4.0

XLarge          8          8.8        7.9

2XLarge         13         20.0      11.1

4XLarge         26         40.0      22.3
Instance Comparison
                                         Instance Types Comparison
            70

            60

            50
Memory GB




            40

            31

            21

            11

             1
                 1           5     8           12        15          19   22        26
                                          EC2 Compute Unit
                     Small       Large         XLarge         2XLarge     4XLarge
Test Setup

• MySQL

• Two data sets:

• Increase instance size

• Increase EBS size

• Different days and periods

• 5.5.20

• max_connections parameter
Test Setup


• Ubuntu 12.04 LTS AMI Ubuntu 12.04 LTS
  AMI ami-a29943cb

• mysqlslap from Ubuntu MySQL repository

• EC2 High-CPU Medium c1.medium

• Disk I/O bound:

 ✓ insert and commit
mysqlslap

mysqlslap -uXXXX -pXXXXX 

--concurrency=1,5,10,20,30,50,100,200,400 --
engine=innodb 

--auto-generate-sql --auto-generate-sql-load-type=write 

--auto-generate-sql-add-autoincrement --auto-generate-sql-
secondary-indexes=1 

--commit=1 --number-of-queries=40000 --iterations=5 

-h XXXXX.rds.amazonaws.com --csv=XXXXXX.csv
mysqlslap

mysqlslap -uXXXX -pXXXXX 

--concurrency=1,5,10,20,30,50,100,200,400 --
engine=innodb 

--auto-generate-sql --auto-generate-sql-load-type=write 

--auto-generate-sql-add-autoincrement --auto-generate-sql-
secondary-indexes=1 

--commit=1 --number-of-queries=40000 --iterations=5 

-h XXXXX.rds.amazonaws.com --csv=XXXXXX.csv
EBS x Instance Type


• Chart using the 100GB EBS volume data

• Same EBS on all tests

• EBS are not created equal

• No replication

• us-east-1
Change Instance Type


    RDS Instance MySQL   EBS Volume




                         EBS Volume




   RDS Instance MySQL
100GB EBS
100GB EBS
100GB EBS
100GB EBS
100GB EBS
Guerrilla Capacity
                            planning

                                            N
               C(N ) =
                            1 + ↵(N        1) + N (N           1)
• Universal Scalability Law (USL)
•   http://www.perfdynamics.com/Manifesto/USLscalability.html

• Guerrilla Mantra 1.16: Data are not divine. Data comes from
  the Devil, only models come from God.

• Guerrilla Mantra 2.25: All measurements are wrong by
  definition.

• R using nls() http://www.perfdynamics.com/Classes/Materials/USLcalc.r
100GB EBS
100GB EBS
100GB EBS
100GB EBS
100GB EBS
100GB EBS
N Max    X Max

small     59.48    1660.29

 large    88.46    3859.50

xlarge    134.40   6068.01

2xlarge   204.00   7228.87

4xlarge   217.55   8172.99
N Max    X Max     N       X

 small    59.48    1660.29   1.00   1.00

 large    88.46    3859.50   1.49   2.32

xlarge    134.40   6068.01   2.26   3.65

2xlarge   204.00   7228.87   3.43   4.35

4xlarge   217.55   8172.99   3.66   4.92
X Max
N Max
α contention   β coherency

small        0.0590       2.66E-04

 large       0.0586       1.20E-04

xlarge       0.0466       5.30E-05

2xlarge      0.0403        2.3E-05

4xlarge      0.0360        2.0E-05
α contention   β coherency    α      β

small       0.0590        2.66E-04     1.00   1.00

 large      0.0586        1.20E-04     0.99   0.45

xlarge      0.0466        5.30E-05     0.79   0.20

2xlarge     0.0403        2.30E-05     0.68   0.09

4xlarge     0.0360        2.00E-05     0.61   0.08
Instance type x EBS



• Same instance and EBS endpoints for each
  test

• EBS are not created equal

• No replication

• us-east-1
Change EBS Size


RDS Instance MySQL   EBS Volume




RDS Instance MySQL




                     EBS Volume
Large Instance
XLarge Instance
2XLarge Instance
4XLarge Instance
Small Instance
EC2                                      Price/
          Compute   Memory    α     N Max   X Max
            Unit
                                                    Hour

small      1.0       1.0     1.00   1.00    1.00     1.0

 large     4.0       4.4     0.99   1.49    2.32     4.0

xlarge     8.0       8.8     0.79   2.26    3.65     7.9

2xlarge   13.0      20.0     0.68   3.43    4.35    11.1

4xlarge   26.0      40.0     0.61   3.66    4.92    22.3
Conclusion



• EBS size has no effect on I/O performance

• Small instances are more affected by other
  instances on the same server

• Larger instances have a greater share of the
  physical resources, more network
  throughput translates to more EBS I/O
Conclusion



• More instances on the same server, more
  concurrency. α increases

• Small decrease in α increases the
  throughput by a large amount

• EBS are not created equal

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Amazon S3 Best Practice and Tuning for Hadoop/Spark in the Cloud
Amazon S3 Best Practice and Tuning for Hadoop/Spark in the CloudAmazon S3 Best Practice and Tuning for Hadoop/Spark in the Cloud
Amazon S3 Best Practice and Tuning for Hadoop/Spark in the Cloud
 
A Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and HudiA Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and Hudi
 
PLPgSqL- Datatypes, Language structure.pptx
PLPgSqL- Datatypes, Language structure.pptxPLPgSqL- Datatypes, Language structure.pptx
PLPgSqL- Datatypes, Language structure.pptx
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL DatabasePerformance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
 
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
Espresso: LinkedIn's Distributed Data Serving Platform (Paper)
 
Node Labels in YARN
Node Labels in YARNNode Labels in YARN
Node Labels in YARN
 
MariaDB MaxScale
MariaDB MaxScaleMariaDB MaxScale
MariaDB MaxScale
 
Hive, Presto, and Spark on TPC-DS benchmark
Hive, Presto, and Spark on TPC-DS benchmarkHive, Presto, and Spark on TPC-DS benchmark
Hive, Presto, and Spark on TPC-DS benchmark
 
Deep Dive: Memory Management in Apache Spark
Deep Dive: Memory Management in Apache SparkDeep Dive: Memory Management in Apache Spark
Deep Dive: Memory Management in Apache Spark
 
PostgreSQL WAL for DBAs
PostgreSQL WAL for DBAs PostgreSQL WAL for DBAs
PostgreSQL WAL for DBAs
 
Apache Iceberg: An Architectural Look Under the Covers
Apache Iceberg: An Architectural Look Under the CoversApache Iceberg: An Architectural Look Under the Covers
Apache Iceberg: An Architectural Look Under the Covers
 
MySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptxMySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptx
 
Sharding Methods for MongoDB
Sharding Methods for MongoDBSharding Methods for MongoDB
Sharding Methods for MongoDB
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon Redshift
 
PostgreSQL HA
PostgreSQL   HAPostgreSQL   HA
PostgreSQL HA
 
Best Practices for Running PostgreSQL on AWS - DAT314 - re:Invent 2017
Best Practices for Running PostgreSQL on AWS - DAT314 - re:Invent 2017Best Practices for Running PostgreSQL on AWS - DAT314 - re:Invent 2017
Best Practices for Running PostgreSQL on AWS - DAT314 - re:Invent 2017
 
2017 AWS DB Day | Amazon Aurora 자세히 살펴보기
2017 AWS DB Day | Amazon Aurora 자세히 살펴보기2017 AWS DB Day | Amazon Aurora 자세히 살펴보기
2017 AWS DB Day | Amazon Aurora 자세히 살펴보기
 
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScaleThe Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScale
 
Top 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applicationsTop 5 mistakes when writing Spark applications
Top 5 mistakes when writing Spark applications
 
Best Practice in Accelerating Data Applications with Spark+Alluxio
Best Practice in Accelerating Data Applications with Spark+AlluxioBest Practice in Accelerating Data Applications with Spark+Alluxio
Best Practice in Accelerating Data Applications with Spark+Alluxio
 

Andere mochten auch

Pgbr 2013 postgres on aws
Pgbr 2013   postgres on awsPgbr 2013   postgres on aws
Pgbr 2013 postgres on aws
Emanuel Calvo
 
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
Amazon Web Services Korea
 

Andere mochten auch (17)

AWS Webcast - Cost and Performance Optimization in Amazon RDS
AWS Webcast - Cost and Performance Optimization in Amazon RDSAWS Webcast - Cost and Performance Optimization in Amazon RDS
AWS Webcast - Cost and Performance Optimization in Amazon RDS
 
Amazon RDS for Performance-Intensive Production Applications (DAT301) | AWS r...
Amazon RDS for Performance-Intensive Production Applications (DAT301) | AWS r...Amazon RDS for Performance-Intensive Production Applications (DAT301) | AWS r...
Amazon RDS for Performance-Intensive Production Applications (DAT301) | AWS r...
 
AWS Webcast - Amazon RDS for MySQL: Best Practices for Performance and Data M...
AWS Webcast - Amazon RDS for MySQL: Best Practices for Performance and Data M...AWS Webcast - Amazon RDS for MySQL: Best Practices for Performance and Data M...
AWS Webcast - Amazon RDS for MySQL: Best Practices for Performance and Data M...
 
Shootout at the AWS Corral
Shootout at the AWS CorralShootout at the AWS Corral
Shootout at the AWS Corral
 
Pgbr 2013 postgres on aws
Pgbr 2013   postgres on awsPgbr 2013   postgres on aws
Pgbr 2013 postgres on aws
 
Adventures in RDS Load Testing
Adventures in RDS Load TestingAdventures in RDS Load Testing
Adventures in RDS Load Testing
 
The Biggest Internet of Things Milestones
The Biggest Internet of Things Milestones The Biggest Internet of Things Milestones
The Biggest Internet of Things Milestones
 
AWS re:Invent 2016: IoT State of the Union (IOT307)
AWS re:Invent 2016: IoT State of the Union (IOT307)AWS re:Invent 2016: IoT State of the Union (IOT307)
AWS re:Invent 2016: IoT State of the Union (IOT307)
 
Getting Started with AWS Database Migration Service
Getting Started with AWS Database Migration ServiceGetting Started with AWS Database Migration Service
Getting Started with AWS Database Migration Service
 
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
 
Dynamo DB & RDS Deep Dive - AWS India Summit 2012
Dynamo DB & RDS Deep Dive - AWS India Summit 2012Dynamo DB & RDS Deep Dive - AWS India Summit 2012
Dynamo DB & RDS Deep Dive - AWS India Summit 2012
 
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
 
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
 
Best Practices for running the Oracle Database on EC2 webinar
Best Practices for running the Oracle Database on EC2 webinarBest Practices for running the Oracle Database on EC2 webinar
Best Practices for running the Oracle Database on EC2 webinar
 
Amazon RDS Deep Dive
Amazon RDS Deep DiveAmazon RDS Deep Dive
Amazon RDS Deep Dive
 
February 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration ServiceFebruary 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration Service
 
Результаты педагогов и учащихся школ Москвы в 2015-2016 учебном году
Результаты педагогов и учащихся  школ Москвы в 2015-2016 учебном годуРезультаты педагогов и учащихся  школ Москвы в 2015-2016 учебном году
Результаты педагогов и учащихся школ Москвы в 2015-2016 учебном году
 

Ähnlich wie AWS RDS Benchmark - Instance comparison

AWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APACAWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APAC
Amazon Web Services
 
Cloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean StartupsCloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean Startups
Zvi Avraham
 
[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...
[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...
[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...
npinto
 
Amazon Web Services - An Overview
Amazon Web Services - An OverviewAmazon Web Services - An Overview
Amazon Web Services - An Overview
chregu
 
Hp cloud performance_benchmark
Hp cloud performance_benchmarkHp cloud performance_benchmark
Hp cloud performance_benchmark
OpenCity Community
 

Ähnlich wie AWS RDS Benchmark - Instance comparison (20)

AWS RDS Benchmark - CMG Brasil 2012
AWS RDS Benchmark - CMG Brasil 2012AWS RDS Benchmark - CMG Brasil 2012
AWS RDS Benchmark - CMG Brasil 2012
 
AWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APACAWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APAC
 
Amazon EC2
Amazon EC2Amazon EC2
Amazon EC2
 
Cloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean StartupsCloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean Startups
 
[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...
[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...
[Harvard CS264] 08a - Cloud Computing, Amazon EC2, MIT StarCluster (Justin Ri...
 
Cs264 intro-to-cloud-computing
Cs264 intro-to-cloud-computingCs264 intro-to-cloud-computing
Cs264 intro-to-cloud-computing
 
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applicationsAWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
AWS Summit Stockholm 2014 – B5 – The TCO of cloud applications
 
Deep Dive on Amazon EC2
Deep Dive on Amazon EC2Deep Dive on Amazon EC2
Deep Dive on Amazon EC2
 
EC2 Performance, Spot Instance ROI and EMR Scalability
EC2 Performance, Spot Instance ROI and EMR ScalabilityEC2 Performance, Spot Instance ROI and EMR Scalability
EC2 Performance, Spot Instance ROI and EMR Scalability
 
Amazon Web Services - An Overview
Amazon Web Services - An OverviewAmazon Web Services - An Overview
Amazon Web Services - An Overview
 
Introduction on Amazon EC2
Introduction on Amazon EC2Introduction on Amazon EC2
Introduction on Amazon EC2
 
B4 - The TCO of cloud applications
B4 - The TCO of cloud applicationsB4 - The TCO of cloud applications
B4 - The TCO of cloud applications
 
Deep Dive on Amazon EC2
Deep Dive on Amazon EC2Deep Dive on Amazon EC2
Deep Dive on Amazon EC2
 
Maximizing EC2 and Elastic Block Store Disk Performance (STG302) | AWS re:Inv...
Maximizing EC2 and Elastic Block Store Disk Performance (STG302) | AWS re:Inv...Maximizing EC2 and Elastic Block Store Disk Performance (STG302) | AWS re:Inv...
Maximizing EC2 and Elastic Block Store Disk Performance (STG302) | AWS re:Inv...
 
How Ceph performs on ARM Microserver Cluster
How Ceph performs on ARM Microserver ClusterHow Ceph performs on ARM Microserver Cluster
How Ceph performs on ARM Microserver Cluster
 
Hadoop/HBase POC framework
Hadoop/HBase POC frameworkHadoop/HBase POC framework
Hadoop/HBase POC framework
 
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech TalksDeep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
 
Building REA In The Cloud
Building REA In The CloudBuilding REA In The Cloud
Building REA In The Cloud
 
Hp cloud performance_benchmark
Hp cloud performance_benchmarkHp cloud performance_benchmark
Hp cloud performance_benchmark
 
IMCSummit 2015 - Day 2 IT Business Track - 4 Myths about In-Memory Databases ...
IMCSummit 2015 - Day 2 IT Business Track - 4 Myths about In-Memory Databases ...IMCSummit 2015 - Day 2 IT Business Track - 4 Myths about In-Memory Databases ...
IMCSummit 2015 - Day 2 IT Business Track - 4 Myths about In-Memory Databases ...
 

Mehr von Roberto Gaiser (7)

Inter Dev Ops Conf 2016 - IaaS behind the scenes
Inter Dev Ops Conf 2016 - IaaS behind the scenesInter Dev Ops Conf 2016 - IaaS behind the scenes
Inter Dev Ops Conf 2016 - IaaS behind the scenes
 
WeOp - The Operations Summit
WeOp - The Operations SummitWeOp - The Operations Summit
WeOp - The Operations Summit
 
R7 no AWS - Qcon SP 2011
R7 no AWS - Qcon SP 2011R7 no AWS - Qcon SP 2011
R7 no AWS - Qcon SP 2011
 
Chef in a nutshell
Chef in a nutshellChef in a nutshell
Chef in a nutshell
 
Amazon Web Services - Ignite SP
Amazon Web Services - Ignite SPAmazon Web Services - Ignite SP
Amazon Web Services - Ignite SP
 
Dev vs. Ops
Dev vs. OpsDev vs. Ops
Dev vs. Ops
 
Itil for failers
Itil for failersItil for failers
Itil for failers
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

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...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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)
 

AWS RDS Benchmark - Instance comparison

  • 1. RDS Write i/o BenchmarK AWS RDS instance type comparison Roberto Gaiser @rgaiser
  • 2. RDS • MySQL / Oracle / SQL Server • Running on EC2 managed by AWS, patches, replication and backup • EBS (Elastic Block Store) for storage • EBS = network block device • “Black Box” = no “shell” access • 1 EC2 Compute Unit =1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor
  • 3. RDS • MySQL / Oracle / SQL Server • Running on EC2 managed by AWS, patches, replication and backup • EBS (Elastic Block Store) for storage • EBS = network block device • “Black Box” = no “shell” access • 1 EC2 Compute Unit =1.0-1.2 GHz 2007 Opteron or 2007 Xeon processor
  • 4. Instance Comparison EC2 Compute Memory GB Cores Price/Hour * Unit Small 1.7 1 1 $0.105 Large 7.5 4 2 $0.415 XLarge 15.0 8 4 $0.830 2XLarge 34.0 13 4 $1.170 4XLarge 68.0 26 8 $2.340 * Price for us-east-1
  • 5. Instance Comparison EC2 Compute Memory Price/Hour Unit Small 1 1.0 1.0 Large 4 4.4 4.0 XLarge 8 8.8 7.9 2XLarge 13 20.0 11.1 4XLarge 26 40.0 22.3
  • 6. Instance Comparison Instance Types Comparison 70 60 50 Memory GB 40 31 21 11 1 1 5 8 12 15 19 22 26 EC2 Compute Unit Small Large XLarge 2XLarge 4XLarge
  • 7. Test Setup • MySQL • Two data sets: • Increase instance size • Increase EBS size • Different days and periods • 5.5.20 • max_connections parameter
  • 8. Test Setup • Ubuntu 12.04 LTS AMI Ubuntu 12.04 LTS AMI ami-a29943cb • mysqlslap from Ubuntu MySQL repository • EC2 High-CPU Medium c1.medium • Disk I/O bound: ✓ insert and commit
  • 9. mysqlslap mysqlslap -uXXXX -pXXXXX --concurrency=1,5,10,20,30,50,100,200,400 -- engine=innodb --auto-generate-sql --auto-generate-sql-load-type=write --auto-generate-sql-add-autoincrement --auto-generate-sql- secondary-indexes=1 --commit=1 --number-of-queries=40000 --iterations=5 -h XXXXX.rds.amazonaws.com --csv=XXXXXX.csv
  • 10. mysqlslap mysqlslap -uXXXX -pXXXXX --concurrency=1,5,10,20,30,50,100,200,400 -- engine=innodb --auto-generate-sql --auto-generate-sql-load-type=write --auto-generate-sql-add-autoincrement --auto-generate-sql- secondary-indexes=1 --commit=1 --number-of-queries=40000 --iterations=5 -h XXXXX.rds.amazonaws.com --csv=XXXXXX.csv
  • 11. EBS x Instance Type • Chart using the 100GB EBS volume data • Same EBS on all tests • EBS are not created equal • No replication • us-east-1
  • 12. Change Instance Type RDS Instance MySQL EBS Volume EBS Volume RDS Instance MySQL
  • 18. Guerrilla Capacity planning N C(N ) = 1 + ↵(N 1) + N (N 1) • Universal Scalability Law (USL) • http://www.perfdynamics.com/Manifesto/USLscalability.html • Guerrilla Mantra 1.16: Data are not divine. Data comes from the Devil, only models come from God. • Guerrilla Mantra 2.25: All measurements are wrong by definition. • R using nls() http://www.perfdynamics.com/Classes/Materials/USLcalc.r
  • 25. N Max X Max small 59.48 1660.29 large 88.46 3859.50 xlarge 134.40 6068.01 2xlarge 204.00 7228.87 4xlarge 217.55 8172.99
  • 26. N Max X Max N X small 59.48 1660.29 1.00 1.00 large 88.46 3859.50 1.49 2.32 xlarge 134.40 6068.01 2.26 3.65 2xlarge 204.00 7228.87 3.43 4.35 4xlarge 217.55 8172.99 3.66 4.92
  • 27. X Max
  • 28. N Max
  • 29. α contention β coherency small 0.0590 2.66E-04 large 0.0586 1.20E-04 xlarge 0.0466 5.30E-05 2xlarge 0.0403 2.3E-05 4xlarge 0.0360 2.0E-05
  • 30. α contention β coherency α β small 0.0590 2.66E-04 1.00 1.00 large 0.0586 1.20E-04 0.99 0.45 xlarge 0.0466 5.30E-05 0.79 0.20 2xlarge 0.0403 2.30E-05 0.68 0.09 4xlarge 0.0360 2.00E-05 0.61 0.08
  • 31. Instance type x EBS • Same instance and EBS endpoints for each test • EBS are not created equal • No replication • us-east-1
  • 32. Change EBS Size RDS Instance MySQL EBS Volume RDS Instance MySQL EBS Volume
  • 38. EC2 Price/ Compute Memory α N Max X Max Unit Hour small 1.0 1.0 1.00 1.00 1.00 1.0 large 4.0 4.4 0.99 1.49 2.32 4.0 xlarge 8.0 8.8 0.79 2.26 3.65 7.9 2xlarge 13.0 20.0 0.68 3.43 4.35 11.1 4xlarge 26.0 40.0 0.61 3.66 4.92 22.3
  • 39. Conclusion • EBS size has no effect on I/O performance • Small instances are more affected by other instances on the same server • Larger instances have a greater share of the physical resources, more network throughput translates to more EBS I/O
  • 40. Conclusion • More instances on the same server, more concurrency. α increases • Small decrease in α increases the throughput by a large amount • EBS are not created equal