SlidePub
Home
Categories
Login
Register
Home
General
利用亚马逊云强大的基础设施最大限度地减少数据库迁移到AWS期间的停机时间.pdf
利用亚马逊云强大的基础设施最大限度地减少数据库迁移到AWS期间的停机时间.pdf
blackangel52
39 views
42 slides
Jul 19, 2024
Slide
1
of 42
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
About This Presentation
云计算
Size:
4.59 MB
Language:
en
Added:
Jul 19, 2024
Slides:
42 pages
Slide Content
Slide 1
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
BRUSSELS | MARCH 28, 2023
Slide 2
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Minimize Downtime During
Database Migrations to AWS
RotemAgmon(he/him)
BAT303
Solutions Architect
AWS
Slide 3
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
§Why migrate?
§Introduction to AWS Database Migration Service (AWS DMS)
§AWS DMS -Deep dive
§Post Migration Optimization
Agenda
Slide 4
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why migrate?
Slide 5
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Drivers for migration
Infrastructure
•Hardware end of life
•Lack of redundancy or automation
•Failure at different layersScalability
•Change instance sizes as required
•Scale across Regions as required
Costoptimization
•Pay for what you use
•Open-source options, license savings
•Fully managed databasesInnovation
•Modernize your database tier
•Choose the right database
for your workload
Slide 6
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Modernizing leads to maximum innovation velocity and
optimal total cost of ownership
On-premisesLift
and shift
Move to managed
databases
Modernize with
purpose-built
databases
Innovation
velocity
Total
cost of
ownership
(TCO)
Break-free from
legacy databases
Slide 7
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Relational
databases
Non-relational
databases
Amazon
Aurora
Amazon
Keyspaces
Amazon
RDS
Amazon
DocumentDB
Amazon
ElastiCache
Migrate on-premises or self-managed databases to fully managed servicesMove to fully managed databases
Slide 8
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introduction to AWS DMS
Slide 9
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS
Securely migrate your databases and data warehouses to AWS with ease and minimal downtime
Self-service tool
Only pay for compute
resources and additional log
storage used
Low Cost
Multi-AZ option; highly
resilient and self–healing with
continuous replication and
monitoring for minimal
downtime.
High availability
Migrate data to and from most
widely used commercial and
open-source databases
Supports SQL, NoSQL, text-
based and data warehouse
targets
Breadth of Options
Automated migration service
will discover, assess, convert
and migrate your database and
analytics workloads to AWS
Easy to use with a few clicks to
start the process
Managed Migration
Slide 10
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Johnson & JohnsonNielsen
AMGEN
Expedia
Sotheby’sCUPONATION
800,000+ databases migrated using DMS
Slide 11
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS supported sources and targets
NOSQLRELATIONALANALYTICSDATA WAREHOUSE
Amazon S3
AWS Snowball
MongoDB
Cassandra
Amazon
DocumentDB
Netezza
Azure Synapse
GreenplumTeradata
Vertica
Oracle
MySQL Amazon Aurora
PostgreSQLSQL Server
SQL Azure
MariaDB
SAP ASEIBM Db2 LUW
GCP MySQL
SOURCES
TARGETS
Amazon DynamoDB
Amazon
DocumentDB
Amazon Neptune
Amazon
OpenSearch Service
Amazon Kinesis
Data Streams
Amazon S3
Amazon Managed
Streaming for Kafka
Amazon RedshiftOracle
MySQL Amazon Aurora
PostgreSQLSQL Server
MariaDB
SAP ASE
Amazon
ElastiCache
OracleSQL Server
IBM Db2 z/OS
Oracle, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Amazon RDS
Amazon RDSAmazon EC2
Amazon EC2
Slide 12
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Migration planning is a pain (we know)
Manual, time-consuming fleet discovery
Complex and error-prone process
Expensive to bring in consultants
Slide 13
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS Fleet Advisor
Automatically inventories and assesses on-premises database and analytics server fleets
Save on costs associated with migration
planning and migrating workloads
Identify databases to migrate at scale
with minimal effort
Build a migration plan in hours instead
of weeks
Slide 14
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS Fleet Advisor: How it works
Accelerate database and analytics migrations with automated inventory and migration recommendations
On-premises
data center
AWS DMS
Data
Collector
AWS DMS
Fleet Advisor
AWS DMS
console
1Upload data
4Study and
analyze data
Receive migration
recommendations5
Continuously incorporate new data6
Amazon S3
2
Stream
data
into S3
Populate
into DMS3
Slide 15
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS Fleet Advisor: Getting started
Accelerate database and analytics migrations with automated inventory and migration recommendations
Analyzes key data important for planning a migration, including database version, database size, number of queries per second, and IOPS.
Discovers and analyzes the same source and target databases as AWS DMS
(see full list here)
Example sources: Oracle, Microsoft SQL Server, MySQL, MongoDB, Amazon EC2
Example targets: Amazon Aurora, Amazon DynamoDB, Amazon Redshift, Amazon EC2
Fleet Advisor is a free capability of AWS DMS
Export Fleet Advisor’s findings into a .csv report to quickly share with stakeholders
to get alignment
Get started with just a few clicks in the AWS Management Console
Slide 16
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When to choose native migration tools
•Target supports native replication
•Moving ALL the data
•No transformations required
•Downtime window is large enough
Slide 17
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When to use backup and restore
•Database is small
•Downtime window is large enough
•Moving all the data
•No transformations required
Slide 18
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Larger database migration
•What is large?
•Moving all the data takes longer than you are willing to wait
•> 6 TB is generally considered large
•What can I do?
•Use AWS Snowball
•Let AWS Professional Services help you
Slide 19
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS -Deep dive
Slide 20
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The data migration process
Slide 21
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-premises
data center
Application users
Internet
VPN
The data migration process
•Start a replication instance
•Connect to source and target
databases
•Select tables, schemas,
ordatabases
•Let AWS DMS load data and
keep them in sync
•Switch applications over to the
target after they are in sync at
your convenience
•AWS DMS captures ongoing
changes after initial migration
using CDC
AWS DMS
Slide 22
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
On-premises
data center
Internet
VPN
Change data capture (CDC)
Replication instance
(AWS DMS)
t1t2
t1
t2
Target
Update
Change apply after bulk load•CDC for continuous data replication
•Tracks data changes by reading
transaction logs
•Continuously streams changes for
downstream applications to consume
Transactions
Slide 23
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS DMS Tasks
§Configure Tasks in any of the below modes –
§Full Load
§Full Load and Ongoing Replication
§Replicate Data Changes Only
§Replicate from specific LSN or Recovery Point
§Stop Replication at Server Stop Time or Commit Stop Time
Slide 24
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database Migration Options
•Load is table by table
•Configurable number of tables in parallel
•One time load or Change Data Capture (CDC)
•Read from database log on the source and apply to the target
•Filter criteria available for selective loading
•Select only a few tables or a subset of data in your tables
•Multiple sources and targets. Mix and match.
•One side of the migration must be in AWS
•Ongoing replication support
•Keep your replication going until your application is ready to cutover
Slide 25
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Database Migration Options
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html
The following lists SQL Server editions you can use as a source with on-premises databases.
Slide 26
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Oracle Database as Source
§On Amazon EC2 -Oracle 10.2+, 11g and up to 12.2, 18c, and 19c
§On Amazon RDS –11g (versions 11.2.0.4 and later) and up to 12.2, 18c,
and 19c
§SSL is supported
§AWS DMS can read using LogMineror BinaryReaderfrom Oracle DB (only
required for CDC)
§For high volume DBs BinaryReaderreduces the load, but LogMiner
support encryption & compression options
§Source DB must be running in ARCHIVELOG mode and backup retention
period must be > 1 days (for RDS)
§Tables with LOBs must have a primary key to use CDC
§Oracle Active Data Guard Stand-by database can be a source
https://docs.amazonaws.cn/en_us/dms/latest/userguide/CHAP_Source.Oracle.html
Slide 27
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DMS Best Practices
§Performance of an AWS DMS Migration depends on –
§Resource availability on the source
§The available network throughput
§The resource capacity of the replication server
§The ability of the target to ingest changes
§The type and distribution of source data
§The number of objects to be migrated
§Load multiple tables in parallel (default 8 –up to 50 per task) –careful!
§Disable/drop primary key indexes, secondary indexes, referential integrity
constraints and triggers
§Disable backups and transaction logging on target until ready for cutover
Slide 28
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Post Migration Optimization
Slide 29
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Well-Architected Framework –Performance
Efficiency
Performance
efficiency
Slide 30
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Design considerations: performance efficiency
•Appropriately size your replication instance
•Understand source workload pattern and effects on replica lag
•Appropriately size EBS volume for performance
•Understand impacts of multi-AZ deployment
•Deploy replication instance as close to source if multi-region
•Understand different engine specific concepts like binary reader or logminer
•Break out large tables over multiple tasks
•Break out LOB in separate tasks
•LOB considerations and different options
•Understand Batch Apply and when to use it
•Understand Extra Connection Attributes
Slide 31
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitoring DMS performance
CloudWatch Metrics:
•CPUUtilization
•FreeableMemory
•SwapUtilization
•TargetLatency
•SourceLatency
•AWS DMS automatically sends metrics to CloudWatch
every minute for each replication instance
•For list of available DMS metrics
https://docs.aws.amazon.com/dms/latest/userguide/
CHAP_Monitoring.html
Slide 32
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Troubleshooting DMS performance
Poor DMS performance symptoms:
•High CPU utilization
•High memory utilization
•High I/O usage
•High Target Latency
•High Source Latency
•Understanding logging options
Slide 33
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Questions: performance efficiency
•How do you size your replication instance?
•How do you monitor performance of your replication instance?
•How do you handle LOB Data?
•How do you design your tasks?
•How do you handle full load vs CDC?
•Do you have secondary indexes and triggers enabled for full load?
•What Extra Connection Attributes have you set?
•How do you interpret service log messages? Do you have a process to
turn on detailed debugging?
Slide 34
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Well-Architected Framework –Cost
Optimization
Cost
optimization
Slide 35
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Design considerations: cost optimization
•Size compute capacity for sustained load
•Use smaller replication instances in lower environments with less throughput
•Monitor metrics and set billing alarms
•Use cost allocation tags to track expense at a granular level
•Do burstable instances make sense for dev/test?
•Is your storage appropriately sized?
Slide 36
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Data Transfer: cost optimization strategies
Monitoring
•CloudWatch Metrics:
•Network In (Bytes)
•Network Out (Bytes)
Additional Considerations
•Data Transfer into DMS is free.
•Data transferred between DMS and RDS or Amazon EC2 instances in the same
Availability Zone is free.
•Data transferred between AZ’s, regions, or outside of AWS will incur standard
charges.
Slide 37
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Well-Architected Framework -Security
Security
Slide 38
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Design considerations: security
•Configure security group to limit surface area of attack
•Isolate credentials from application by using AWS Secrets Manageror equivalent
•Configure AWS Secrets Manager to automatically rotate the secrets (credential management and
rotation) foryour AWS DMS endpoint credentials
•Use AWS IAMto control access to AWS DMS resources
•For SSL/TLS connections, rotate certificates before the expiration date
Slide 39
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Encryption in DMS
Encryption of data at rest
•AES256-based storage encryption, incl.
(CloudWatch Logs publishing, Enhanced
Monitoring)
•Key management using AWS KMS
•No performance impact on workloads
Encryption of data in transit (TLS)
•Certificates are signed by an authority
•Endpoint connection is CN of certificate (protects
against spoofing attacks)
•Custom endpoints not included in certificate
(cannot verify identity)
•Supports TLS 1.2
More: https://aws.amazon.com/blogs/database/selecting-the-right-encryption-options-for-amazon-rds-and-amazon-aurora-database-engines/
Slide 40
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Compliance
DMS is compliant with:
•SOC 1, 2, 3
•PCI
•ISMAP
•IRAP Protected
•OSPAR
•C5
•FedRAMP
•DoD SRG IL 4,5,6
•Compliance and assurance programs
for finance, healthcare, government,
and more
•Third-party auditors assess the security
and compliance of Amazon Aurora as
part of multiple AWS compliance
programs. These include SOC, PCI,
FedRAMP, HIPAA, and others
•You can download third-party audit
reports using AWS Artifact
•For a list of specific compliance
programs, see AWS services in scope by
compliance program
Slide 41
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DMS Resources -Getting Started
§Visit our website: https://aws.amazon.com/dms
§Technical User Guide: https://docs.aws.amazon.com/dms
§Pricing: https://aws.amazon.com/dms/pricing
§Support: https://forums.aws.amazon.com/forum.jspa?forumID=216
§Get started with Free Tier: https://aws.amazon.com/free
Slide 42
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Please complete the session
survey in the mobile app
RotemAgmon
Solutions Architect
linkedin.com/in/rotemagmon/
Tags
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
39
Slides
42
Age
518 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
42 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
45 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
41 views
14
Fertility awareness methods for women in the society
Isaiah47
39 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
37 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
40 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-42)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better