SlideShare a Scribd company logo
RDS - Letting AWS run your Low Admin, 
High Performance Database 
Ganesh Raja, Solutions Architect Amazon Internet Services Private Ltd.
AWS Database Services 
v 
Amazon RDS 
DynamoDB 
Amazon Redshift 
ElastiCache
Why do we offer 4 database services…?
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
v
How Do We Decide What to Build? 
v 
• Start with the customer and work backwards 
• Enable new things that customers couldn’t do before… 
• Make things customers could already do much cheaper, 
simpler and better
Relational Databases 
MySQL, Aurora, PostgreSQL, Oracle, SQL Server 
Fully managed; zero admin 
Amazon 
RDS 
Aurora
Why Did We Create Amazon RDS? 
v 
• All existing apps use relational databases 
• Many new apps will need relational databases 
• But you can already run databases on 
Amazon EC2…
Key Insight: Relational Databases are Complex 
v 
• Our experience running Amazon.com taught us that relational 
databases can be a pain to manage and operate with high 
availability 
• Poorly managed relational databases are a leading cause of 
lost sleep and downtime in the IT world!
Why choose Amazon RDS? 
v 
Schema design 
Query construction 
Query optimization 
Migration 
Backup and recovery 
Patching 
Configuration 
Software upgrades 
Storage upgrades 
Server upgrades 
Hardware issues 
Focus your 
team here 
Let AWS 
focus here
We Made Things Cheaper, Easier and Better 
v 
• Push button provisioning. Automated scaling, patching, security, backups, 
restores and general care and feeding 
• 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 
• Now even a small startup can leverage multiple data centers to design highly 
available apps with over 99.95% availability
RDS Database instances: scalable CPU, 
memory, storage 
v 
• Database instance types offer a range of CPU and memory selections 
• Scale up or down among instance types on demand 
• Database storage is scalable on demand 
• Choose standard storage for lower cost at low IOPS 
• Choose Provisioned IOPS for high, predictable performance and online scaling
How RDS backups work 
v 
• Automated backups 
• Restore your database to a point in time 
• Enabled by default 
• Choose a retention period, up to 35 days 
• Manual snapshots 
• Initiated by you 
• Persist until you delete them 
• Stored in Amazon Simple Storage Service (Amazon S3) 
• Build a new database instance from a snapshot when needed
High Availability Multi-AZ Deployments 
Enterprise-grade fault tolerance solution for production 
databases 
v
Choose Multi-AZ for greater availability, 
durability 
v 
• An availability zone is a physically distinct, independent infrastructure 
• With Multi-AZ operation, your database is synchronously replicated to 
another AZ in the same AWS Region 
• Failover occurs automatically in response to the most important 
failure scenarios 
• Planned maintenance is applied first to backup
Customers Love Multi-AZ 
Multi-AZ Instances as a share of all RDS Instances 
v 
26% 
40% 
45% 
40% 
35% 
30% 
25% 
Oct-12 Jan-13 Apr-13 Jul-13 Oct-13 Jan-14 Apr-14 Jul-14 Oct-14
Choose Read Replicas for greater scalability 
v 
• Help your app scale by offloading read traffic to an automatically 
maintained read replica 
• Create multiple read replicas, load-share traffic 
• Easy to set up
Choose cross-region snapshot copy for even 
greater durability, ease of migration 
v 
• Copy a database snapshot to a different AWS Region 
• Warm standby for disaster recovery 
• Or use it as a base for migration to a different region
Choose cross-region read replicas for enhanced 
data locality, even more ease of migration 
v 
• Even faster recovery in the event 
of disaster 
• Bring data close to your 
customers 
• Promote to a master for easy 
migration
How RDS billing works 
Monthly 
bill = + GB + 
db.m3.xlarge; MySQL; 
Oregon; Single-AZ; 
On-Demand 
100 GB 
Provisioned IOPS 
= 720 hrs * $0.60 + 100 GB * $0.125 + 1,000 IOPS * $0.10 
= $544.50 
Assumes DB instance accessed only from EC2 
Further details at http://aws.amazon.com/rds/pricing/ 
Provisioned 1,000 IOPS
Save money with RDS Reserved Instances 
v 
• Pay a low up-front fee to get a lower hourly price on database 
instances for a 1- or 3-year term 
• The lower-price entitlement applies to any running instance matching 
its description 
• Choose among Heavy, Medium, Light RIs 
Month 1 Month 2 Month 3 Month 4 Month 5 Month 6 Month 7 Month 8 Month 9 Month 10 Month 11 Month 12 
On-demand 544.50 1,089.00 1,633.50 2,178.00 2,722.50 3,267.00 3,811.50 4,356.00 4,900.50 5,445.00 5,989.50 6,534.00 
Heavy RI 1-yr 1,508.10 1,750.20 1,992.30 2,234.40 2,476.50 2,718.60 2,960.70 3,202.80 3,444.90 3,687.00 3,929.10 4,171.20 
Start saving here
How to scale with Amazon RDS 
v 
• Scale up or down with resizable instance types 
• CPU to 32 vCPUs, RAM to 244 GiB 
• Scale your storage up with a few clicks 
• Scale while online 
• Easy conversion from standard to Provisioned IOPS storage 
• Offload read traffic to Read Replicas 
• Put a cache in front of Amazon RDS 
• Amazon ElastiCache for Memcached or Redis 
• Or your favorite cache, self-managed in Amazon EC2 
• Amazon RDS takes some of the pain out of sharding
Best practices for Amazon RDS 
v 
• Strongly consider Provisioned IOPS storage 
• Strongly consider Multi-AZ deployments 
• Make maximum use of ability to rapidly provision test environments 
• Create regular DB Snapshots 
• Test recovery from them 
• Configure CloudWatch alerts and DB Event notifications
How to migrate data into RDS 
v 
• Basic technique: dump and restore 
• Simple, but requires downtime 
RDS for MySQL RDS for Oracle RDS for SQL 
Server 
RDS for 
PostgreSQL 
mysqldump Data Pump Generate/ 
Publish scripts 
pgdump 
mysqlimport SQL Loader Bulk Copy (bcp) copy
How to migrate data into RDS, continued 
• Advanced technique: apply the deltas 
v 
• Replay transactions against the migration target 
RDS for MySQL RDS for Oracle RDS for SQL 
Server 
RDS for 
PostgreSQL 
mysqlbinlog Mview 
replication 
Linked servers Use row 
metadata to 
capture 
modified rows 
Tungsten 
Replicator 
Golden Gate, 
Dbvisit, Attunity, 
Dell SharePlex 
SSIS
Selected Amazon RDS Customers 
v
Changing the Game in Databases
Our Pace of Innovation 
is Increasing 
v 
Amazon RDS 
MySQL launched 
RDS MySQL Multi-AZ, 
Reserved Instances, 
DUB, SFO Expansion 
Amazon RDS for 
Oracle 
Amazon ElastiCache 
for Memcached 
ElastiCache global 
expansion 
Amazon DynamoDB 
RDS VPC Support 
DynamoDB in Japan 
and EU 
ElastiCache global 
expansion continues 
RDS for Oracle Multi- 
AZ 
Amazon RDS for SQL 
Server 
RDS Provisioned IOPS 
Amazon Redshift 
limited Preview 
Amazon ElastiCache 
auto-discovery 
Amazon Redshift 
RDS support for 3TB & 
30,000 IOPS 
RDS Oracle TDE 
DynamoDB Local 
Secondary Indexes 
Redshift global 
expansion 
RDS SLA (99.95% for 
Multi-AZ) 
Amazon ElastiCache 
for Redis 
DynamoDB GSI 
42 new Redshift 
features 
DynamoDB Local 
DynamoDB cross-region 
support 
Amazon RDS for 
PostgreSQL 
RDS Oracle time 
zone support 
Redshift SSD Node 
types 
Golden Gate Support 
ElastiCache Redis 
backup/restore 
RDS SQL Server 
Multi-AZ support 
Redshift cross region 
support, HSM 
support and direct 
integration with EMR 
& Kinesis 
Redshift Free Trial 
RDS PostgreSQL 
SLA 
RDS MySQL buffer 
pool caching 
DynamoDB JSON 
Support 
ElastiCache Multi-AZ 
Amazon RDS for 
Aurora
In a connected world, data volume is going up 
and response times are going down…
One Size Does Not Fit All
Which Database to Use? 
v 
• Existing App 
• Uses MySQL  RDS MySQL  Amazon RDS for Aurora 
• Uses PostgreSQL  RDS PostgreSQL 
• Uses Oracle or SQL Server  RDS Oracle or RDS SQL Server 
• New App 
• Can avoid relational features  DynamoDB 
• Must use relational features  RDS MySQL  RDS for Aurora 
• Need a Data Warehouse 
• Amazon Redshift
Use The Right Tool for the Job 
v 
Amazon RDS 
DynamoDB 
Amazon Redshift 
ElastiCache
Let us manage the muck and 
keep your databases running
So you can focus on your business 
and the things that differentiate you
Try Amazon RDS for free 
v 
• For your first year, at no charge… 
• Enough free instance-hours to run a “micro” instance continuously 
• 20 GB of database instance storage 
• 20 GB for automated backups 
• 10 million I/O operations per month 
• Learn more about the AWS free tier: 
http://aws.amazon.com/free/
Learn more about Amazon RDS 
v 
• Amazon RDS home page: http://aws.amazon.com/rds/ 
• Amazon RDS Frequently Asked Questions: 
http://aws.amazon.com/rds/faqs/ 
• Links to Import Guides for each engine: 
http://aws.amazon.com/rds/faqs/#9
v
AWS Training & Certification 
AWS offers Training and Certification to help you develop your skills and gain recognition for your technical experience 
with AWS services and solutions. 
v 
Online Training 
Gain confidence and hands-on 
experience with AWS. Watch free 
Instructional Videos and explore Self- 
Paced Labs 
Instructor Led Classes 
Learn how to design, deploy and operate 
highly available, cost-effective and secure 
applications on AWS in courses led by 
qualified AWS instructors 
AWS Certification 
Validate your technical expertise with 
AWS and use practice exams to help you 
prepare for AWS Certification 
http://aws.amazon.com/training
v 
Thank You

More Related Content

Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database

  • 1. RDS - Letting AWS run your Low Admin, High Performance Database Ganesh Raja, Solutions Architect Amazon Internet Services Private Ltd.
  • 2. AWS Database Services v Amazon RDS DynamoDB Amazon Redshift ElastiCache
  • 3. Why do we offer 4 database services…?
  • 5. v
  • 6. How Do We Decide What to Build? v • Start with the customer and work backwards • Enable new things that customers couldn’t do before… • Make things customers could already do much cheaper, simpler and better
  • 7. Relational Databases MySQL, Aurora, PostgreSQL, Oracle, SQL Server Fully managed; zero admin Amazon RDS Aurora
  • 8. Why Did We Create Amazon RDS? v • All existing apps use relational databases • Many new apps will need relational databases • But you can already run databases on Amazon EC2…
  • 9. Key Insight: Relational Databases are Complex v • Our experience running Amazon.com taught us that relational databases can be a pain to manage and operate with high availability • Poorly managed relational databases are a leading cause of lost sleep and downtime in the IT world!
  • 10. Why choose Amazon RDS? v Schema design Query construction Query optimization Migration Backup and recovery Patching Configuration Software upgrades Storage upgrades Server upgrades Hardware issues Focus your team here Let AWS focus here
  • 11. We Made Things Cheaper, Easier and Better v • Push button provisioning. Automated scaling, patching, security, backups, restores and general care and feeding • 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 • Now even a small startup can leverage multiple data centers to design highly available apps with over 99.95% availability
  • 12. RDS Database instances: scalable CPU, memory, storage v • Database instance types offer a range of CPU and memory selections • Scale up or down among instance types on demand • Database storage is scalable on demand • Choose standard storage for lower cost at low IOPS • Choose Provisioned IOPS for high, predictable performance and online scaling
  • 13. How RDS backups work v • Automated backups • Restore your database to a point in time • Enabled by default • Choose a retention period, up to 35 days • Manual snapshots • Initiated by you • Persist until you delete them • Stored in Amazon Simple Storage Service (Amazon S3) • Build a new database instance from a snapshot when needed
  • 14. High Availability Multi-AZ Deployments Enterprise-grade fault tolerance solution for production databases v
  • 15. Choose Multi-AZ for greater availability, durability v • An availability zone is a physically distinct, independent infrastructure • With Multi-AZ operation, your database is synchronously replicated to another AZ in the same AWS Region • Failover occurs automatically in response to the most important failure scenarios • Planned maintenance is applied first to backup
  • 16. Customers Love Multi-AZ Multi-AZ Instances as a share of all RDS Instances v 26% 40% 45% 40% 35% 30% 25% Oct-12 Jan-13 Apr-13 Jul-13 Oct-13 Jan-14 Apr-14 Jul-14 Oct-14
  • 17. Choose Read Replicas for greater scalability v • Help your app scale by offloading read traffic to an automatically maintained read replica • Create multiple read replicas, load-share traffic • Easy to set up
  • 18. Choose cross-region snapshot copy for even greater durability, ease of migration v • Copy a database snapshot to a different AWS Region • Warm standby for disaster recovery • Or use it as a base for migration to a different region
  • 19. Choose cross-region read replicas for enhanced data locality, even more ease of migration v • Even faster recovery in the event of disaster • Bring data close to your customers • Promote to a master for easy migration
  • 20. How RDS billing works Monthly bill = + GB + db.m3.xlarge; MySQL; Oregon; Single-AZ; On-Demand 100 GB Provisioned IOPS = 720 hrs * $0.60 + 100 GB * $0.125 + 1,000 IOPS * $0.10 = $544.50 Assumes DB instance accessed only from EC2 Further details at http://aws.amazon.com/rds/pricing/ Provisioned 1,000 IOPS
  • 21. Save money with RDS Reserved Instances v • Pay a low up-front fee to get a lower hourly price on database instances for a 1- or 3-year term • The lower-price entitlement applies to any running instance matching its description • Choose among Heavy, Medium, Light RIs Month 1 Month 2 Month 3 Month 4 Month 5 Month 6 Month 7 Month 8 Month 9 Month 10 Month 11 Month 12 On-demand 544.50 1,089.00 1,633.50 2,178.00 2,722.50 3,267.00 3,811.50 4,356.00 4,900.50 5,445.00 5,989.50 6,534.00 Heavy RI 1-yr 1,508.10 1,750.20 1,992.30 2,234.40 2,476.50 2,718.60 2,960.70 3,202.80 3,444.90 3,687.00 3,929.10 4,171.20 Start saving here
  • 22. How to scale with Amazon RDS v • Scale up or down with resizable instance types • CPU to 32 vCPUs, RAM to 244 GiB • Scale your storage up with a few clicks • Scale while online • Easy conversion from standard to Provisioned IOPS storage • Offload read traffic to Read Replicas • Put a cache in front of Amazon RDS • Amazon ElastiCache for Memcached or Redis • Or your favorite cache, self-managed in Amazon EC2 • Amazon RDS takes some of the pain out of sharding
  • 23. Best practices for Amazon RDS v • Strongly consider Provisioned IOPS storage • Strongly consider Multi-AZ deployments • Make maximum use of ability to rapidly provision test environments • Create regular DB Snapshots • Test recovery from them • Configure CloudWatch alerts and DB Event notifications
  • 24. How to migrate data into RDS v • Basic technique: dump and restore • Simple, but requires downtime RDS for MySQL RDS for Oracle RDS for SQL Server RDS for PostgreSQL mysqldump Data Pump Generate/ Publish scripts pgdump mysqlimport SQL Loader Bulk Copy (bcp) copy
  • 25. How to migrate data into RDS, continued • Advanced technique: apply the deltas v • Replay transactions against the migration target RDS for MySQL RDS for Oracle RDS for SQL Server RDS for PostgreSQL mysqlbinlog Mview replication Linked servers Use row metadata to capture modified rows Tungsten Replicator Golden Gate, Dbvisit, Attunity, Dell SharePlex SSIS
  • 26. Selected Amazon RDS Customers v
  • 27. Changing the Game in Databases
  • 28. Our Pace of Innovation is Increasing v Amazon RDS MySQL launched RDS MySQL Multi-AZ, Reserved Instances, DUB, SFO Expansion Amazon RDS for Oracle Amazon ElastiCache for Memcached ElastiCache global expansion Amazon DynamoDB RDS VPC Support DynamoDB in Japan and EU ElastiCache global expansion continues RDS for Oracle Multi- AZ Amazon RDS for SQL Server RDS Provisioned IOPS Amazon Redshift limited Preview Amazon ElastiCache auto-discovery Amazon Redshift RDS support for 3TB & 30,000 IOPS RDS Oracle TDE DynamoDB Local Secondary Indexes Redshift global expansion RDS SLA (99.95% for Multi-AZ) Amazon ElastiCache for Redis DynamoDB GSI 42 new Redshift features DynamoDB Local DynamoDB cross-region support Amazon RDS for PostgreSQL RDS Oracle time zone support Redshift SSD Node types Golden Gate Support ElastiCache Redis backup/restore RDS SQL Server Multi-AZ support Redshift cross region support, HSM support and direct integration with EMR & Kinesis Redshift Free Trial RDS PostgreSQL SLA RDS MySQL buffer pool caching DynamoDB JSON Support ElastiCache Multi-AZ Amazon RDS for Aurora
  • 29. In a connected world, data volume is going up and response times are going down…
  • 30. One Size Does Not Fit All
  • 31. Which Database to Use? v • Existing App • Uses MySQL  RDS MySQL  Amazon RDS for Aurora • Uses PostgreSQL  RDS PostgreSQL • Uses Oracle or SQL Server  RDS Oracle or RDS SQL Server • New App • Can avoid relational features  DynamoDB • Must use relational features  RDS MySQL  RDS for Aurora • Need a Data Warehouse • Amazon Redshift
  • 32. Use The Right Tool for the Job v Amazon RDS DynamoDB Amazon Redshift ElastiCache
  • 33. Let us manage the muck and keep your databases running
  • 34. So you can focus on your business and the things that differentiate you
  • 35. Try Amazon RDS for free v • For your first year, at no charge… • Enough free instance-hours to run a “micro” instance continuously • 20 GB of database instance storage • 20 GB for automated backups • 10 million I/O operations per month • Learn more about the AWS free tier: http://aws.amazon.com/free/
  • 36. Learn more about Amazon RDS v • Amazon RDS home page: http://aws.amazon.com/rds/ • Amazon RDS Frequently Asked Questions: http://aws.amazon.com/rds/faqs/ • Links to Import Guides for each engine: http://aws.amazon.com/rds/faqs/#9
  • 37. v
  • 38. AWS Training & Certification AWS offers Training and Certification to help you develop your skills and gain recognition for your technical experience with AWS services and solutions. v Online Training Gain confidence and hands-on experience with AWS. Watch free Instructional Videos and explore Self- Paced Labs Instructor Led Classes Learn how to design, deploy and operate highly available, cost-effective and secure applications on AWS in courses led by qualified AWS instructors AWS Certification Validate your technical expertise with AWS and use practice exams to help you prepare for AWS Certification http://aws.amazon.com/training

Editor's Notes

  1. We have designed specific Database solutions for specific use cases based on what customers tell us For us, everything starts with the customer and we work backward from the customer to design a product Designed to enable new things that customers could not do before And To make things customers could do before, much cheaper, much easier, much better
  2. You can only scale up with storage.
  3. Because Multi-AZ minimizes the downtime impact of scheduled maintenance, it gives value even to deployments in which the app servers are in a single AZ. But it’s still best to have the instances spread across multiple AZs.
  4. Read replicas are available for Amazon RDS for MySQL. Not only can read replicas offload read traffic, they can also be a standby failover. Manually promote a read replica to master status. If you go this route, be sure to put the RR in a different AZ, and choose a different maintenance window.
  5. Cross region snapshot copy is available for all RDS engines. However, you can’t use it to copy snapshots from an RDS/Oracle instance that is using Transparent Data Encryption.
  6. Cross-region read replicas are available for Amazon RDS for MySQL.
  7. db.m3.xlarge instance: 4 vCPUs, 15 GiB RAM db.m3.large instance: 2 vCPUs, 7.5 GiB RAM
  8. The break-even period for a Heavy RI is well in advance of the expiration of the 1- or 3-year term. Reserved instances are keyed to DB instance class, DB engine, and the choice of Single-AZ vs. Multi-AZ. Heavy RIs are appropriate for production database workloads. Use Light or Medium RIs for test/dev databases run only a few hours per day
  9. Provisioned IOPS storage delivers predictable performance. In Multi-AZ deployment, scheduled maintenance happens first on the standby. Build and discard test environments. CloudWatch is good for watching load thresholds. If you are using Cross Region Read Replicas, use CloudWatch to monitor replica lag.
  10. Each instance has a migration guide
  11. Each instance has a migration guide