SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deep Dive on Amazon Relational
Database Service (RDS)
Brian Welcker
P r i n c i p a l P r o d u c t M a n a g e r , A m a z o n R D S
D A T 3 0 2
N o v e m b e r 2 8 , 2 0 1 7
AWS re:INVENT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is Amazon RDS?
• Managed relational database service in the
AWS cloud
• Multi-engine support: Amazon Aurora,
MySQL, MariaDB, PostgreSQL, Oracle, SQL
Server
• Automated provisioning, patching, scaling,
replicas, backup/restore
• Easily scales to handle growth
• High availability with Multi-AZ and Amazon
Aurora
Amazon RDS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why use Amazon RDS?
• Lower TCO because we manage “the muck”
• Get more leverage from your teams
• Focus on the things that differentiate you
• Built-in high availability and cross-region
replication across multiple data centers
• Even a small startup can leverage multiple data
centers to design highly available apps with
over 99.95% availability
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Configuring your database instance in
Amazon RDS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Commercial Open Source Cloud Native
Which RDS engine should I use?
Amazon EBS-based Storage Aurora Storage System
MySQL Compatible
PostgreSQL Compatible
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
T2 Family
• Burstable instances
• 1 vCPU/1 GB RAM > 8
vCPU 32 GB RAM
• Moderate networking
performance
• Good for smaller or
variable workloads
• Monitor CPU credit metrics
in Amazon CloudWatch
• T2.micro is eligible for free
tier
M3/M4 Family
• General-purpose instances
• 2 vCPU/8 GiB RAM > 64
vCPU 256 GiB RAM
• High-performance
networking
• Good for running CPU
intensive workloads (e.g.,
WordPress)
R3/R4 Family
• Memory-optimized instances
• 2 vCPU/16 GiB RAM > 64
vCPU 488 GiB RAM
• High-performance
networking
• Good for query-intensive
workloads or high
connection counts
Which instance type should I choose?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
General purpose (GP2)
• SSD storage
• Maximum of 16 TB!
• Leverages Amazon EBS
Elastic Volumes
• IOPS determined by
volume size
• Minimum of 100 IOPS
(below 33.33GiB)
• Bursts to 3,000 IOPS
(applicable below 1.3 TB)
• Baseline of 10,000 IOPS
(at 3.3 TB and above)
• Affordable performance
Provisioned IOPS (IO1)
• SSD storage
• Maximum of 16 TB!
• Leverages Amazon EBS
Elastic Volumes
• Maximum of 40 K IOPS
(20 K on SQL Server)
• Delivers within 10% of
the IOPS performance
99.9% of the time
• High performance and
consistency
Magnetic
• Magnetic storage
• Maximum of 1 TB
• Supported for legacy
databases
Which storage type should I choose?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I decide between GP2 and IO1?
W h y a m I n o t s e e i n g 3 0 K I O P S ?
• GP2 is a great choice, but be aware of burst credits on volumes < 1 TB
• Hitting credit-depletion results in IOPS drop—latency and queue depth
metrics will spike until credits are replenished
• Monitor BurstBalance to see percent of burst-bucket I/O credits available
• Monitor read/write IOPS to see if average IOPS is greater than the
baseline
• Think of GP2 burst rate and PIOPS
stated rate as maximum I/O rates
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I scale my database instance?
W i l l t h e r e b e d o w n t i m e ?
• Scale compute/memory vertically up or down
• Handle higher load to grow over time
• Lower usage to control costs
• New host is attached to existing storage with minimal
downtime
• Scale up Amazon EBS storage (now up to 16 TB!)
• Amazon EBS engines now support Elastic Volumes for
fast scaling (now including SQL Server)
• No downtime for storage scaling
• Initial scaling operation may take longer, because
storage is reconfigured on older instances
• Can re-provision IOPS on the fly
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Managing high availability, read
replicas, and backups in Amazon RDS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I ensure database high availability?
Multi-AZ provides enterprise-grade fault-tolerance
solution for production
databases
Automatic failover
Synchronous replication
Inexpensive and enabled with one click
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What happens during a Multi-AZ failover?
H o w l o n g d o e s i t t a k e ?
• Each host manages set of
Amazon EBS volumes with a full
copy of the data
• Instances are monitored by an
external observer to maintain
consensus over quorum
• Failover initiated by automation
or through the Amazon RDS API
• Redirection to the new primary
instance is provided through
DNS
DNS
Primary Standby
EC2
#1
EC2
#2
Availability Zone #1 Availability Zone #2
APP
EBS
#1
EBS
#2
PrimarySecondary
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why would I use Read Replicas?
• Relieve pressure on your source
database with additional read capacity
• Bring data close to your applications in
different regions
• Promote a Read Replica to a master
for faster recovery in the event of
disaster
• Upgrade a Read Replica to a new
engine version
• Supported for MySQL, MariaDB, and
PostgreSQL
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Synchronous replication—highly
durable
• Only primary instance is active at any
point in time
• Backups can be taken from secondary
• Always in two Availability Zones
within a Region
• Database engine version upgrades
happen on primary
• Automatic failover when a problem is
detected
• Asynchronous replication—highly
scalable
• All replicas are active and can be used
for read scaling
• No backups configured by default
• Can be within an Availability Zone,
cross-AZ, or cross-region
• Database engine version upgrades
independently from source instance
• Can be manually promoted to a
standalone database
R e a d R e p l i c a sM u l t i - A Z
When should I use Multi-AZ as opposed to
Read Replicas?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How does Amazon RDS manage backups?
• Two options – automated backups
and manual snapshots
• Amazon RDS backups leverage
Amazon EBS snapshots stored in
Amazon S3
• Transaction logs are stored every
5 minutes in Amazon S3 to
support point-in-time recovery
(PITR)
• No performance penalty for
backups
• Snapshots can be copied across
regions or shared with other
accounts
Availability Zone #2
Availability Zone #1
Region #1 Region #2
Transaction Logs
DB
App
RDS
Host
RDS
Host
EBS
Vol
EBS
Vol
EBS Snapshot
Amazon
S3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Specify backup retention window per
instance (7-day default)
• Kept until outside of window (35-day
maximum) or instance is deleted
• Supports PITR
• Good for disaster recovery
• Manually created through AWS
console, AWS CLI, or Amazon RDS API
• Kept until you delete them
• Restores to saved snapshot
• Use for checkpoint before making
large changes, non-production/test
environments, final copy before
deleting a database
M a n u a l s n a p s h o t sA u t o m a t e d b a c k u p s
When should I use automated backups as
opposed to snapshots?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I restore a backup?
W h y d o e s i t t a k e s o l o n g ?
• Restoring creates an entirely new database instance
• Define the instance configuration just like a
new instance
• Will get the default parameter, security, and
option groups
• New volumes are hydrated from Amazon S3
• While the volume is usable immediately, full
performance requires the volume to warm up
until fully instantiated
• Migrate to a DB instance class with high I/O
capacity
• Maximize I/O during restore process
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Securing your Amazon RDS database
instance
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I secure my Amazon RDS database?
• Amazon RDS is designed to be secure by
default
• Network isolation with Amazon Virtual
Private Cloud (Amazon VPC)
• AWS Identity and Access Management (IAM)-
based resource-level permission controls
• Encryption at rest using AWS KMS (all
engines) or Oracle/Microsoft TDE
• Use SSL protection for data in transit
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What does Amazon VPC provide?
• Places your instance in a private subnet,
making it secure from public routes on the
Internet
• Database instance IP firewall protection lets
you securely control network configuration
• Turn off Public Accessibility in DB instance
settings to restrict access outside Amazon VPC
• Use ClassicLink to network with non-VPC
resources
AWS Direct
Connect
VPN
connection
VPC
peering
Internet
gateway
Routing
rules
Availability Zone
AWS Region
10.1.0.0/16
10.1.1.0/24
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I grant access to my database?
• Use IAM to control who can perform actions on RDS resources
• Do not use AWS root credentials to manage Amazon RDS resources—you should
create an IAM user for everyone, including yourself
• Can use AWS Multi-Factor Authentication (MFA) to provide extra level of
protection
DBA and Ops
Amazon RDS
Controlled with IAM
Users and DBAApplications
Your database
Controlled with database grants
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I encrypt my database?
• Use AWS KMS-based encryption in the AWS
console
• No performance penalty for encrypting data
• Centralized access and audit of key activity
• Best practices
• Encryption cannot be removed from DB
instances
• If source is encrypted, Read Replicas must
be encrypted
• Add encryption to an unencrypted DB
instance by encrypting a snapshot copy
Data keys
Amazon
RDS
instance 3
Amazon
RDS
instance 2
Amazon
RDS
instance 1
Customer master key(s)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Monitoring your Amazon RDS
database instance
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I monitor my Amazon RDS database?
Amazon CloudWatch metrics
• CPU/Storage/Memory
• Swap usage
• I/O (read and write)
• Latency (read and write)
• Throughput (read and write)
• Replica lag
Amazon CloudWatch Alarms
• Similar to on-premises monitoring tools
Enhanced monitoring for Amazon RDS
• Access to over 50 CPU, memory, file
system, and disk I/O metrics
• Low as 1-second intervals
Integration with third-party monitoring tools
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Introducing Amazon RDS
Performance Insights
• Measures DB Load: Average Active
Sessions (AAS)
• Identifies database bottlenecks
(Top SQL)
• Easy
• Powerful
• Identifies source of bottlenecks
• Enables problem discovery
• Adjustable time frame
• Hour, day, week, and longer
• Coming soon for Amazon EBS-based
Amazon RDS engines
How do I improve database performance?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Can I know when service events happen?
• Amazon RDS uses Amazon SNS to
receive notification when an event
occurs
• Notifications can be in any form
supported by Amazon SNS (email, a
text message, or a call to an HTTP
endpoint)
• Six different source types (DB instance,
DB parameter group, DB security
group, DB snapshot, DB cluster, DB
cluster snapshot)
• 17 different event categories
(availability, backup, deletion,
configuration change, etc.)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Maintenance and billing for Amazon
RDS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Any maintenance that causes downtime (typically only a few times per year) will
be scheduled in your maintenance window
• Operating system or Amazon RDS software patches are usually performed
without restarting databases
• Database engine upgrades require downtime
• Minor version upgrades—automatic or manually applied
• Major version upgrades—manually applied
• Version deprecations—three- to six-month notification before scheduled
upgrades
• View upcoming maintenance
events in your AWS Personal
Health Dashboard
How do you maintain my database?
H o w c a n I p l a n f o r i t ?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How am I charged for Amazon RDS?
• Database instance (instance hours)
• Combination of Region + instance type + database
engine + license (optional)
• Database storage (GB-mo)
• Can be either provisioned (Amazon EBS) or consumed
(Amazon Aurora)
• Provisioned IOPS (IOPS-Mo) for IO1 storage type
• Database I/O requests (IOs) for Amazon Aurora and
Amazon EBS magnetic-storage types
• Backup storage (GB-mo)
• Size of backups and snapshots stored in Amazon S3
• No charge for backup storage up to 100% of total
database storage
• Data transfer (GB-mo)
• Uses AWS regional data-transfer pricing
Amazon RDS Free Tier
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I understand my bill?
• Amazon RDS charges are grouped by
Region
• Instances are grouped by engine
• Storage and backup charges are cross-
engine
• Use AWS Cost Explorer for graphical
comparison
• Use the AWS Cost & Usage Report for
billing details
• Must be enabled for account
• Stored in your Amazon S3 bucket
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How can I save money on my database?
• Amazon RDS Reserved Instances (RIs) provide a discount over on-demand prices
• Region, instance family, and engine of on-demand usage must match to apply
benefit
• Amazon RDS RIs offer size flexibility for open-source and Oracle BYOL engines
• By default, RIs are shared between all
accounts in consolidated billing
• Use the RI utilization report to determine
how your RIs are being used
• Support for RI coverage report
coming soon
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Can I stop my database when it’s not in use?
• Stop and start a running database instance from
the console or AWS CLI
• Available for single-AZ DB instances
• While instance is stopped, you only pay for storage
• Backup retention window is maintained while
stopped
• Instances are restarted after 7 days
• Pending maintenance operations are applied
• Instances can be stopped again if desired
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Related Sessions at re:Invent
DAT311 Technology Trends in Data
Processing
Wednesday, Nov 29, 11:30 AM
Venetian, Level 5, Palazzo N
DAT312 Migrating Your SQL Server
Databases to Amazon RDS
Wednesday, Nov 29, 4:00 PM
Venetian, Level 3, Lido 3006
DAT203 Running MySQL Databases on
AWS
Thursday, Nov 30, 11:30
Venetian, Level 1, Casanova 502
DAT201 AWS Database and Analytics State
of the Union - 2017
Thursday, Nov 30, 12:15 PM
Venetian, Level 2, Venetian Theatre
DAT313 Running Oracle Databases on
Amazon RDS
Thursday, Nov 30, 4:45 PM
Venetian, Level 4, Lando 4202
DAT314 Best Practices for Running
PostgreSQL on AWS
Friday, Dec 1, 9:15 AM
Venetian, Level 4, Lando 4202
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!

More Related Content

What's hot

Aws route 53
Aws route 53Aws route 53
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
Amazon Web Services
 
AWS Route53 Fundamentals
AWS Route53 FundamentalsAWS Route53 Fundamentals
AWS Route53 Fundamentals
Piyush Agrawal
 
ABCs of AWS: S3
ABCs of AWS: S3ABCs of AWS: S3
ABCs of AWS: S3
Mark Cohen
 
Deep Dive on Amazon RDS
Deep Dive on Amazon RDSDeep Dive on Amazon RDS
Deep Dive on Amazon RDS
Amazon Web Services
 
Security on AWS :: 이경수 솔루션즈아키텍트
Security on AWS :: 이경수 솔루션즈아키텍트Security on AWS :: 이경수 솔루션즈아키텍트
Security on AWS :: 이경수 솔루션즈아키텍트
Amazon Web Services Korea
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
Amazon Web Services
 
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
Amazon Web Services
 
S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트:: AWS Summit Onli...
S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트::  AWS Summit Onli...S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트::  AWS Summit Onli...
S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트:: AWS Summit Onli...
Amazon Web Services Korea
 
Building a Secured Network environment on AWS
Building a Secured Network environment on AWSBuilding a Secured Network environment on AWS
Building a Secured Network environment on AWS
Amazon Web Services
 
Introduction to Amazon Relational Database Service (Amazon RDS)
Introduction to Amazon Relational Database Service (Amazon RDS)Introduction to Amazon Relational Database Service (Amazon RDS)
Introduction to Amazon Relational Database Service (Amazon RDS)
Amazon Web 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)
Amazon Web Services
 
AWS RDS
AWS RDSAWS RDS
AWS RDS
Mahesh Raj
 
(STG401) Amazon S3 Deep Dive & Best Practices
(STG401) Amazon S3 Deep Dive & Best Practices(STG401) Amazon S3 Deep Dive & Best Practices
(STG401) Amazon S3 Deep Dive & Best Practices
Amazon Web Services
 
Getting Started with Amazon ElastiCache
Getting Started with Amazon ElastiCacheGetting Started with Amazon ElastiCache
Getting Started with Amazon ElastiCache
Amazon Web Services
 
Deep Dive on Amazon S3
Deep Dive on Amazon S3Deep Dive on Amazon S3
Deep Dive on Amazon S3
Amazon Web Services
 
AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS
Amazon Web Services
 
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingCloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Amazon Web Services Korea
 
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
Amazon Web Services Korea
 
AWS EC2 Fundametals
AWS EC2 FundametalsAWS EC2 Fundametals
AWS EC2 Fundametals
Piyush Agrawal
 

What's hot (20)

Aws route 53
Aws route 53Aws route 53
Aws route 53
 
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
 
AWS Route53 Fundamentals
AWS Route53 FundamentalsAWS Route53 Fundamentals
AWS Route53 Fundamentals
 
ABCs of AWS: S3
ABCs of AWS: S3ABCs of AWS: S3
ABCs of AWS: S3
 
Deep Dive on Amazon RDS
Deep Dive on Amazon RDSDeep Dive on Amazon RDS
Deep Dive on Amazon RDS
 
Security on AWS :: 이경수 솔루션즈아키텍트
Security on AWS :: 이경수 솔루션즈아키텍트Security on AWS :: 이경수 솔루션즈아키텍트
Security on AWS :: 이경수 솔루션즈아키텍트
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
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
 
S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트:: AWS Summit Onli...
S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트::  AWS Summit Onli...S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트::  AWS Summit Onli...
S3, 넌 이것까지 할 수있네 (Amazon S3 신규 기능 소개) - 김세준, AWS 솔루션즈 아키텍트:: AWS Summit Onli...
 
Building a Secured Network environment on AWS
Building a Secured Network environment on AWSBuilding a Secured Network environment on AWS
Building a Secured Network environment on AWS
 
Introduction to Amazon Relational Database Service (Amazon RDS)
Introduction to Amazon Relational Database Service (Amazon RDS)Introduction to Amazon Relational Database Service (Amazon RDS)
Introduction to Amazon Relational Database Service (Amazon RDS)
 
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 RDS
AWS RDSAWS RDS
AWS RDS
 
(STG401) Amazon S3 Deep Dive & Best Practices
(STG401) Amazon S3 Deep Dive & Best Practices(STG401) Amazon S3 Deep Dive & Best Practices
(STG401) Amazon S3 Deep Dive & Best Practices
 
Getting Started with Amazon ElastiCache
Getting Started with Amazon ElastiCacheGetting Started with Amazon ElastiCache
Getting Started with Amazon ElastiCache
 
Deep Dive on Amazon S3
Deep Dive on Amazon S3Deep Dive on Amazon S3
Deep Dive on Amazon S3
 
AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS
 
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingCloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
AWS 기반의 마이크로 서비스 아키텍쳐 구현 방안 :: 김필중 :: AWS Summit Seoul 20
 
AWS EC2 Fundametals
AWS EC2 FundametalsAWS EC2 Fundametals
AWS EC2 Fundametals
 

Similar to DAT302_Deep Dive on Amazon Relational Database Service (RDS)

Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310 Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310
Amazon Web Services
 
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 Web Services
 
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...
Amazon Web Services
 
Relational Database Services on AWS - Bill Baldwin
Relational Database Services on AWS - Bill BaldwinRelational Database Services on AWS - Bill Baldwin
Relational Database Services on AWS - Bill Baldwin
Amazon Web Services
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
Amazon Web Services
 
Scaling your Application with AWS Relational Databases I AWS Dev Day 2018
Scaling your Application with AWS Relational Databases I AWS Dev Day 2018Scaling your Application with AWS Relational Databases I AWS Dev Day 2018
Scaling your Application with AWS Relational Databases I AWS Dev Day 2018
AWS Germany
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
Amazon Web Services
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
Amazon Web Services
 
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
Amazon Web Services
 
DAT203_Running MySQL Databases on AWS
DAT203_Running MySQL Databases on AWSDAT203_Running MySQL Databases on AWS
DAT203_Running MySQL Databases on AWS
Amazon Web Services
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
Amazon Web Services
 
What's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS SummitWhat's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS Summit
Amazon Web Services
 
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Amazon Web Services
 
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
cyrilkhairallah
 
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
Amazon Web Services
 
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 ?
Amazon Web Services
 
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
Amazon Web Services
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
Amazon Web Services
 
Introduction to AWS Database Services
Introduction to AWS Database ServicesIntroduction to AWS Database Services
Introduction to AWS Database Services
Amazon Web Services
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
Amazon Web Services
 

Similar to DAT302_Deep Dive on Amazon Relational Database Service (RDS) (20)

Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310 Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310
 
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 & 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...
 
Relational Database Services on AWS - Bill Baldwin
Relational Database Services on AWS - Bill BaldwinRelational Database Services on AWS - Bill Baldwin
Relational Database Services on AWS - Bill Baldwin
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
 
Scaling your Application with AWS Relational Databases I AWS Dev Day 2018
Scaling your Application with AWS Relational Databases I AWS Dev Day 2018Scaling your Application with AWS Relational Databases I AWS Dev Day 2018
Scaling your Application with AWS Relational Databases I AWS Dev Day 2018
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
 
Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
 
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
 
DAT203_Running MySQL Databases on AWS
DAT203_Running MySQL Databases on AWSDAT203_Running MySQL Databases on AWS
DAT203_Running MySQL Databases on AWS
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
 
What's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS SummitWhat's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS Summit
 
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
 
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
 
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
 
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 ?
 
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
 
Introduction to AWS Database Services
Introduction to AWS Database ServicesIntroduction to AWS Database Services
Introduction to AWS Database Services
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 

More from Amazon Web Services

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...
Amazon Web Services
 
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...
Amazon Web Services
 
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
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
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
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
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...
Amazon Web Services
 
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...
Amazon Web Services
 
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
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
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
Amazon Web Services
 
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
Amazon Web Services
 
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
Amazon Web Services
 
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
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 AWSAmazon 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 DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon 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
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

DAT302_Deep Dive on Amazon Relational Database Service (RDS)

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Deep Dive on Amazon Relational Database Service (RDS) Brian Welcker P r i n c i p a l P r o d u c t M a n a g e r , A m a z o n R D S D A T 3 0 2 N o v e m b e r 2 8 , 2 0 1 7 AWS re:INVENT
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is Amazon RDS? • Managed relational database service in the AWS cloud • Multi-engine support: Amazon Aurora, MySQL, MariaDB, PostgreSQL, Oracle, SQL Server • Automated provisioning, patching, scaling, replicas, backup/restore • Easily scales to handle growth • High availability with Multi-AZ and Amazon Aurora Amazon RDS
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why use Amazon RDS? • Lower TCO because we manage “the muck” • Get more leverage from your teams • Focus on the things that differentiate you • Built-in high availability and cross-region replication across multiple data centers • Even a small startup can leverage multiple data centers to design highly available apps with over 99.95% availability
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Configuring your database instance in Amazon RDS
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Commercial Open Source Cloud Native Which RDS engine should I use? Amazon EBS-based Storage Aurora Storage System MySQL Compatible PostgreSQL Compatible
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. T2 Family • Burstable instances • 1 vCPU/1 GB RAM > 8 vCPU 32 GB RAM • Moderate networking performance • Good for smaller or variable workloads • Monitor CPU credit metrics in Amazon CloudWatch • T2.micro is eligible for free tier M3/M4 Family • General-purpose instances • 2 vCPU/8 GiB RAM > 64 vCPU 256 GiB RAM • High-performance networking • Good for running CPU intensive workloads (e.g., WordPress) R3/R4 Family • Memory-optimized instances • 2 vCPU/16 GiB RAM > 64 vCPU 488 GiB RAM • High-performance networking • Good for query-intensive workloads or high connection counts Which instance type should I choose?
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. General purpose (GP2) • SSD storage • Maximum of 16 TB! • Leverages Amazon EBS Elastic Volumes • IOPS determined by volume size • Minimum of 100 IOPS (below 33.33GiB) • Bursts to 3,000 IOPS (applicable below 1.3 TB) • Baseline of 10,000 IOPS (at 3.3 TB and above) • Affordable performance Provisioned IOPS (IO1) • SSD storage • Maximum of 16 TB! • Leverages Amazon EBS Elastic Volumes • Maximum of 40 K IOPS (20 K on SQL Server) • Delivers within 10% of the IOPS performance 99.9% of the time • High performance and consistency Magnetic • Magnetic storage • Maximum of 1 TB • Supported for legacy databases Which storage type should I choose?
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I decide between GP2 and IO1? W h y a m I n o t s e e i n g 3 0 K I O P S ? • GP2 is a great choice, but be aware of burst credits on volumes < 1 TB • Hitting credit-depletion results in IOPS drop—latency and queue depth metrics will spike until credits are replenished • Monitor BurstBalance to see percent of burst-bucket I/O credits available • Monitor read/write IOPS to see if average IOPS is greater than the baseline • Think of GP2 burst rate and PIOPS stated rate as maximum I/O rates
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I scale my database instance? W i l l t h e r e b e d o w n t i m e ? • Scale compute/memory vertically up or down • Handle higher load to grow over time • Lower usage to control costs • New host is attached to existing storage with minimal downtime • Scale up Amazon EBS storage (now up to 16 TB!) • Amazon EBS engines now support Elastic Volumes for fast scaling (now including SQL Server) • No downtime for storage scaling • Initial scaling operation may take longer, because storage is reconfigured on older instances • Can re-provision IOPS on the fly
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Managing high availability, read replicas, and backups in Amazon RDS
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I ensure database high availability? Multi-AZ provides enterprise-grade fault-tolerance solution for production databases Automatic failover Synchronous replication Inexpensive and enabled with one click
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What happens during a Multi-AZ failover? H o w l o n g d o e s i t t a k e ? • Each host manages set of Amazon EBS volumes with a full copy of the data • Instances are monitored by an external observer to maintain consensus over quorum • Failover initiated by automation or through the Amazon RDS API • Redirection to the new primary instance is provided through DNS DNS Primary Standby EC2 #1 EC2 #2 Availability Zone #1 Availability Zone #2 APP EBS #1 EBS #2 PrimarySecondary
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why would I use Read Replicas? • Relieve pressure on your source database with additional read capacity • Bring data close to your applications in different regions • Promote a Read Replica to a master for faster recovery in the event of disaster • Upgrade a Read Replica to a new engine version • Supported for MySQL, MariaDB, and PostgreSQL
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Synchronous replication—highly durable • Only primary instance is active at any point in time • Backups can be taken from secondary • Always in two Availability Zones within a Region • Database engine version upgrades happen on primary • Automatic failover when a problem is detected • Asynchronous replication—highly scalable • All replicas are active and can be used for read scaling • No backups configured by default • Can be within an Availability Zone, cross-AZ, or cross-region • Database engine version upgrades independently from source instance • Can be manually promoted to a standalone database R e a d R e p l i c a sM u l t i - A Z When should I use Multi-AZ as opposed to Read Replicas?
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How does Amazon RDS manage backups? • Two options – automated backups and manual snapshots • Amazon RDS backups leverage Amazon EBS snapshots stored in Amazon S3 • Transaction logs are stored every 5 minutes in Amazon S3 to support point-in-time recovery (PITR) • No performance penalty for backups • Snapshots can be copied across regions or shared with other accounts Availability Zone #2 Availability Zone #1 Region #1 Region #2 Transaction Logs DB App RDS Host RDS Host EBS Vol EBS Vol EBS Snapshot Amazon S3
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Specify backup retention window per instance (7-day default) • Kept until outside of window (35-day maximum) or instance is deleted • Supports PITR • Good for disaster recovery • Manually created through AWS console, AWS CLI, or Amazon RDS API • Kept until you delete them • Restores to saved snapshot • Use for checkpoint before making large changes, non-production/test environments, final copy before deleting a database M a n u a l s n a p s h o t sA u t o m a t e d b a c k u p s When should I use automated backups as opposed to snapshots?
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I restore a backup? W h y d o e s i t t a k e s o l o n g ? • Restoring creates an entirely new database instance • Define the instance configuration just like a new instance • Will get the default parameter, security, and option groups • New volumes are hydrated from Amazon S3 • While the volume is usable immediately, full performance requires the volume to warm up until fully instantiated • Migrate to a DB instance class with high I/O capacity • Maximize I/O during restore process
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Securing your Amazon RDS database instance
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I secure my Amazon RDS database? • Amazon RDS is designed to be secure by default • Network isolation with Amazon Virtual Private Cloud (Amazon VPC) • AWS Identity and Access Management (IAM)- based resource-level permission controls • Encryption at rest using AWS KMS (all engines) or Oracle/Microsoft TDE • Use SSL protection for data in transit
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What does Amazon VPC provide? • Places your instance in a private subnet, making it secure from public routes on the Internet • Database instance IP firewall protection lets you securely control network configuration • Turn off Public Accessibility in DB instance settings to restrict access outside Amazon VPC • Use ClassicLink to network with non-VPC resources AWS Direct Connect VPN connection VPC peering Internet gateway Routing rules Availability Zone AWS Region 10.1.0.0/16 10.1.1.0/24
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I grant access to my database? • Use IAM to control who can perform actions on RDS resources • Do not use AWS root credentials to manage Amazon RDS resources—you should create an IAM user for everyone, including yourself • Can use AWS Multi-Factor Authentication (MFA) to provide extra level of protection DBA and Ops Amazon RDS Controlled with IAM Users and DBAApplications Your database Controlled with database grants
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I encrypt my database? • Use AWS KMS-based encryption in the AWS console • No performance penalty for encrypting data • Centralized access and audit of key activity • Best practices • Encryption cannot be removed from DB instances • If source is encrypted, Read Replicas must be encrypted • Add encryption to an unencrypted DB instance by encrypting a snapshot copy Data keys Amazon RDS instance 3 Amazon RDS instance 2 Amazon RDS instance 1 Customer master key(s)
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Monitoring your Amazon RDS database instance
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I monitor my Amazon RDS database? Amazon CloudWatch metrics • CPU/Storage/Memory • Swap usage • I/O (read and write) • Latency (read and write) • Throughput (read and write) • Replica lag Amazon CloudWatch Alarms • Similar to on-premises monitoring tools Enhanced monitoring for Amazon RDS • Access to over 50 CPU, memory, file system, and disk I/O metrics • Low as 1-second intervals Integration with third-party monitoring tools
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Introducing Amazon RDS Performance Insights • Measures DB Load: Average Active Sessions (AAS) • Identifies database bottlenecks (Top SQL) • Easy • Powerful • Identifies source of bottlenecks • Enables problem discovery • Adjustable time frame • Hour, day, week, and longer • Coming soon for Amazon EBS-based Amazon RDS engines How do I improve database performance?
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Can I know when service events happen? • Amazon RDS uses Amazon SNS to receive notification when an event occurs • Notifications can be in any form supported by Amazon SNS (email, a text message, or a call to an HTTP endpoint) • Six different source types (DB instance, DB parameter group, DB security group, DB snapshot, DB cluster, DB cluster snapshot) • 17 different event categories (availability, backup, deletion, configuration change, etc.)
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Maintenance and billing for Amazon RDS
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Any maintenance that causes downtime (typically only a few times per year) will be scheduled in your maintenance window • Operating system or Amazon RDS software patches are usually performed without restarting databases • Database engine upgrades require downtime • Minor version upgrades—automatic or manually applied • Major version upgrades—manually applied • Version deprecations—three- to six-month notification before scheduled upgrades • View upcoming maintenance events in your AWS Personal Health Dashboard How do you maintain my database? H o w c a n I p l a n f o r i t ?
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How am I charged for Amazon RDS? • Database instance (instance hours) • Combination of Region + instance type + database engine + license (optional) • Database storage (GB-mo) • Can be either provisioned (Amazon EBS) or consumed (Amazon Aurora) • Provisioned IOPS (IOPS-Mo) for IO1 storage type • Database I/O requests (IOs) for Amazon Aurora and Amazon EBS magnetic-storage types • Backup storage (GB-mo) • Size of backups and snapshots stored in Amazon S3 • No charge for backup storage up to 100% of total database storage • Data transfer (GB-mo) • Uses AWS regional data-transfer pricing Amazon RDS Free Tier
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I understand my bill? • Amazon RDS charges are grouped by Region • Instances are grouped by engine • Storage and backup charges are cross- engine • Use AWS Cost Explorer for graphical comparison • Use the AWS Cost & Usage Report for billing details • Must be enabled for account • Stored in your Amazon S3 bucket
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How can I save money on my database? • Amazon RDS Reserved Instances (RIs) provide a discount over on-demand prices • Region, instance family, and engine of on-demand usage must match to apply benefit • Amazon RDS RIs offer size flexibility for open-source and Oracle BYOL engines • By default, RIs are shared between all accounts in consolidated billing • Use the RI utilization report to determine how your RIs are being used • Support for RI coverage report coming soon
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Can I stop my database when it’s not in use? • Stop and start a running database instance from the console or AWS CLI • Available for single-AZ DB instances • While instance is stopped, you only pay for storage • Backup retention window is maintained while stopped • Instances are restarted after 7 days • Pending maintenance operations are applied • Instances can be stopped again if desired
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Related Sessions at re:Invent DAT311 Technology Trends in Data Processing Wednesday, Nov 29, 11:30 AM Venetian, Level 5, Palazzo N DAT312 Migrating Your SQL Server Databases to Amazon RDS Wednesday, Nov 29, 4:00 PM Venetian, Level 3, Lido 3006 DAT203 Running MySQL Databases on AWS Thursday, Nov 30, 11:30 Venetian, Level 1, Casanova 502 DAT201 AWS Database and Analytics State of the Union - 2017 Thursday, Nov 30, 12:15 PM Venetian, Level 2, Venetian Theatre DAT313 Running Oracle Databases on Amazon RDS Thursday, Nov 30, 4:45 PM Venetian, Level 4, Lando 4202 DAT314 Best Practices for Running PostgreSQL on AWS Friday, Dec 1, 9:15 AM Venetian, Level 4, Lando 4202
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you!