Mais conteúdo relacionado Semelhante a Running SQL Server on Amazon RDS and Migrating to MySQL (DAT306-R1) - AWS re:Invent 2018 (20) Mais de Amazon Web Services (20) Running SQL Server on Amazon RDS and Migrating to MySQL (DAT306-R1) - AWS re:Invent 20182. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Running SQL Server on Amazon RDS
and Migrating to MySQL
Richard Waymire
Principal DB Specialist SA
AWS
D A T 3 0 6
Ed Murray
Software Dev Manager, DMS/SCT
AWS
3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Run the AWS Schema Conversion Tool to convert a SQL Server
schema to Amazon Aurora MySQL
Use AWS Database Migration Service (AWS DMS) to migrate your SQL
Server database to Aurora MySQL
Perform data updates on SQL Server and monitor them replicating
4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Breakout repeats
Monday, Nov. 26
10:45 a.m. | Venetian, Level 4, Lando 4205
Tuesday, Nov. 27
7:00 p.m. | Venetian, Level 4, Marcello 4403
5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Start your AWS CloudFormation template restore
• Your first step in this lab is to start the AWS CloudFormation Template
• We recommend that you use an EU region for this lab
• Directions for the lab: https://bit.ly/2RVHfNM
• The AWS CloudFormation template is located
at: https://bit.ly/2z4Fl6n
• We will wait 5 minutes while you get this launched, then start the
presentation
6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choose the best service for your needs
Amazon
EC2
Amazon
RDS
Amazon RDS SQL Server
• Managed physical
infrastructure
• Managed DB Install and
backups
• Managed OS and
patching
• Managed high
availability and scaling
SQL Server on Amazon EC2
• Managed physical
infrastructure
• Managed OS installation
• Managed scaling
• OS-level control
Evaluation
8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choose the best service for your needs
Amazon
EC2
Amazon
RDS
Amazon RDS SQL Server
Your responsibility:
• App optimization and
tuning
• Deployment
Orchestration
SQL Server on Amazon EC2
Your responsibility:
• App optimization and
tuning
• Deployment orchestration
• Monitoring and recovery
• High availability
• Backups
• DB & OS patching
Evaluation
9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SQL Server features at a glance
Versions supported: 2008 R2, 2012, 2014, 2016, 2017 All
Editions
supported
:
Express, Web, Standard, Enterprise**
High availability: Self-managed; AlwaysOn, Mirror, Log ShipAWS-managed
Encrypted Storage using AWS KMS (all editions); TDE SupportEncryption:
Authentication: Windows & SQL authentication
Maintenance plans & 3rd party toolsManaged automated backupsBackups:
Self-managedAutomatic software patchingMaintenance:
Amazon RDS Amazon EC2
All
10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SQL Server EC2 vs. RDS: Which should I use?
EC2 RDS
License included
BYOL
Full control over the instance
Automated backups
Self-managed AlwaysOn availability groups
AWS-managed Multi-AZ deployment
11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What are AWS DMS and AWS SCT?
AWS Database Migration Service (AWS DMS) easily
and securely migrates and/or replicates your
databases and data warehouses to AWS
AWS Schema Conversion Tool (AWS SCT) converts your
commercial database and data warehouse schemas to
open-source engines or AWS-native services, such as
Amazon Aurora and Amazon Redshift
Our goal: Allow customers the freedom to choose
the best data platform for their needs #DBFreedom
13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When to use AWS DMS and AWS SCT?
Modernize Migrate Replicate
14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Schema Conversion Tool (SCT)
• Modernize your data warehouse
Convert your Oracle, SQL Server, Netezza,
Greenplum, Vertica or Teradata to
Amazon Redshift
Modernize
Amazon
Aurora
Amazon
Redshift
• Modernize your database
Convert your Oracle, SQL Server, or Db2 LUW to
PostgreSQL, MySQL, or Amazon Aurora
MySQL
PostgreSQL
15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Database Migration Service (DMS)
Migrate
• Migrate business-critical applications
• Migrate data warehouse to Redshift
• Upgrade to a minor version
• Consolidate shards into Aurora
• Archive old data
• Migrate from NoSQL to SQL, SQL to
NoSQL or NoSQL to NoSQL
Amazon
RDS
Amazon
Redshift
Amazon
Aurora
Amazon
DynamoDB
Amazon S3
16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Customer
premises
Application users
AWS
Internet
VPN
Keep your apps running during the migration
Start a replication instance
Connect to source and target
databases
Select tables, schemas, or
databases
Let AWS DMS create tables,
load data, and keep them in
sync
Switch applications over to
the target at your
convenience
AWS
DMS
17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora:
A relational database reimagined for the cloud
Speed and availability of high-end commercial databases
Simplicity and cost-effectiveness of open source databases
Drop-in compatibility with MySQL and PostgreSQL
Simple pay as you go pricing
Delivered as a managed service
19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora 101
Performance &
scalability
Availability &
durability
Highly secure Fully managed
5x throughput of standard
MySQL and 3x of standard
PostgreSQL; scale-out up
to 15 read replicas
Fault-tolerant, self-healing
storage; six copies of data
across three AZs;
continuous backup to
Amazon S3
Network isolation,
encryption at
rest/transit
Managed by RDS: No
hardware provisioning,
software patching,
setup, configuration or
backups
MySQL and PostgreSQL compatible relational database built for the cloud
Performance and availability of commercial-grade databases at 1/10th the cost
20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Aurora?
Leverages a scale-out, distributed architecture
Purpose-built log-structured
distributed storage system designed
for databases
Storage volume is striped across
hundreds of storage nodes
distributed over 3 different
availability zones
Six copies of data, two copies in each
availability zone to protect against
AZ+1 failures
Plan to apply same principles to
other layers of the stack
Master Replica
Replica Replica
Availability
Zone 1
Shared storage volume
Availability
Zone 2
Availability
Zone 3
Storage nodes with SSDs
SQL
Transactions
Caching
SQL
Transactions
Caching
SQL
Transactions
Caching
21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Some Key Aurora MySQL Features
• Serverless
• Parallel query
• Multi-master (in preview)
• Global physical replication (in preview)
• Logical Cross Region replication
• Integration with AWS Identity and Access Management (IAM), Amazon
Simple Storage Service (Amazon S3), AWS Lambda, and Amazon
CloudWatch
• Cloning
• BackTrack
22. Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Richard Waymire, waymire@amazon.com
Ed Murray, murraye@amazon.com
23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.