SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Optimizing Amazon EBS for
Performance
Sajee Mathew
Principal Solutions Architect
AWS
C M P 3 1 7
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS Volume Types
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS volume types
HDDSSD
Provisioned IOPS
SSD
io1
General Purpose
SSD
gp2
Throughput Optimized HDD
st1 sc1
Cold HDD
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS use cases
HDDSSD
Relational Databases
MySQL, SQL Server,
PostgreSQL, SAP,
Oracle
NoSQL Databases
Cassandra, MongoDB,
CouchDB
Big Data , Analytics
Kafka, Splunk,
Hadoop, Data
Warehousing
File / Media
CIFS/NFS,
Transcoding,
Encoding, Rendering
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
More details:
https://amzn.to/2m9v2ao
• Dedicated network bandwidth for Amazon EBS I/O
• Enabled by default on most current generation instances
• Can be enabled at instance launch or on a running instance
• Not an option on some 10-Gbps instance types
• (c3.8xlarge, r3.8xlarge, i2.8xlarge)
What is an EBS-optimized instance?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
c4.large
Dedicated to Amazon EBS
500 Mbps ~ 62.5 MiB/s
2 TiB GP2 volume:
6,000 IOPS
160 MiB/s max throughput
4,000 16K IOPS
c4.2xlarge
Dedicated to Amazon EBS
1 Gbps ~ 125 MiB/s
8,000 16KB IOPS
2 TiB GP2 volume:
6,000 IOPS
160 MiB/s max throughput
Performance: EBS-optimized
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Avoid Volume/Instance mismatch
Instances have EBS performance thresholds
EBS volumes have performance thresholds
The lower of these two will dictate your EBS performance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing an Amazon EBS volume type
i3
gp2
Latency?
< 1 ms Single-digit ms
Which is more important?
Cost Performance
IOPS
≤ 80,000> 80,000
is more important
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing an Amazon EBS volume type
i3
gp2 io1
Latency?
< 1 ms Single-digit ms
Which is more important?
Cost Performance
IOPS
≤ 80,000> 80,000
is more important
Throughput?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing an Amazon EBS volume type
Throughput
is more important
Small, random I/O Large, sequential I/O
i3
gp2 io1 st1
d2
Latency?
< 1 ms Single-digit ms ≤ 1,750 MiB/s
Aggregate throughput?
> 1,750 MiB/s
Which is more important?
Cost Performance
IOPS
≤ 80,000> 80,000
is more important
Which is more important?
Cost Performance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing an Amazon EBS volume type
Throughput
is more important
Small, random I/O Large, sequential I/O
i3
gp2 io1 sc1 st1
d2
Latency?
< 1 ms Single-digit ms ≤ 1,750 MiB/s
Aggregate throughput?
> 1,750 MiB/s
Which is more important?
Cost Performance
IOPS
≤ 80,000> 80,000
is more important
Which is more important?
Cost Performance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing an Amazon EBS volume type
Throughput
is more important
Small, random I/O Large, sequential I/O
i3
gp2 io1 sc1 st1
d2
Latency?
< 1 ms Single-digit ms ≤ 1,750 MiB/s
Aggregate throughput?
> 1,750 MiB/s
Which is more important?
Cost Performance
IOPS
≤ 80,000> 80,000
is more important
Which is more important?
Cost Performance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New improvements
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New announcements
2x improvement for Provisioned IOPS volumes
• IOPS increase from 32,000 IOPS to 64,000
• Throughput Increase from 500 MB/s to 1,000 MB/s per volume
• Volumes must be attached to Nitro based Amazon EC2 instances
60% peak performance increase for gp2 volumes
• For volumes > 5.334 TB: IOPS increase from 10K to 16K
• For volumes > 334 GB: Throughput increase from 160MB/sec to 256MB/sec
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hybrid volume use case
Case study:
Running Cassandra on Amazon EBS
c4
gp2
st1
Data files
Commit log
i2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Volumes: Features
Increase volume size
Increase/decrease provisioned IOPS
Change volume type
sc1 magnetic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How to modify
1. Snapshot volume
2. Modify volume
3. Monitor modification
4. Extend filesystem (if necessary)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Volumes: Automation ideas
• Publish a “free space” metric to an Amazon
CloudWatch and use AWS Lambda + AWS
Systems Manager to resize the volume and the
file system
• Use an Amazon CloudWatch alarm to watch for
a volume that is running at or near its IOPS
limit or exhausting burst balance
• Initiate workflow to provision additional IOPS
Right-sizing:
https://github.com/awslabs/aws-elastic-volumes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hybrid volume use case
st1
Case study:
https://amzn.to/2zefJmI/
Transaction logs
“We’ve seen much stronger performance for our database backup
workloads with the Amazon EBS ST1 volumes, and we’re also
saving 75 percent on our monthly backup costs.”
- Randy Young, director of cloud operations, Infor
i2
st1
Full backups
st1
Partial backups
SQL Server
Database
EBS
snapshots
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Do you need to initialize EBS volumes?
It depends
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New EBS volume? New EBS volume from snapshot?
• Attach and it’s ready to go • Initialize for best performance
• Random read across volume
https://amzn.to/2FPS2TS
EBS volume initialization
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When to RAID0
• Storage requirement >16 TiB
• Throughput requirement >1000 MiB/s
• IOPS requirement >64,000 @ 16K
To RAID or not to RAID
EBS EBS EBS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Avoid RAID for redundancy
• EBS data is already replicated
• RAID1 halves available EBS bandwidth
• RAID5/6 loses 20% to 30% of usable I/O to parity
To RAID or not to RAID
EBS EBS EBS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EBS Cost Optimization
Delete unattached volumes
Resize Volumes
Change Volume Type
Delete Stale Snapshots
Use EBS native encryption
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Amazon Aurora 深度探討
Amazon Aurora 深度探討Amazon Aurora 深度探討
Amazon Aurora 深度探討
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319
 
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech TalksDeep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
Deep Dive on Amazon EC2 Accelerated Computing - AWS Online Tech Talks
 
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
Aurora Serverless: Scalable, Cost-Effective Application Deployment (DAT336) -...
 
How to Bring Microsoft Apps to AWS - AWS Online Tech Talks
How to Bring Microsoft Apps to AWS - AWS Online Tech TalksHow to Bring Microsoft Apps to AWS - AWS Online Tech Talks
How to Bring Microsoft Apps to AWS - AWS Online Tech Talks
 
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
 
SRV302 Deep Dive: Hybrid Cloud Storage with AWS Storage Gateway
 SRV302 Deep Dive: Hybrid Cloud Storage with AWS Storage Gateway SRV302 Deep Dive: Hybrid Cloud Storage with AWS Storage Gateway
SRV302 Deep Dive: Hybrid Cloud Storage with AWS Storage Gateway
 
Migrating Your Oracle & SQL Server Databases to Amazon Aurora (DAT318) - AWS ...
Migrating Your Oracle & SQL Server Databases to Amazon Aurora (DAT318) - AWS ...Migrating Your Oracle & SQL Server Databases to Amazon Aurora (DAT318) - AWS ...
Migrating Your Oracle & SQL Server Databases to Amazon Aurora (DAT318) - AWS ...
 
Optimize Your SQL Server Licenses on Amazon Web Services (DAT210) - AWS re:In...
Optimize Your SQL Server Licenses on Amazon Web Services (DAT210) - AWS re:In...Optimize Your SQL Server Licenses on Amazon Web Services (DAT210) - AWS re:In...
Optimize Your SQL Server Licenses on Amazon Web Services (DAT210) - AWS re:In...
 
[NEW LAUNCH!] Introducing Amazon Managed Streaming for Kafka (Amazon MSK) (AN...
[NEW LAUNCH!] Introducing Amazon Managed Streaming for Kafka (Amazon MSK) (AN...[NEW LAUNCH!] Introducing Amazon Managed Streaming for Kafka (Amazon MSK) (AN...
[NEW LAUNCH!] Introducing Amazon Managed Streaming for Kafka (Amazon MSK) (AN...
 
Amazon EFS: Deep Dive
Amazon EFS: Deep DiveAmazon EFS: Deep Dive
Amazon EFS: Deep Dive
 
[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...
[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...
[NEW LAUNCH!] AWS IoT Device Tester: Enable Your Edge Devices for AWS IoT (IO...
 
Real-World Use Cases for Amazon DynamoDB (DAT333) - AWS re:Invent 2018
Real-World Use Cases for Amazon DynamoDB (DAT333) - AWS re:Invent 2018Real-World Use Cases for Amazon DynamoDB (DAT333) - AWS re:Invent 2018
Real-World Use Cases for Amazon DynamoDB (DAT333) - AWS re:Invent 2018
 
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
Deep Learning Applications Using TensorFlow, ft. Advanced Microgrid Solutions...
 
Automating Backup and Archiving on AWS with Commvault (STG358) - AWS re:Inven...
Automating Backup and Archiving on AWS with Commvault (STG358) - AWS re:Inven...Automating Backup and Archiving on AWS with Commvault (STG358) - AWS re:Inven...
Automating Backup and Archiving on AWS with Commvault (STG358) - AWS re:Inven...
 
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
Hands-On Building and Deploying .NET Applications on AWS (DEV331-R1) - AWS re...
 
Accelerate Your Analytic Queries with Amazon Aurora Parallel Query (DAT362) -...
Accelerate Your Analytic Queries with Amazon Aurora Parallel Query (DAT362) -...Accelerate Your Analytic Queries with Amazon Aurora Parallel Query (DAT362) -...
Accelerate Your Analytic Queries with Amazon Aurora Parallel Query (DAT362) -...
 
Developing with .NET Core on AWS: What's New (DEV318-R1) - AWS re:Invent 2018
Developing with .NET Core on AWS: What's New (DEV318-R1) - AWS re:Invent 2018Developing with .NET Core on AWS: What's New (DEV318-R1) - AWS re:Invent 2018
Developing with .NET Core on AWS: What's New (DEV318-R1) - AWS re:Invent 2018
 
SRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon AuroraSRV308 Deep Dive on Amazon Aurora
SRV308 Deep Dive on Amazon Aurora
 
DEM19 Advanced Auto Scaling and Deployment Tools for Kubernetes and ECS
DEM19 Advanced Auto Scaling and Deployment Tools for Kubernetes and ECSDEM19 Advanced Auto Scaling and Deployment Tools for Kubernetes and ECS
DEM19 Advanced Auto Scaling and Deployment Tools for Kubernetes and ECS
 

Ähnlich wie Optimizing Amazon EBS for Performance (CMP371) - AWS re:Invent 2018

Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeDeep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Amazon Web Services
 

Ähnlich wie Optimizing Amazon EBS for Performance (CMP371) - AWS re:Invent 2018 (20)

SRV321 Deep Dive on Amazon EBS
SRV321 Deep Dive on Amazon EBSSRV321 Deep Dive on Amazon EBS
SRV321 Deep Dive on Amazon EBS
 
SRV321 Deep Dive on Amazon EBS
 SRV321 Deep Dive on Amazon EBS SRV321 Deep Dive on Amazon EBS
SRV321 Deep Dive on Amazon EBS
 
Amazon EBS: Deep Dive
Amazon EBS: Deep DiveAmazon EBS: Deep Dive
Amazon EBS: Deep Dive
 
Tech Talks On Site- Edição de Agosto- Armazenamento em AWS
Tech Talks On Site- Edição de Agosto- Armazenamento em AWSTech Talks On Site- Edição de Agosto- Armazenamento em AWS
Tech Talks On Site- Edição de Agosto- Armazenamento em AWS
 
STG306_Deep Dive on Amazon EBS
STG306_Deep Dive on Amazon EBSSTG306_Deep Dive on Amazon EBS
STG306_Deep Dive on Amazon EBS
 
CMP310_Deep Dive on Amazon EBS
CMP310_Deep Dive on Amazon EBSCMP310_Deep Dive on Amazon EBS
CMP310_Deep Dive on Amazon EBS
 
Amazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration Service
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
 
Webinar AWS: Desmistificando a Nuvem
Webinar AWS: Desmistificando a NuvemWebinar AWS: Desmistificando a Nuvem
Webinar AWS: Desmistificando a Nuvem
 
Amazon Elastic Block Store for Application Storage
Amazon Elastic Block Store for Application StorageAmazon Elastic Block Store for Application Storage
Amazon Elastic Block Store for Application Storage
 
SQL Server on AWS
SQL Server on AWSSQL Server on AWS
SQL Server on AWS
 
SQL Server on AWS
SQL Server on AWSSQL Server on AWS
SQL Server on AWS
 
SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
 SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
 
Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310 Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310
 
Amazon Relational Database Service – How is it different to what you do today ?
Amazon Relational Database Service – How is it different to what you do today ?Amazon Relational Database Service – How is it different to what you do today ?
Amazon Relational Database Service – How is it different to what you do today ?
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
 
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
 
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeDeep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
 
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 ...
 
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
 

Mehr von 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
 

Mehr von 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
 

Optimizing Amazon EBS for Performance (CMP371) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Optimizing Amazon EBS for Performance Sajee Mathew Principal Solutions Architect AWS C M P 3 1 7
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS Volume Types
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS volume types HDDSSD Provisioned IOPS SSD io1 General Purpose SSD gp2 Throughput Optimized HDD st1 sc1 Cold HDD
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS use cases HDDSSD Relational Databases MySQL, SQL Server, PostgreSQL, SAP, Oracle NoSQL Databases Cassandra, MongoDB, CouchDB Big Data , Analytics Kafka, Splunk, Hadoop, Data Warehousing File / Media CIFS/NFS, Transcoding, Encoding, Rendering
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. More details: https://amzn.to/2m9v2ao • Dedicated network bandwidth for Amazon EBS I/O • Enabled by default on most current generation instances • Can be enabled at instance launch or on a running instance • Not an option on some 10-Gbps instance types • (c3.8xlarge, r3.8xlarge, i2.8xlarge) What is an EBS-optimized instance?
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. c4.large Dedicated to Amazon EBS 500 Mbps ~ 62.5 MiB/s 2 TiB GP2 volume: 6,000 IOPS 160 MiB/s max throughput 4,000 16K IOPS c4.2xlarge Dedicated to Amazon EBS 1 Gbps ~ 125 MiB/s 8,000 16KB IOPS 2 TiB GP2 volume: 6,000 IOPS 160 MiB/s max throughput Performance: EBS-optimized
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Avoid Volume/Instance mismatch Instances have EBS performance thresholds EBS volumes have performance thresholds The lower of these two will dictate your EBS performance
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Choosing an Amazon EBS volume type i3 gp2 Latency? < 1 ms Single-digit ms Which is more important? Cost Performance IOPS ≤ 80,000> 80,000 is more important
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Choosing an Amazon EBS volume type i3 gp2 io1 Latency? < 1 ms Single-digit ms Which is more important? Cost Performance IOPS ≤ 80,000> 80,000 is more important Throughput?
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Choosing an Amazon EBS volume type Throughput is more important Small, random I/O Large, sequential I/O i3 gp2 io1 st1 d2 Latency? < 1 ms Single-digit ms ≤ 1,750 MiB/s Aggregate throughput? > 1,750 MiB/s Which is more important? Cost Performance IOPS ≤ 80,000> 80,000 is more important Which is more important? Cost Performance
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Choosing an Amazon EBS volume type Throughput is more important Small, random I/O Large, sequential I/O i3 gp2 io1 sc1 st1 d2 Latency? < 1 ms Single-digit ms ≤ 1,750 MiB/s Aggregate throughput? > 1,750 MiB/s Which is more important? Cost Performance IOPS ≤ 80,000> 80,000 is more important Which is more important? Cost Performance
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Choosing an Amazon EBS volume type Throughput is more important Small, random I/O Large, sequential I/O i3 gp2 io1 sc1 st1 d2 Latency? < 1 ms Single-digit ms ≤ 1,750 MiB/s Aggregate throughput? > 1,750 MiB/s Which is more important? Cost Performance IOPS ≤ 80,000> 80,000 is more important Which is more important? Cost Performance
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New improvements
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New announcements 2x improvement for Provisioned IOPS volumes • IOPS increase from 32,000 IOPS to 64,000 • Throughput Increase from 500 MB/s to 1,000 MB/s per volume • Volumes must be attached to Nitro based Amazon EC2 instances 60% peak performance increase for gp2 volumes • For volumes > 5.334 TB: IOPS increase from 10K to 16K • For volumes > 334 GB: Throughput increase from 160MB/sec to 256MB/sec
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hybrid volume use case Case study: Running Cassandra on Amazon EBS c4 gp2 st1 Data files Commit log i2
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Volumes: Features Increase volume size Increase/decrease provisioned IOPS Change volume type sc1 magnetic
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How to modify 1. Snapshot volume 2. Modify volume 3. Monitor modification 4. Extend filesystem (if necessary)
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Elastic Volumes: Automation ideas • Publish a “free space” metric to an Amazon CloudWatch and use AWS Lambda + AWS Systems Manager to resize the volume and the file system • Use an Amazon CloudWatch alarm to watch for a volume that is running at or near its IOPS limit or exhausting burst balance • Initiate workflow to provision additional IOPS Right-sizing: https://github.com/awslabs/aws-elastic-volumes
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hybrid volume use case st1 Case study: https://amzn.to/2zefJmI/ Transaction logs “We’ve seen much stronger performance for our database backup workloads with the Amazon EBS ST1 volumes, and we’re also saving 75 percent on our monthly backup costs.” - Randy Young, director of cloud operations, Infor i2 st1 Full backups st1 Partial backups SQL Server Database EBS snapshots
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Do you need to initialize EBS volumes? It depends
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. New EBS volume? New EBS volume from snapshot? • Attach and it’s ready to go • Initialize for best performance • Random read across volume https://amzn.to/2FPS2TS EBS volume initialization
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. When to RAID0 • Storage requirement >16 TiB • Throughput requirement >1000 MiB/s • IOPS requirement >64,000 @ 16K To RAID or not to RAID EBS EBS EBS
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Avoid RAID for redundancy • EBS data is already replicated • RAID1 halves available EBS bandwidth • RAID5/6 loses 20% to 30% of usable I/O to parity To RAID or not to RAID EBS EBS EBS
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. EBS Cost Optimization Delete unattached volumes Resize Volumes Change Volume Type Delete Stale Snapshots Use EBS native encryption
  • 29. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.