SlideShare uma empresa Scribd logo
1 de 52
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
@ric__harvey
Amazon RDS Deep Dive
Ric Harvey, Technical Developer Evangelist
Agenda
• Quick intro to RDS
• Security
• Metrics and Monitoring
• High Availability
• Scaling
• Backups and Snapshots
• Migrating
Amazon Relational Database Service (RDS)
No infrastructure
management
Application
compatibility
Cost-effective Scale up/down
Instant provisioning
Trade-offs with a managed service
Fully managed host and OS
• No access to the database host operating system
• Limited ability to modify configuration that is managed on the
host operating system
• No functions that rely on configuration from the host OS
Fully managed storage
• Max storage limits
• Microsoft SQL Server - 16TB
• MySQL, MariaDB, PostgreSQL,Oracle - 6TB
• Aurora - 64TB
Amazon RDS Engines
Commercial Open source Cloud Native
Amazon Aurora
Hundreds of thousands of active customers
Aurora is the fastest growing service in the history of AWS!
Security
AmazonVirtual Private Cloud (AmazonVPC)
Securely control network configuration
Security Groups
Protocol Port Range Source
TCP 3306 172.31.0.0/16
TCP 3306
“Application
security group”
Database IP firewall protection
AWS IAM governed access
You can use AWS Identity and Access
Management (IAM) to:
• Control who can perform actions on RDS
• Authenticate to your RDS MySQL / Aurora DB
• MySQL 5.6.34 / 5.7.16 or higherAurora 1.10 or higher
• Not available for db.t1.micro / db.m1.small
RDS
DBA and Ops
Compliance
Compliance
SSL
Database traffic encryption
Available for all six engines
At rest encryption
Transparent Data Encryption
M
At Rest Encryption for all RDS Engines AWS Key
Management Service (KMS)
Two-tiered key hierarchy using envelope encryption:
• Unique data key encrypts customer data
• AWS KMS master keys encrypt data keys
• Available for ALL RDS engines
Benefits:
• Limits risk of compromised data key
• Better performance for encrypting large data
• Easier to manage small number of master keys
than millions of data keys
• Centralized access and audit of key activity
How keys are used to protect your data
1. Launch your RDS instance
2. RDS instance requests encryption key to use to encrypt data, passes reference to master key in account 3. Client
request authenticated based on permissions set on both the user and the key
4. A unique data encryption key is created and encrypted under the KMS master key
5. Plaintext and encrypted data key returned to RDS
6. Plaintext data key stored in memory and used to encrypt/decrypt RDS data
Enabling encryption
AWS Command Line Interface (AWS CLI)
Metrics and Monitoring
Standard monitoring
Amazon CloudWatch metrics for
Amazon RDS
• CPU utilization
• Storage
• Memory
• Swap usage
• DB connections
• I/O (read and write)
• Latency (read and write)
• Throughput (read and write)
• Replica lag
• Many more
Amazon CloudWatch Alarms
• Similar to on-premises custom
monitoring tools
Enhanced monitoring
Access to over 50 new CPU, memory, file system, and disk I/O metrics as low as 1
second intervals
Simplify monitoring with AWS Management Console
Amazon Performance Insights for RDS
• Database Load : Identifies database
bottlenecks
• Easy
• Powerful
• Identifies source of bottlenecks
• Top SQL
• AdjustableTime frame
• Hour, day, week and longer
AWS re:Invent 2016 DAT206: https://youtu.be/ztmtJJTC8_Y?t=39m53s
High availability
Multi-AZ deployment DNS failover
S
Read Replicas
Bring data close to your
customer’s applications in
different regions
Relieve pressure on your master
node for supporting reads and
writes
Promote a Read Replica to a
master for faster recovery in the
event of disaster
Within or cross-region
• MySQL
• MariaDB
• PostgreSQL
• Aurora
High availability - Amazon Aurora storage
• Storage volume automatically grows up to 64TB
• Quorum system for read/write; latency tolerant
• Peer-to-peer gossip replication to fill in holes
• Continuous backup to Amazon S3 (built for 11 9s
durability)
• Continuous monitoring of nodes and disks for repair
• 10 GB segments as unit of repair or hotspot rebalance
• Quorum membership changes do not stall writes
High availability - Amazon Aurora nodes
• Aurora cluster contains primary node and up to 15
secondary nodes
• Failing database nodes are automatically detected and
replaced
• Failing database processes are automatically detected
and recycled
• Secondary nodes automatically promoted on persistent
outage, no single point of failure
• Customer application can scale out read traffic across
secondary nodes
Scaling
Why Scale?
• Handle higher load or lower usage
• Naturally grow over time
• Control costs
What can you scale?
Database instances Read Replicas Storage
Amazon Aurora - Balanced Read Replica Access
Scaling your instance up/down
Scaling a single AZ deployment
Scaling a multi AZ deployment
Scaling automation
Via crontab
Scaling automation
AWS Lambda and Amazon Cloudwatch events
Scaling automation
Metrics-based scaling
• Amazon CloudWatch and AWS Lambda!
Automate switching of dev/test instances
MySQL
MariaDB
PostgreSQL
Oracle
SQL Server
Backups and snapshots
Automated backups
MySQL, PostgreSQL, MariaDB, Oracle, SQL Server
• Scheduled daily volume backup of entire instance
• Archive database change logs
• 35-day retention
• Taken from standby when running multi-AZ
Aurora
• Automatic, continuous, incremental backups
• No impact on database performance
• 35-day retention
How do automated backups work?
Restoring
• Creates an entire new database instance
• You define all the instance configuration, just like creating a
new instance
Snapshots
• Full copies of your RDS database
• Independent of scheduled backups
• Used to create a new RDS instance
• Taken from the standby when running multi-AZ
Migrating onto RDS
MySQL backup to Aurora via S3
MySQL backup to Aurora via S3
Coming soon
Aurora Multi-Masters
Seamlessrecovery fromread replicafailures
Auto-scalenewread replicas
Up to 15 read replicasacross3 availability zones
Application
ReadReplica
1
Master
Node
ReadReplica
2
Shared Distributed Storage Volume
Availability
Zone 1
Availability
Zone 2
Availability
Zone 3
Application
Read/Write
Master 2
Read/Write
Master 1
Shared Distributed Storage Volume
Availability
Zone 1
Availability
Zone 2
Availability
Zone 3
Read/Write
Master 3
Zero applicationdowntimefromANYnodefailure
Zero applicationdowntimefromANYAZ failure
Multi-region coming in2018
Faster writeperformance
First relational DB service with scale out for both read and write across multiple DC’s
Aurora Serverless
Aut omat ically
scalescapacity up
and down
Pay per second
and only for t he
dat abase
capacit y youuse
St art supon
demandand
shut sdownwhen
not inuse
Noneedt o
provision
inst ances
On-demand, auto-scaling database for applications with unpredictable or
cyclical workloads
@ric__harvey

Mais conteúdo relacionado

Mais procurados

AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
Simplilearn
 

Mais procurados (20)

AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
AWS S3 | Tutorial For Beginners | AWS S3 Bucket Tutorial | AWS Tutorial For B...
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 
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)
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
 
AWS 101
AWS 101AWS 101
AWS 101
 
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...
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
What's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial DatabasesWhat's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial Databases
 
AWS EC2
AWS EC2AWS EC2
AWS EC2
 
Deep Dive: Amazon RDS
Deep Dive: Amazon RDSDeep Dive: Amazon RDS
Deep Dive: Amazon RDS
 
Introduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingIntroduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud Computing
 
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...
 
Overview of AWS by Andy Jassy - SVP, AWS
Overview of AWS by Andy Jassy - SVP, AWSOverview of AWS by Andy Jassy - SVP, AWS
Overview of AWS by Andy Jassy - SVP, AWS
 
Introduction to Amazon Athena
Introduction to Amazon AthenaIntroduction to Amazon Athena
Introduction to Amazon Athena
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
 
AWS Technical Essentials Day
AWS Technical Essentials DayAWS Technical Essentials Day
AWS Technical Essentials Day
 
Intro to Amazon S3
Intro to Amazon S3Intro to Amazon S3
Intro to Amazon S3
 
Introduction to AWS Organizations
Introduction to AWS OrganizationsIntroduction to AWS Organizations
Introduction to AWS Organizations
 

Semelhante a Amazon Relational Database Service (Amazon RDS)

Semelhante a Amazon Relational Database Service (Amazon RDS) (20)

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)
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database Service
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database Service
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Amazon Relational Database Service Deep Dive
Amazon Relational Database Service Deep DiveAmazon Relational Database Service Deep Dive
Amazon Relational Database Service Deep Dive
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWSMigrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
 
AWS Database Services-Philadelphia AWS User Group-4-17-2018
AWS Database Services-Philadelphia AWS User Group-4-17-2018AWS Database Services-Philadelphia AWS User Group-4-17-2018
AWS Database Services-Philadelphia AWS User Group-4-17-2018
 
Deep Dive RDS & Aurora - Pop-up Loft TLV 2017
Deep Dive RDS & Aurora - Pop-up Loft TLV 2017Deep Dive RDS & Aurora - Pop-up Loft TLV 2017
Deep Dive RDS & Aurora - Pop-up Loft TLV 2017
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
 
Deep Dive on Amazon Relational Database Service (November 2016)
Deep Dive on Amazon Relational Database Service (November 2016)Deep Dive on Amazon Relational Database Service (November 2016)
Deep Dive on Amazon Relational Database Service (November 2016)
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database Service
 
Amazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service MeetupAmazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service Meetup
 
Amazon relational database service (rds)
Amazon relational database service (rds)Amazon relational database service (rds)
Amazon relational database service (rds)
 
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
 
Getting Started with Managed Database Services on AWS
Getting Started with Managed Database Services on AWSGetting Started with Managed Database Services on AWS
Getting Started with Managed Database Services on AWS
 
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
 
Deep Dive on MySQL Databases on AWS - AWS Online Tech Talks
Deep Dive on MySQL Databases on AWS - AWS Online Tech TalksDeep Dive on MySQL Databases on AWS - AWS Online Tech Talks
Deep Dive on MySQL Databases on AWS - AWS Online Tech Talks
 
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
 

Mais 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
 

Mais 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
 

Amazon Relational Database Service (Amazon RDS)

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. @ric__harvey Amazon RDS Deep Dive Ric Harvey, Technical Developer Evangelist
  • 2. Agenda • Quick intro to RDS • Security • Metrics and Monitoring • High Availability • Scaling • Backups and Snapshots • Migrating
  • 3. Amazon Relational Database Service (RDS) No infrastructure management Application compatibility Cost-effective Scale up/down Instant provisioning
  • 4. Trade-offs with a managed service Fully managed host and OS • No access to the database host operating system • Limited ability to modify configuration that is managed on the host operating system • No functions that rely on configuration from the host OS Fully managed storage • Max storage limits • Microsoft SQL Server - 16TB • MySQL, MariaDB, PostgreSQL,Oracle - 6TB • Aurora - 64TB
  • 5. Amazon RDS Engines Commercial Open source Cloud Native Amazon Aurora
  • 6. Hundreds of thousands of active customers Aurora is the fastest growing service in the history of AWS!
  • 8. AmazonVirtual Private Cloud (AmazonVPC) Securely control network configuration
  • 9. Security Groups Protocol Port Range Source TCP 3306 172.31.0.0/16 TCP 3306 “Application security group” Database IP firewall protection
  • 10. AWS IAM governed access You can use AWS Identity and Access Management (IAM) to: • Control who can perform actions on RDS • Authenticate to your RDS MySQL / Aurora DB • MySQL 5.6.34 / 5.7.16 or higherAurora 1.10 or higher • Not available for db.t1.micro / db.m1.small RDS DBA and Ops
  • 16. At Rest Encryption for all RDS Engines AWS Key Management Service (KMS) Two-tiered key hierarchy using envelope encryption: • Unique data key encrypts customer data • AWS KMS master keys encrypt data keys • Available for ALL RDS engines Benefits: • Limits risk of compromised data key • Better performance for encrypting large data • Easier to manage small number of master keys than millions of data keys • Centralized access and audit of key activity
  • 17. How keys are used to protect your data 1. Launch your RDS instance 2. RDS instance requests encryption key to use to encrypt data, passes reference to master key in account 3. Client request authenticated based on permissions set on both the user and the key 4. A unique data encryption key is created and encrypted under the KMS master key 5. Plaintext and encrypted data key returned to RDS 6. Plaintext data key stored in memory and used to encrypt/decrypt RDS data
  • 18. Enabling encryption AWS Command Line Interface (AWS CLI)
  • 20. Standard monitoring Amazon CloudWatch metrics for Amazon RDS • CPU utilization • Storage • Memory • Swap usage • DB connections • I/O (read and write) • Latency (read and write) • Throughput (read and write) • Replica lag • Many more Amazon CloudWatch Alarms • Similar to on-premises custom monitoring tools
  • 21. Enhanced monitoring Access to over 50 new CPU, memory, file system, and disk I/O metrics as low as 1 second intervals
  • 22. Simplify monitoring with AWS Management Console Amazon Performance Insights for RDS • Database Load : Identifies database bottlenecks • Easy • Powerful • Identifies source of bottlenecks • Top SQL • AdjustableTime frame • Hour, day, week and longer AWS re:Invent 2016 DAT206: https://youtu.be/ztmtJJTC8_Y?t=39m53s
  • 25. Read Replicas Bring data close to your customer’s applications in different regions Relieve pressure on your master node for supporting reads and writes Promote a Read Replica to a master for faster recovery in the event of disaster Within or cross-region • MySQL • MariaDB • PostgreSQL • Aurora
  • 26. High availability - Amazon Aurora storage • Storage volume automatically grows up to 64TB • Quorum system for read/write; latency tolerant • Peer-to-peer gossip replication to fill in holes • Continuous backup to Amazon S3 (built for 11 9s durability) • Continuous monitoring of nodes and disks for repair • 10 GB segments as unit of repair or hotspot rebalance • Quorum membership changes do not stall writes
  • 27. High availability - Amazon Aurora nodes • Aurora cluster contains primary node and up to 15 secondary nodes • Failing database nodes are automatically detected and replaced • Failing database processes are automatically detected and recycled • Secondary nodes automatically promoted on persistent outage, no single point of failure • Customer application can scale out read traffic across secondary nodes
  • 29. Why Scale? • Handle higher load or lower usage • Naturally grow over time • Control costs
  • 30. What can you scale? Database instances Read Replicas Storage
  • 31. Amazon Aurora - Balanced Read Replica Access
  • 33. Scaling a single AZ deployment
  • 34. Scaling a multi AZ deployment
  • 36. Scaling automation AWS Lambda and Amazon Cloudwatch events
  • 37. Scaling automation Metrics-based scaling • Amazon CloudWatch and AWS Lambda!
  • 38. Automate switching of dev/test instances MySQL MariaDB PostgreSQL Oracle SQL Server
  • 40. Automated backups MySQL, PostgreSQL, MariaDB, Oracle, SQL Server • Scheduled daily volume backup of entire instance • Archive database change logs • 35-day retention • Taken from standby when running multi-AZ Aurora • Automatic, continuous, incremental backups • No impact on database performance • 35-day retention
  • 41. How do automated backups work?
  • 42. Restoring • Creates an entire new database instance • You define all the instance configuration, just like creating a new instance
  • 43. Snapshots • Full copies of your RDS database • Independent of scheduled backups • Used to create a new RDS instance • Taken from the standby when running multi-AZ
  • 45. MySQL backup to Aurora via S3
  • 46. MySQL backup to Aurora via S3
  • 47.
  • 48.
  • 50. Aurora Multi-Masters Seamlessrecovery fromread replicafailures Auto-scalenewread replicas Up to 15 read replicasacross3 availability zones Application ReadReplica 1 Master Node ReadReplica 2 Shared Distributed Storage Volume Availability Zone 1 Availability Zone 2 Availability Zone 3 Application Read/Write Master 2 Read/Write Master 1 Shared Distributed Storage Volume Availability Zone 1 Availability Zone 2 Availability Zone 3 Read/Write Master 3 Zero applicationdowntimefromANYnodefailure Zero applicationdowntimefromANYAZ failure Multi-region coming in2018 Faster writeperformance First relational DB service with scale out for both read and write across multiple DC’s
  • 51. Aurora Serverless Aut omat ically scalescapacity up and down Pay per second and only for t he dat abase capacit y youuse St art supon demandand shut sdownwhen not inuse Noneedt o provision inst ances On-demand, auto-scaling database for applications with unpredictable or cyclical workloads

Notas do Editor

  1. More than 64,000 databases have been migrated using AWS Database Migration Service.