SlideShare una empresa de Scribd logo
1 de 56
Descargar para leer sin conexión
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Debanjan Saha
GM, Amazon Aurora
11/29/2016
Getting started with Amazon Aurora
Linda Xu
Principal Architect, Ticketmaster
Outline
► What is Amazon Aurora
 Background and history
► What you need to know about Aurora
 Differentiators; use cases; cost of ownership
► Hear directly from one of our customers
 Ticketmaster will share their experience
A bit of history …
Re-imagining relational databases for the cloud era
Relational databases were not designed for the cloud
Multiple layers of
functionality all in a
monolithic stack
SQL
Transactions
Caching
Logging
Not much has changed in last 20 years
Even when you scale it out, you’re still replicating the same stack
SQL
Transactions
Caching
Logging
SQL
Transactions
Caching
Logging
Application
SQL
Transactions
Caching
Logging
SQL
Transactions
Caching
Logging
Application
SQL
Transactions
Caching
Logging
SQL
Transactions
Caching
Logging
Storage
Application
Re-imagining relational database
Automate administrative tasks – fully managed service
1
2
3
Scale-out and distributed design
Service-oriented architecture leveraging AWS services
Scale-out, distributed, multi-tenant architecture
Master Replica Replica Replica
Availability
Zone 1
Shared storage volume
Availability
Zone 2
Availability
Zone 3
Storage nodes with SSDs
 Purpose-built log-structured distributed
storage system designed for databases
 Storage volume is striped across
hundreds of storage nodes distributed
over 3 different availability zones
 Six copies of data, two copies in each
availability zone to protect against
AZ+1 failures
 Plan to apply same principles to other
layers of the stack
SQL
Transactions
Caching
SQL
Transactions
Caching
SQL
Transactions
Caching
Leveraging cloud ecosystem
Lambda
S3
IAM
CloudWatch
Invoke Lambda events from stored procedures/triggers.
Load data from S3, store snapshots and backups in S3.
Use IAM roles to manage database access control.
Upload systems metrics and audit logs to CloudWatch.
Automate administrative tasks
Schema design
Query construction
Query optimization
Automatic fail-over
Backup & recovery
Isolation & security
Industry compliance
Push-button scaling
Automated patching
Advanced monitoring
Routine maintenance
Takes care of your time-consuming database management tasks,
freeing you to focus on your applications and business
You
AWS
Meet Amazon Aurora ……
Database reimagined for the cloud
 Speed and availability of high-end commercial databases
 Simplicity and cost-effectiveness of open source databases
 Drop-in compatibility with MySQL
 Simple pay as you go pricing
Delivered as a managed service
Aurora is used by:
2/3 of top 100 AWS customers
8 of top 10 gaming customers
Aurora customer adoption
Fastest growing service in AWS history
Who are moving to Aurora and why?
Customers using
commercial engines
Customers using
MySQL engines
 Higher performance – up to 5x
 Better availability and durability
 Reduces cost – up to 60%
 Easy migration; no application change
 One tenth of the cost; no licenses
 Integration with cloud ecosystem
 Comparable performance and availability
 Migration tooling and services
Amazon Aurora is fast …
5x faster than MySQL
WRITE PERFORMANCE READ PERFORMANCE
MySQL SysBench results
R3.8XL: 32 cores / 244 GB RAM
5X faster than RDS MySQL 5.6 & 5.7
Five times higher throughput than stock MySQL
based on industry standard benchmarks.
0
25,000
50,000
75,000
100,000
125,000
150,000
0
100,000
200,000
300,000
400,000
500,000
600,000
700,000
Aurora MySQL 5.6 MySQL 5.7
Aurora Scaling
With user connection With number of tables
With database size - SYSBENCH With database size - TPCC
Connections
Amazon
Aurora
RDS MySQL
w/ 30K IOPS
50 40,000 10,000
500 71,000 21,000
5,000 110,000 13,000
Tables
Amazon
Aurora
MySQL
I2.8XL
local SSD
RDS MySQL
w/ 30K IOPS
(single AZ)
10 60,000 18,000 25,000
100 66,000 19,000 23,000
1,000 64,000 7,000 8,000
10,000 54,000 4,000 5,000
8x
U P T O
F A S T E R
11x
U P T O
F A S T E R
DB Size
Amazon
Aurora
RDS MySQL
w/ 30K IOPS
1GB 107,000 8,400
10GB 107,000 2,400
100GB 101,000 1,500
1TB 26,000 1,200
DB Size Amazon Aurora
RDS MySQL
w/ 30K IOPS
80GB 12,582 585
800GB 9,406 69
21
U P T O
F A S T E R
136x
U P T O
F A S T E R
Real-life data – gaming workload
Aurora vs. RDS MySQL – r3.4XL, MAZ
Aurora 3X faster on r3.4xlarge
BINLOG DATA DOUBLE-WRITELOG FRM FILES
TYPE OF WRITE
MYSQL WITH REPLICA
EBS mirrorEBS mirror
AZ 1 AZ 2
Amazon S3
EBS
Amazon Elastic
Block Store (EBS)
Primary
Instance
Replica
Instance
1
2
3
4
5
AZ 1 AZ 3
Primary
Instance
Amazon S3
AZ 2
Replica
Instance
ASYNC
4/6 QUORUM
DISTRIBUT
ED WRITES
Replica
Instance
AMAZON AURORA
780K transactions
7,388K I/Os per million txns (excludes mirroring, standby)
Average 7.4 I/Os per transaction
MySQL IO profile for 30 min Sysbench run
27,378K transactions 35X MORE
0.95 I/Os per transaction (6X amplification) 7.7X LESS
Aurora IO profile for 30 min Sysbench run
How did we achieve this?
New performance enhancements
► Smart selector
► Logical read ahead
► Read views
Read performance
Write performance
Meta-data access
► NUMA aware scheduler
► Latch-free lock manager
► Instant schema update
► B-Tree concurrency
► Catalog concurrency
► Faster index build
Use case: MySQL shard consolidation
Master
Read
Replica
Shared distributed
storage volume
M S
M M
M
S S
S
MySQL shards Aurora cluster
Customer, a global SAAS provider, was using hundreds of MySQL shards in order to avoid MySQL
performance and connection scalability bottlenecks
 Consolidated multiple 29 MySQL shards to single r3.4xlarge Aurora cluster
 Even after consolidation cluster utilization is still 30% with plenty of headroom to grow.
Use case: Massively concurrent event store
For messaging, gaming, IoT
 ~22 million accesses per hour (70% read, 30%
write) - billing grows linearly with the traffic.
 Scalability bottleneck where certain portions
(partitions) of data became “hot” and overloaded
with requests.
Customer, a global mobile messaging platform,
was using NoSQL key-value database for user
messages:
New Aurora-backed data store
reduces operational costs by 40%
 The cost of reading data (70% of
user traffic) almost eliminated due
to memory-bound nature of the
workload.
 Only pay for IO used, not
provisioned. Also, Aurora does
automatic hot spot management.
So, no need to over provision IOPS
based on IO requirements of
hottest partition.
What about availability
“Performance only matters if your database is up”
Six copies across three availability zones
4 out 6 write quorum; 3 out of 6 read quorum
Peer-to-peer replication for repairs
Volume striped across hundreds of storage nodes
SQL
Transaction
AZ 1 AZ 2 AZ 3
Caching
SQL
Transaction
AZ 1 AZ 2 AZ 3
Caching
Read and write availabilityRead availability
6-way replicated storage
Survives catastrophic failures
Up to 15 promotable read replicas
Master
Read
Replica
Read
Replica
Read
Replica
Shared distributed storage volume
Reader end-point
► Up to 15 promotable read replicas across multiple availability zones
► Re-do log based replication leads to low replica lag – typically < 10ms
► Reader end-point with load balancing; customer specifiable failover order
Use case: Near real-time analytics and reporting
Master
Read
Replica
Read
Replica
Read
Replica
Shared distributed storage volume
Reader end-point
A customer in the travel industry migrated to Aurora for
their core reporting application, which is accessed by
~1,000 internal users.
 Fast provisioning: replicas can be created,
deleted and scaled within minutes based on load.
 Load balancing: read-only queries are load
balanced across replica fleet through a DNS
endpoint – no application configuration needed
when replicas are added or removed.
 Low replication lag: allows mining for fresh data
with no delays, immediately after the data is loaded.
 Faster, concurrent access: significant
performance gains for core analytics queries - some
of the queries executing in 1/100th the original time.
► Up to 15 promotable read replicas
► Low replica lag – typically < 10ms
► Reader end-point with load balancing
Automated failover in 15 secs
App
RunningFailure Detection DNS Propagation
Recovery Recovery
DB
Failure
MYSQL
App
Running
Failure Detection DNS Propagation
Recovery
DB
Failure
AURORA WITH MARIADB DRIVER
5 - 6 s e c
5 - 1 0 s e c
Cross-region read replicas
Faster disaster recovery and enhanced data locality
Promote read-replica to a master
for faster recovery in the event of
disaster
Bring data close to your
customer’s applications in
different regions
Promote to a master for easy
migration
New availability features
► Read replica end-point
► Specifiable fail-over order
► Faster fail-overs < 15 secs
Read replicas
X-region DR
► Cross-region replication
► Cross-region snapshot copy
► Cross-account snapshot sharing
*Coming soon*
*Coming soon*
Amazon Aurora is easy to use
Automated storage management, security and compliance,
advanced monitoring, database migration.
Simplify storage management
 Continuous, incremental backups to Amazon S3
 Instantly create user snapshots—no performance impact
 Automatic storage scaling up to 64 TB—no performance impact
 Automatic restriping, mirror repair, hot spot management, encryption
Up to 64TB of storage – auto-incremented in 10GB units
up to 64 TB
Security and compliance
 Encryption to secure data at rest using
customer managed keys
• AES-256; hardware accelerated
• All blocks on disk and in Amazon S3 are encrypted
• Key management via AWS KMS
 Encrypted cross-region replication,
snapshot copy - SSL to secure data in
transit
 Advanced auditing and logging without
any performance impact
 Industry standard security and data
protection – SOC, ISO, PCI/DSS,
HIPPA/BAA
Data Key 1 Data Key 2 Data Key 3 Data Key 4
Customer Master
Key(s)
Storage
Node
Storage
Node
Storage
Node
Storage
Node
Database
Engine
Advanced monitoring
50+ system/OS metrics | sorted process list view | 1-60 sec granularity
alarms on specific metrics | egress to CloudWatch Logs | integration with 3rd-party tools
ALARM
Amazon Aurora migration options
Source database From where Recommended option
RDS
EC2, on premise
EC2, on premise, RDS
Console based automated
snapshot ingestion and catch
up via binlog replication.
Binary snapshot ingestion
through S3 and catch up via
binlog replication.
Schema conversion using
SCT and data migration via
DMS.
Leverage MySQL and AWS ecosystems
Query and
Monitoring
Business
Intelligence
Source: Amazon
Data Integration
“We ran our compatibility test suites against Amazon Aurora and everything
just worked." - Dan Jewett, Vice President of Product Management at Tableau
Lambda IAM
CloudWatch
S3
Route53
KMS
AWS Ecosystem
VPC SWF
Use case: Event driven data pipeline
 Simplify custom database logic by
moving it from functions, stored
procedures etc. to cloud-based code
repository.
 Enable database developers to create
rich software features accessible from
SQL layer.
 Run code in response to ad-hoc
requests, triggers or scheduled
database events in any language
supported by AWS Lambda (Java,
Node.js, Python).
 Accelerate the migration from any
programmable database
Amazon S3
Data Lake
Amazon Aurora
Load From S3
S3 Event Driven
Lambda Call
Lambda Call
S3 Load Completed
Notification
Delivered
AWS Services
Generating Data
Data Flow
Call / Notification Flow
Amazon Aurora saves you money
1/10th of the cost of commercial databases
Cheaper than even MySQL
Cost of ownership: Aurora vs. MySQL
MySQL configuration hourly cost
Primary
r3.8XL
Standby
r3.8XL
Replica
r3.8XL
Replica
R3.8XL
Storage
6 TB / 10 K PIOP
Storage
6 TB / 10 K PIOP
Storage
6 TB / 5 K PIOP
Storage
6 TB / 5 K PIOP
$1.33/hr
$1.33/hr
$1.33/hr $1.33/hr
$2,42/hr
$2,42/hr $2,42/hr
Instance cost: $5.32 / hr
Storage cost: $8.30 / hr
Total cost: $13.62 / hr
$2,42/hr
Cost of ownership: Aurora vs. MySQL
Aurora configuration hourly cost
Instance cost: $4.86 / hr
Storage cost: $4.43 / hr
Total cost: $9.29 / hr
Primary
r3.8XL
Replica
r3.8XL
Replica
R3.8XL
Storage / 6 TB
$1.62 / hr $1.62 / hr $1.62 / hr
$4.43 / hr
*At a macro level Aurora saves over 50% in
storage cost compared to RDS MySQL.
31.8%
Savings
 No idle standby instance
 Single shared storage volume
 No PIOPs – pay for use I/O
 Reduction in overall IOP
Cost of ownership: Aurora vs. MySQL
Further opportunity for saving
Instance cost: $2.43 / hr
Storage cost: $4.43 / hr
Total cost: $6.86 / hrStorage IOPs assumptions:
1. Average IOPs is 50% of Max IOPs
2. 50% savings from shipping logs vs. full pages
49.6%
Savings
Primary
r3.8XL
Replica
r3.8XL
Replica
r3.8XL
Storage / 6TB
$0.81 / hr $0.81 / hr $0.81 / hr
$4.43 / hr
r3.4XL r3.4XL r3.4XL
 Use smaller instance size
 Pay-as-you-go storage
Higher performance, lower Cost
 Fewer instances needed
 Smaller instances can be used
Safe.com lowered their bill by 40% by switching from sharded
MySQL to a single Aurora instance.
Double Down Interactive (gaming) lowered their bill by 67%
while also achieving better latencies (most queries ran faster)
and lower CPU utilization.
 No need to pre-provision storage
 No additional storage for read replicas
t2 RI discounts
Up to 34% with a 1-year RI
Up to 57% with a 3-year RI
vCPU Mem Hourly Price
db.t2.medium 2 4 $0.082
db.r3.large 2 15.25 $0.29
db.r3.xlarge 4 30.5 $0.58
db.r3.2xlarge 8 61 $1.16
db.r3.4xlarge 16 122 $2.32
db.r3.8xlarge 32 244 $4.64
R3.large is too expensive for dev/test?
We just introduced t2.medium
*Prices are for Virginia
*NEW*
Other Aurora sessions at re:Invent
DAT303 - Deep Dive on Amazon Aurora
Thu 11:30-12:30, Venetian, Level 4, Delfino 4004
DAT301 - Amazon Aurora Best Practices: Getting the Best Out of Your Databases
Wed 5:30-6:30, Venetian, Level 4, Lando 4205
DAT322 - Workshop: Stretching Scalability: Doing more with Amazon Aurora
Option 1: Wed 2:00-4:30, Mirage, Trinidad B,
Option 2: Thu 2:30-5:00, Mirage, Antigua B
Have more questions
Rory Richardson, BD
roryrich@amazon.com
David Lang, PM
davelang@amazon.com
Linda Wu, PM
wulind@amazon.com
Debanjan Saha, GM
deban@amazon.com
Reach out to your super friendly Aurora team
Linda Xu
Principal Architect, Data @ Ticketmaster
20 years of database experience
https://www.linkedin.com/in/linda-yun-xu-8a53034
In a single year, we support:
► Over 26,000 Live Nation events
► Over 530M fans in more than 37 countries
► 465M ticket transactions
► More than 1B unique visits to our web front-end
Ticketmaster is a Top 5 ecommerce site
What we do …
One of the most famous musicians in the world has 400K concert tickets sold in a morning .
In a single year, we support:
► Over 26,000 Live Nation events
► Over 530M fans in more than 37 countries
► 465M ticket transactions
► More than 1B unique visits to our web front-end
Ticketmaster is a Top 5 ecommerce site
What we do …
One of the most famous musicians in the world has 400K concert tickets sold in a morning .
In a single year, we support:
► Over 26,000 Live Nation events
► Over 530M fans in more than 37 countries
► 465M ticket transactions
► More than 1B unique visits to our web front-end
Ticketmaster is a Top 5 ecommerce site
What we do …
One of the most famous musicians in the world has 400K concert tickets sold in a morning .
Our private cloud is made up of:
► Hundreds of Ticketmaster products
► Tens of thousands of servers
► Multiple Data Centers, globally
► More than 1,000 databases
• Oracle, MySQL, MongoDB, Teradata,
Microsoft SQL Server and PostgreSQL
Our IT infrastructure Today
Why we move to AWS?
Data center 2
Active
Data center 2
Passive
Data center 2
Active
Data center 2
Active
Readers Readers Readers
Writer
Writer
Challenges we face with MySQL
Ticketmaster has heavy MySQL use cases
Examples of our MySQL setup
• Read consistency cross slaves
• Single thread replication
• Application can cause high replication lags
Challenges we face with MySQL
Replication Lag
Scalability
Operations
• Manual failover
• Maintenance on multi-master setup
• Version updates
• Scaled for max capacity at all times
Where are we headed..
Where are we headed..
…. We are moving to AWS and to Aurora!
 Fully compatible with MySQL 5.6
 Migration from MySQL using MySQL replication
 Migration from Oracle leverages DMS and SCT
Why did we choose Aurora?
 Replication Setup - Auto Failover
 Reader and Writer Endpoint
 Tuned Parameters
 Auto minor version upgrade
 Vertically: Add more CPU and memory per instance
 Horizontally: Add more database instances
 Storage: Automatically add space and IOPs
Compatibility
Scalability
Ease of Operation
Our success story
Our MySQL application worked on Aurora without any code changes
Account Manager, our first product migrated to AWS.
 Migrated from MySQL 5.6 to Aurora
 0 issue be reported since launch
 Replication lag is only 20ms
 12 MySQL servers to 5 Aurora nodes
 Deployment time took from 1~2 hours to 20 minutes in AWS
 Build a new test environment took from 1 week to 30 minutes in AWS
55
Regular Business Traffic
 Infrastructure in code including database!
 We use terraformer to manage Aurora
• Scale in/out horizontally within 10 minutes, without downtime
• Scale up/down vertically with 30s of failover downtime
Our Tools: Terraformer
Peak Traffic
Thank you!

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Introduction to EC2
Introduction to EC2Introduction to EC2
Introduction to EC2
 
Deep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated ComputingDeep Dive on Amazon EC2 Accelerated Computing
Deep Dive on Amazon EC2 Accelerated Computing
 
Backup and archiving in the aws cloud
Backup and archiving in the aws cloudBackup and archiving in the aws cloud
Backup and archiving in the aws cloud
 
Intro to AWS: Amazon EC2 and Compute Services
Intro to AWS: Amazon EC2 and Compute ServicesIntro to AWS: Amazon EC2 and Compute Services
Intro to AWS: Amazon EC2 and Compute Services
 
Introduction to Amazon Aurora
Introduction to Amazon AuroraIntroduction to Amazon Aurora
Introduction to Amazon Aurora
 
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingAurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Aurora는 어떻게 다른가 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 
Deep Dive on Amazon RDS (Relational Database Service)
Deep Dive on Amazon RDS (Relational Database Service)Deep Dive on Amazon RDS (Relational Database Service)
Deep Dive on Amazon RDS (Relational Database Service)
 
AWS 비용 효율화를 고려한 Reserved Instance + Savings Plan 옵션 - 박윤 어카운트 매니저 :: AWS Game...
AWS 비용 효율화를 고려한 Reserved Instance + Savings Plan 옵션 - 박윤 어카운트 매니저 :: AWS Game...AWS 비용 효율화를 고려한 Reserved Instance + Savings Plan 옵션 - 박윤 어카운트 매니저 :: AWS Game...
AWS 비용 효율화를 고려한 Reserved Instance + Savings Plan 옵션 - 박윤 어카운트 매니저 :: AWS Game...
 
Application & Account Monitoring in AWS
Application & Account Monitoring in AWSApplication & Account Monitoring in AWS
Application & Account Monitoring in AWS
 
20180322 AWS Black Belt Online Seminar AWS Snowball Edge
20180322 AWS Black Belt Online Seminar AWS Snowball Edge20180322 AWS Black Belt Online Seminar AWS Snowball Edge
20180322 AWS Black Belt Online Seminar AWS Snowball Edge
 
AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3) AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3)
 
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
Introduction to AWS Cloud Computing | AWS Public Sector Summit 2016
 
Introduction to Cloud computing and AWS services
Introduction to Cloud computing and AWS servicesIntroduction to Cloud computing and AWS services
Introduction to Cloud computing and AWS services
 
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
 
AWS Webcast - Disaster Recovery
AWS Webcast - Disaster RecoveryAWS Webcast - Disaster Recovery
AWS Webcast - Disaster Recovery
 
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
 
Disaster Recovery of on-premises IT infrastructure with AWS
Disaster Recovery of on-premises IT infrastructure with AWS Disaster Recovery of on-premises IT infrastructure with AWS
Disaster Recovery of on-premises IT infrastructure with AWS
 
DDoS Mitigation Techniques and AWS Shield
DDoS Mitigation Techniques and AWS ShieldDDoS Mitigation Techniques and AWS Shield
DDoS Mitigation Techniques and AWS Shield
 
Amazon ec2
Amazon ec2Amazon ec2
Amazon ec2
 
Amazon S3 and EC2
Amazon S3 and EC2Amazon S3 and EC2
Amazon S3 and EC2
 

Destacado

Destacado (20)

AWS re:Invent 2016: Amazon Aurora Best Practices: Getting the Best Out of You...
AWS re:Invent 2016: Amazon Aurora Best Practices: Getting the Best Out of You...AWS re:Invent 2016: Amazon Aurora Best Practices: Getting the Best Out of You...
AWS re:Invent 2016: Amazon Aurora Best Practices: Getting the Best Out of You...
 
AWS re:Invent 2016: Amazon Aurora Deep Dive (GPST402)
AWS re:Invent 2016: Amazon Aurora Deep Dive (GPST402)AWS re:Invent 2016: Amazon Aurora Deep Dive (GPST402)
AWS re:Invent 2016: Amazon Aurora Deep Dive (GPST402)
 
AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)
AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)
AWS re:Invent 2016: Deep Dive on Amazon Aurora (DAT303)
 
AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)
AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)
AWS re:Invent 2016: Deep Dive on Amazon Relational Database Service (DAT305)
 
AWS re:Invent 2016: AWS Database State of the Union (DAT320)
AWS re:Invent 2016: AWS Database State of the Union (DAT320)AWS re:Invent 2016: AWS Database State of the Union (DAT320)
AWS re:Invent 2016: AWS Database State of the Union (DAT320)
 
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 re:Invent 2016: Workshop: Stretching Scalability: Doing more with Amazon ...
AWS re:Invent 2016: Workshop: Stretching Scalability: Doing more with Amazon ...AWS re:Invent 2016: Workshop: Stretching Scalability: Doing more with Amazon ...
AWS re:Invent 2016: Workshop: Stretching Scalability: Doing more with Amazon ...
 
Using Amazon CloudSearch With Databases - CloudSearch Meetup 061913
Using Amazon CloudSearch With Databases - CloudSearch Meetup 061913Using Amazon CloudSearch With Databases - CloudSearch Meetup 061913
Using Amazon CloudSearch With Databases - CloudSearch Meetup 061913
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
AWS re:Invent 2016: Disrupting Big Data with Cost-effective Compute (CMP302)
AWS re:Invent 2016: Disrupting Big Data with Cost-effective Compute (CMP302)AWS re:Invent 2016: Disrupting Big Data with Cost-effective Compute (CMP302)
AWS re:Invent 2016: Disrupting Big Data with Cost-effective Compute (CMP302)
 
Deep Dive on Amazon Aurora - Covering New Feature Announcements
Deep Dive on Amazon Aurora - Covering New Feature AnnouncementsDeep Dive on Amazon Aurora - Covering New Feature Announcements
Deep Dive on Amazon Aurora - Covering New Feature Announcements
 
AWS re:Invent 2016: How Citus Enables Scalable PostgreSQL on AWS (DAT207)
AWS re:Invent 2016: How Citus Enables Scalable PostgreSQL on AWS (DAT207)AWS re:Invent 2016: How Citus Enables Scalable PostgreSQL on AWS (DAT207)
AWS re:Invent 2016: How Citus Enables Scalable PostgreSQL on AWS (DAT207)
 
AWS March 2016 Webinar Series - Building Big Data Solutions with Amazon EMR a...
AWS March 2016 Webinar Series - Building Big Data Solutions with Amazon EMR a...AWS March 2016 Webinar Series - Building Big Data Solutions with Amazon EMR a...
AWS March 2016 Webinar Series - Building Big Data Solutions with Amazon EMR a...
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
Amazon Aurora New Features - September 2016 Webinar Series
Amazon Aurora New Features - September 2016 Webinar SeriesAmazon Aurora New Features - September 2016 Webinar Series
Amazon Aurora New Features - September 2016 Webinar Series
 
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon AuroraNEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
 
AWS re:Invent 2016: How DataXu scaled its Attribution System to handle billio...
AWS re:Invent 2016: How DataXu scaled its Attribution System to handle billio...AWS re:Invent 2016: How DataXu scaled its Attribution System to handle billio...
AWS re:Invent 2016: How DataXu scaled its Attribution System to handle billio...
 
AWS Storage and Database Architecture Best Practices (DAT203) | AWS re:Invent...
AWS Storage and Database Architecture Best Practices (DAT203) | AWS re:Invent...AWS Storage and Database Architecture Best Practices (DAT203) | AWS re:Invent...
AWS Storage and Database Architecture Best Practices (DAT203) | AWS re:Invent...
 

Similar a AWS re:Invent 2016: Getting Started with Amazon Aurora (DAT203)

Similar a AWS re:Invent 2016: Getting Started with Amazon Aurora (DAT203) (20)

What’s New in Amazon Aurora
What’s New in Amazon AuroraWhat’s New in Amazon Aurora
What’s New in Amazon Aurora
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
(DAT207) Amazon Aurora: The New Amazon Relational Database Engine
(DAT207) Amazon Aurora: The New Amazon Relational Database Engine(DAT207) Amazon Aurora: The New Amazon Relational Database Engine
(DAT207) Amazon Aurora: The New Amazon Relational Database Engine
 
Amazon Aurora TechConnect
Amazon Aurora TechConnect Amazon Aurora TechConnect
Amazon Aurora TechConnect
 
(DAT312) Using Amazon Aurora for Enterprise Workloads
(DAT312) Using Amazon Aurora for Enterprise Workloads(DAT312) Using Amazon Aurora for Enterprise Workloads
(DAT312) Using Amazon Aurora for Enterprise Workloads
 
What's New in Amazon Aurora
What's New in Amazon AuroraWhat's New in Amazon Aurora
What's New in Amazon Aurora
 
What’s New in Amazon Aurora for MySQL and PostgreSQL
What’s New in Amazon Aurora for MySQL and PostgreSQLWhat’s New in Amazon Aurora for MySQL and PostgreSQL
What’s New in Amazon Aurora for MySQL and PostgreSQL
 
getting started with amazon aurora
getting started with amazon auroragetting started with amazon aurora
getting started with amazon aurora
 
AWS November Webinar Series - Aurora Deep Dive
AWS November Webinar Series - Aurora Deep DiveAWS November Webinar Series - Aurora Deep Dive
AWS November Webinar Series - Aurora Deep Dive
 
Getting Started with Amazon Aurora
 Getting Started with Amazon Aurora Getting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
AWS June 2016 Webinar Series - Amazon Aurora Deep Dive - Optimizing Database ...
 
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
 
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
 
What's New in Amazon Aurora
What's New in Amazon AuroraWhat's New in Amazon Aurora
What's New in Amazon Aurora
 
Getting started with amazon aurora - Toronto
Getting started with amazon aurora - TorontoGetting started with amazon aurora - Toronto
Getting started with amazon aurora - Toronto
 
Deep Dive on Amazon Aurora
Deep Dive on Amazon AuroraDeep Dive on Amazon Aurora
Deep Dive on Amazon Aurora
 
What's new in Amazon Aurora - ADB207 - New York AWS Summit
What's new in Amazon Aurora - ADB207 - New York AWS SummitWhat's new in Amazon Aurora - ADB207 - New York AWS Summit
What's new in Amazon Aurora - ADB207 - New York AWS Summit
 
Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28
 

Más de 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
 

Más de 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
 

Último

Último (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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...
 
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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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...
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 

AWS re:Invent 2016: Getting Started with Amazon Aurora (DAT203)

  • 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Debanjan Saha GM, Amazon Aurora 11/29/2016 Getting started with Amazon Aurora Linda Xu Principal Architect, Ticketmaster
  • 2. Outline ► What is Amazon Aurora  Background and history ► What you need to know about Aurora  Differentiators; use cases; cost of ownership ► Hear directly from one of our customers  Ticketmaster will share their experience
  • 3. A bit of history … Re-imagining relational databases for the cloud era
  • 4. Relational databases were not designed for the cloud Multiple layers of functionality all in a monolithic stack SQL Transactions Caching Logging
  • 5. Not much has changed in last 20 years Even when you scale it out, you’re still replicating the same stack SQL Transactions Caching Logging SQL Transactions Caching Logging Application SQL Transactions Caching Logging SQL Transactions Caching Logging Application SQL Transactions Caching Logging SQL Transactions Caching Logging Storage Application
  • 6. Re-imagining relational database Automate administrative tasks – fully managed service 1 2 3 Scale-out and distributed design Service-oriented architecture leveraging AWS services
  • 7. Scale-out, distributed, multi-tenant architecture Master Replica Replica Replica Availability Zone 1 Shared storage volume Availability Zone 2 Availability Zone 3 Storage nodes with SSDs  Purpose-built log-structured distributed storage system designed for databases  Storage volume is striped across hundreds of storage nodes distributed over 3 different availability zones  Six copies of data, two copies in each availability zone to protect against AZ+1 failures  Plan to apply same principles to other layers of the stack SQL Transactions Caching SQL Transactions Caching SQL Transactions Caching
  • 8. Leveraging cloud ecosystem Lambda S3 IAM CloudWatch Invoke Lambda events from stored procedures/triggers. Load data from S3, store snapshots and backups in S3. Use IAM roles to manage database access control. Upload systems metrics and audit logs to CloudWatch.
  • 9. Automate administrative tasks Schema design Query construction Query optimization Automatic fail-over Backup & recovery Isolation & security Industry compliance Push-button scaling Automated patching Advanced monitoring Routine maintenance Takes care of your time-consuming database management tasks, freeing you to focus on your applications and business You AWS
  • 10. Meet Amazon Aurora …… Database reimagined for the cloud  Speed and availability of high-end commercial databases  Simplicity and cost-effectiveness of open source databases  Drop-in compatibility with MySQL  Simple pay as you go pricing Delivered as a managed service
  • 11. Aurora is used by: 2/3 of top 100 AWS customers 8 of top 10 gaming customers Aurora customer adoption Fastest growing service in AWS history
  • 12. Who are moving to Aurora and why? Customers using commercial engines Customers using MySQL engines  Higher performance – up to 5x  Better availability and durability  Reduces cost – up to 60%  Easy migration; no application change  One tenth of the cost; no licenses  Integration with cloud ecosystem  Comparable performance and availability  Migration tooling and services
  • 13. Amazon Aurora is fast … 5x faster than MySQL
  • 14. WRITE PERFORMANCE READ PERFORMANCE MySQL SysBench results R3.8XL: 32 cores / 244 GB RAM 5X faster than RDS MySQL 5.6 & 5.7 Five times higher throughput than stock MySQL based on industry standard benchmarks. 0 25,000 50,000 75,000 100,000 125,000 150,000 0 100,000 200,000 300,000 400,000 500,000 600,000 700,000 Aurora MySQL 5.6 MySQL 5.7
  • 15. Aurora Scaling With user connection With number of tables With database size - SYSBENCH With database size - TPCC Connections Amazon Aurora RDS MySQL w/ 30K IOPS 50 40,000 10,000 500 71,000 21,000 5,000 110,000 13,000 Tables Amazon Aurora MySQL I2.8XL local SSD RDS MySQL w/ 30K IOPS (single AZ) 10 60,000 18,000 25,000 100 66,000 19,000 23,000 1,000 64,000 7,000 8,000 10,000 54,000 4,000 5,000 8x U P T O F A S T E R 11x U P T O F A S T E R DB Size Amazon Aurora RDS MySQL w/ 30K IOPS 1GB 107,000 8,400 10GB 107,000 2,400 100GB 101,000 1,500 1TB 26,000 1,200 DB Size Amazon Aurora RDS MySQL w/ 30K IOPS 80GB 12,582 585 800GB 9,406 69 21 U P T O F A S T E R 136x U P T O F A S T E R
  • 16. Real-life data – gaming workload Aurora vs. RDS MySQL – r3.4XL, MAZ Aurora 3X faster on r3.4xlarge
  • 17. BINLOG DATA DOUBLE-WRITELOG FRM FILES TYPE OF WRITE MYSQL WITH REPLICA EBS mirrorEBS mirror AZ 1 AZ 2 Amazon S3 EBS Amazon Elastic Block Store (EBS) Primary Instance Replica Instance 1 2 3 4 5 AZ 1 AZ 3 Primary Instance Amazon S3 AZ 2 Replica Instance ASYNC 4/6 QUORUM DISTRIBUT ED WRITES Replica Instance AMAZON AURORA 780K transactions 7,388K I/Os per million txns (excludes mirroring, standby) Average 7.4 I/Os per transaction MySQL IO profile for 30 min Sysbench run 27,378K transactions 35X MORE 0.95 I/Os per transaction (6X amplification) 7.7X LESS Aurora IO profile for 30 min Sysbench run How did we achieve this?
  • 18. New performance enhancements ► Smart selector ► Logical read ahead ► Read views Read performance Write performance Meta-data access ► NUMA aware scheduler ► Latch-free lock manager ► Instant schema update ► B-Tree concurrency ► Catalog concurrency ► Faster index build
  • 19. Use case: MySQL shard consolidation Master Read Replica Shared distributed storage volume M S M M M S S S MySQL shards Aurora cluster Customer, a global SAAS provider, was using hundreds of MySQL shards in order to avoid MySQL performance and connection scalability bottlenecks  Consolidated multiple 29 MySQL shards to single r3.4xlarge Aurora cluster  Even after consolidation cluster utilization is still 30% with plenty of headroom to grow.
  • 20. Use case: Massively concurrent event store For messaging, gaming, IoT  ~22 million accesses per hour (70% read, 30% write) - billing grows linearly with the traffic.  Scalability bottleneck where certain portions (partitions) of data became “hot” and overloaded with requests. Customer, a global mobile messaging platform, was using NoSQL key-value database for user messages: New Aurora-backed data store reduces operational costs by 40%  The cost of reading data (70% of user traffic) almost eliminated due to memory-bound nature of the workload.  Only pay for IO used, not provisioned. Also, Aurora does automatic hot spot management. So, no need to over provision IOPS based on IO requirements of hottest partition.
  • 21. What about availability “Performance only matters if your database is up”
  • 22. Six copies across three availability zones 4 out 6 write quorum; 3 out of 6 read quorum Peer-to-peer replication for repairs Volume striped across hundreds of storage nodes SQL Transaction AZ 1 AZ 2 AZ 3 Caching SQL Transaction AZ 1 AZ 2 AZ 3 Caching Read and write availabilityRead availability 6-way replicated storage Survives catastrophic failures
  • 23. Up to 15 promotable read replicas Master Read Replica Read Replica Read Replica Shared distributed storage volume Reader end-point ► Up to 15 promotable read replicas across multiple availability zones ► Re-do log based replication leads to low replica lag – typically < 10ms ► Reader end-point with load balancing; customer specifiable failover order
  • 24. Use case: Near real-time analytics and reporting Master Read Replica Read Replica Read Replica Shared distributed storage volume Reader end-point A customer in the travel industry migrated to Aurora for their core reporting application, which is accessed by ~1,000 internal users.  Fast provisioning: replicas can be created, deleted and scaled within minutes based on load.  Load balancing: read-only queries are load balanced across replica fleet through a DNS endpoint – no application configuration needed when replicas are added or removed.  Low replication lag: allows mining for fresh data with no delays, immediately after the data is loaded.  Faster, concurrent access: significant performance gains for core analytics queries - some of the queries executing in 1/100th the original time. ► Up to 15 promotable read replicas ► Low replica lag – typically < 10ms ► Reader end-point with load balancing
  • 25. Automated failover in 15 secs App RunningFailure Detection DNS Propagation Recovery Recovery DB Failure MYSQL App Running Failure Detection DNS Propagation Recovery DB Failure AURORA WITH MARIADB DRIVER 5 - 6 s e c 5 - 1 0 s e c
  • 26. Cross-region read replicas Faster disaster recovery and enhanced data locality Promote read-replica to a master for faster recovery in the event of disaster Bring data close to your customer’s applications in different regions Promote to a master for easy migration
  • 27. New availability features ► Read replica end-point ► Specifiable fail-over order ► Faster fail-overs < 15 secs Read replicas X-region DR ► Cross-region replication ► Cross-region snapshot copy ► Cross-account snapshot sharing *Coming soon* *Coming soon*
  • 28. Amazon Aurora is easy to use Automated storage management, security and compliance, advanced monitoring, database migration.
  • 29. Simplify storage management  Continuous, incremental backups to Amazon S3  Instantly create user snapshots—no performance impact  Automatic storage scaling up to 64 TB—no performance impact  Automatic restriping, mirror repair, hot spot management, encryption Up to 64TB of storage – auto-incremented in 10GB units up to 64 TB
  • 30. Security and compliance  Encryption to secure data at rest using customer managed keys • AES-256; hardware accelerated • All blocks on disk and in Amazon S3 are encrypted • Key management via AWS KMS  Encrypted cross-region replication, snapshot copy - SSL to secure data in transit  Advanced auditing and logging without any performance impact  Industry standard security and data protection – SOC, ISO, PCI/DSS, HIPPA/BAA Data Key 1 Data Key 2 Data Key 3 Data Key 4 Customer Master Key(s) Storage Node Storage Node Storage Node Storage Node Database Engine
  • 31. Advanced monitoring 50+ system/OS metrics | sorted process list view | 1-60 sec granularity alarms on specific metrics | egress to CloudWatch Logs | integration with 3rd-party tools ALARM
  • 32. Amazon Aurora migration options Source database From where Recommended option RDS EC2, on premise EC2, on premise, RDS Console based automated snapshot ingestion and catch up via binlog replication. Binary snapshot ingestion through S3 and catch up via binlog replication. Schema conversion using SCT and data migration via DMS.
  • 33. Leverage MySQL and AWS ecosystems Query and Monitoring Business Intelligence Source: Amazon Data Integration “We ran our compatibility test suites against Amazon Aurora and everything just worked." - Dan Jewett, Vice President of Product Management at Tableau Lambda IAM CloudWatch S3 Route53 KMS AWS Ecosystem VPC SWF
  • 34. Use case: Event driven data pipeline  Simplify custom database logic by moving it from functions, stored procedures etc. to cloud-based code repository.  Enable database developers to create rich software features accessible from SQL layer.  Run code in response to ad-hoc requests, triggers or scheduled database events in any language supported by AWS Lambda (Java, Node.js, Python).  Accelerate the migration from any programmable database Amazon S3 Data Lake Amazon Aurora Load From S3 S3 Event Driven Lambda Call Lambda Call S3 Load Completed Notification Delivered AWS Services Generating Data Data Flow Call / Notification Flow
  • 35. Amazon Aurora saves you money 1/10th of the cost of commercial databases Cheaper than even MySQL
  • 36. Cost of ownership: Aurora vs. MySQL MySQL configuration hourly cost Primary r3.8XL Standby r3.8XL Replica r3.8XL Replica R3.8XL Storage 6 TB / 10 K PIOP Storage 6 TB / 10 K PIOP Storage 6 TB / 5 K PIOP Storage 6 TB / 5 K PIOP $1.33/hr $1.33/hr $1.33/hr $1.33/hr $2,42/hr $2,42/hr $2,42/hr Instance cost: $5.32 / hr Storage cost: $8.30 / hr Total cost: $13.62 / hr $2,42/hr
  • 37. Cost of ownership: Aurora vs. MySQL Aurora configuration hourly cost Instance cost: $4.86 / hr Storage cost: $4.43 / hr Total cost: $9.29 / hr Primary r3.8XL Replica r3.8XL Replica R3.8XL Storage / 6 TB $1.62 / hr $1.62 / hr $1.62 / hr $4.43 / hr *At a macro level Aurora saves over 50% in storage cost compared to RDS MySQL. 31.8% Savings  No idle standby instance  Single shared storage volume  No PIOPs – pay for use I/O  Reduction in overall IOP
  • 38. Cost of ownership: Aurora vs. MySQL Further opportunity for saving Instance cost: $2.43 / hr Storage cost: $4.43 / hr Total cost: $6.86 / hrStorage IOPs assumptions: 1. Average IOPs is 50% of Max IOPs 2. 50% savings from shipping logs vs. full pages 49.6% Savings Primary r3.8XL Replica r3.8XL Replica r3.8XL Storage / 6TB $0.81 / hr $0.81 / hr $0.81 / hr $4.43 / hr r3.4XL r3.4XL r3.4XL  Use smaller instance size  Pay-as-you-go storage
  • 39. Higher performance, lower Cost  Fewer instances needed  Smaller instances can be used Safe.com lowered their bill by 40% by switching from sharded MySQL to a single Aurora instance. Double Down Interactive (gaming) lowered their bill by 67% while also achieving better latencies (most queries ran faster) and lower CPU utilization.  No need to pre-provision storage  No additional storage for read replicas
  • 40. t2 RI discounts Up to 34% with a 1-year RI Up to 57% with a 3-year RI vCPU Mem Hourly Price db.t2.medium 2 4 $0.082 db.r3.large 2 15.25 $0.29 db.r3.xlarge 4 30.5 $0.58 db.r3.2xlarge 8 61 $1.16 db.r3.4xlarge 16 122 $2.32 db.r3.8xlarge 32 244 $4.64 R3.large is too expensive for dev/test? We just introduced t2.medium *Prices are for Virginia *NEW*
  • 41. Other Aurora sessions at re:Invent DAT303 - Deep Dive on Amazon Aurora Thu 11:30-12:30, Venetian, Level 4, Delfino 4004 DAT301 - Amazon Aurora Best Practices: Getting the Best Out of Your Databases Wed 5:30-6:30, Venetian, Level 4, Lando 4205 DAT322 - Workshop: Stretching Scalability: Doing more with Amazon Aurora Option 1: Wed 2:00-4:30, Mirage, Trinidad B, Option 2: Thu 2:30-5:00, Mirage, Antigua B
  • 42. Have more questions Rory Richardson, BD roryrich@amazon.com David Lang, PM davelang@amazon.com Linda Wu, PM wulind@amazon.com Debanjan Saha, GM deban@amazon.com Reach out to your super friendly Aurora team
  • 43. Linda Xu Principal Architect, Data @ Ticketmaster 20 years of database experience https://www.linkedin.com/in/linda-yun-xu-8a53034
  • 44. In a single year, we support: ► Over 26,000 Live Nation events ► Over 530M fans in more than 37 countries ► 465M ticket transactions ► More than 1B unique visits to our web front-end Ticketmaster is a Top 5 ecommerce site What we do … One of the most famous musicians in the world has 400K concert tickets sold in a morning .
  • 45. In a single year, we support: ► Over 26,000 Live Nation events ► Over 530M fans in more than 37 countries ► 465M ticket transactions ► More than 1B unique visits to our web front-end Ticketmaster is a Top 5 ecommerce site What we do … One of the most famous musicians in the world has 400K concert tickets sold in a morning .
  • 46. In a single year, we support: ► Over 26,000 Live Nation events ► Over 530M fans in more than 37 countries ► 465M ticket transactions ► More than 1B unique visits to our web front-end Ticketmaster is a Top 5 ecommerce site What we do … One of the most famous musicians in the world has 400K concert tickets sold in a morning .
  • 47. Our private cloud is made up of: ► Hundreds of Ticketmaster products ► Tens of thousands of servers ► Multiple Data Centers, globally ► More than 1,000 databases • Oracle, MySQL, MongoDB, Teradata, Microsoft SQL Server and PostgreSQL Our IT infrastructure Today
  • 48. Why we move to AWS?
  • 49. Data center 2 Active Data center 2 Passive Data center 2 Active Data center 2 Active Readers Readers Readers Writer Writer Challenges we face with MySQL Ticketmaster has heavy MySQL use cases Examples of our MySQL setup
  • 50. • Read consistency cross slaves • Single thread replication • Application can cause high replication lags Challenges we face with MySQL Replication Lag Scalability Operations • Manual failover • Maintenance on multi-master setup • Version updates • Scaled for max capacity at all times
  • 51. Where are we headed..
  • 52. Where are we headed.. …. We are moving to AWS and to Aurora!
  • 53.  Fully compatible with MySQL 5.6  Migration from MySQL using MySQL replication  Migration from Oracle leverages DMS and SCT Why did we choose Aurora?  Replication Setup - Auto Failover  Reader and Writer Endpoint  Tuned Parameters  Auto minor version upgrade  Vertically: Add more CPU and memory per instance  Horizontally: Add more database instances  Storage: Automatically add space and IOPs Compatibility Scalability Ease of Operation
  • 54. Our success story Our MySQL application worked on Aurora without any code changes Account Manager, our first product migrated to AWS.  Migrated from MySQL 5.6 to Aurora  0 issue be reported since launch  Replication lag is only 20ms  12 MySQL servers to 5 Aurora nodes  Deployment time took from 1~2 hours to 20 minutes in AWS  Build a new test environment took from 1 week to 30 minutes in AWS
  • 55. 55 Regular Business Traffic  Infrastructure in code including database!  We use terraformer to manage Aurora • Scale in/out horizontally within 10 minutes, without downtime • Scale up/down vertically with 30s of failover downtime Our Tools: Terraformer Peak Traffic