SlideShare a Scribd company logo
Amazon Aurora 

migration
2018.9.19

jesang.yoon@hbsmith.io
HBSmith .
• HBSmith Co-Founder, CTO, SW Developer

• 2013 AWS 

• #Architecture 

• : & , AWS, Python, Apple, Youtube

• Email: jesang.yoon@hbsmith.io

• GitHub ID: yoonjs2
, ?
• HBSmith Business Logic & 

.

• AI Bot 24 365 

.

• .

• NaverLabs, KTH, , Wanted 



• hello@hbsmith.io https://hbsmith.io
.
• AWS 

• Amazon RDS Database 

• Amazon Aurora 

• 

• Amazon Aurora
Computing : Disk
• CPU 

• HDD 

• CPU 

HDD 

• SSD 

Reference: Intel newsroom
Backend Scale-out : RDBMS
• 

Scale-out 

• RDBMS 

( )

• DB Scale-out 

• Cache Sharding Read 

Replica
RDBMS :
• RDBMS 

• ACID 

• Atomicity: - 

• Consistency: - 

• Isolation: - 

• Durability: -source: Loginworks software
RDBMS Scale-out ?

: Split brain
• Sync 2 master node 

• Sync 

• DB 



• Sync 

(Consistency )

• RDBMS “ ” 

• Split Brain .
source: Trifork blog
: Split Brain Syndrome
• (腦梁梁) 





• , 

• 



.
source: Mrs. Eplin's IB Psychology Class Blog
RDBMS Scale-out ?

:
• Split brain
Master 1 

• Master 



• Master 1 SPOF

• Master Scale-up

• Scale-up 

• Sharding…
NoSQL RDBMS ?: CAP
• DBMS
3 2 .

• Consistency:
.

• Availability: 

.

• Partition Tolerance:
.
source: Wikipedia
NoSQL RDBMS ?
• NoSQL: CAP C 

A P !

• Consistency RDBMS


•
Consistency
...
Database ?
• Amazon Aurora AWS 

( )

• 

• AWS Amazon Aurora 



• 

(AWS Documentation ...)
Amazon Aurora Multi-master or Serverless
Amazon Aurora : Sixshop
• Builder ( : WIX)

• 2016 AWS 

• Amazon RDS MySQL

• 2 

• 10 DAU

• DB
• Downtime

• DBMS .

• .
• 1 : DB Snapshot Aurora .

• 2 : Aurora Replica Cluster .

• Downtime 2
AS-IS : Spec
• Risk .

• DBMS 

• Database Engine Version

• Network 

• DB ( , , )

• DB 

• DB Parameter
AS-IS : DBMS Parameter
• : RDS Web Console Parameter -> 2 DB -> Compare
• : RDS MySQL Parameter 1 , Aurora MySQL 1 , 1 

• : encoding, engine, timezone .
AS-IS : Table Schema
• 

• Schema ( )

• Table ( )

• Table Row Count
AS-IS : DB
• 

• ?

: Sixshop 3~4 

• / ?

: Sixshop 1~2 

• ?

: Sixshop 

• Architecture ?

:
AS-IS :
• DB VPC 

• DB VPC 

• : DB VPC 

VPC Peering Connection 

TO-BE:
• DB SQL Engine , Instance Tier Aurora 

• : Aurora MySQL 5.6 .

5.5 RDS MySQL 5.6 



• AS-IS 

Step-by-Step .

• AWS Root AS-IS TO-BE Step-by-Step
.

• : Step Step 





: Step 0 - Migration
• DB VPC 

• DB VPC 

• : DB VPC 

VPC Peering Connection 

: Step 1 - Aurora Read Replica ,
• Aurora Read Replica migration

• DB Aurora
Cluster slave 

• Aurora Cluster
master
( )
: Step 1 - Aurora Read Replica ,
source: AWS Documentation
: Step 1 - Aurora Read Replica ,
1. Source DB Snapshot .

2. 1) Snapshop Aurora Read Replica .
(Cluster Instance )

3. Source DB Read Replica Replication = Source DB
Replica Replica .
Aurora Read Replica
: Step 2 - Replica Lag
• Replication Replica Lag 

• Replica Lag 0 

• Aurora Query Replica Lag
Permission 

• CloudWatch
: Step 2 - Replica Lag
: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Monitoring.html
: Step 3 - Replica Lag 0 WAS
• Replica Lag 0 DB 



• DB Write Transaction 

• 



• DB 

Write Transaction 

• WAS ELB
: Step 3 - Replica Lag 0 WAS
• DB 

Row Count 

• Row Count 

• 

• Row Count 

Step
SELECT CONCAT(
'SELECT "',
table_name,
'" AS table_name, COUNT(*) AS exact_row_count FROM `',
table_schema,
'`.`',
table_name,
'` UNION '
)
FROM INFORMATION_SCHEMA.TABLES
WHERE table_schema = '<my table schema>';
: Step 4 - Aurora Master (Promote)
• 

• DB Promote DB
Cluster role
• : Promote 

DB Query !

(Binary Log )
: Step 5 - Aurora Connection
• WAS DB Endpoint DB


• DB ,
ELB


• DB Rollback
• Sixshop 2 ( 11GB)

• DB 

• 

•
• 

• & ( )

• DBMS Parameter 

• Amazon Aurora . .
!
jesang.yoon@hbsmith.io

More Related Content

PDF
MySQL Advanced Administrator 2021 - 네오클로바
PDF
Maxscale_메뉴얼
PDF
MariaDB 10.5 binary install (바이너리 설치)
PDF
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
PDF
MaxScale - the pluggable router
PDF
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
PDF
MariaDB 5.5 and what comes next - Percona Live NYC 2012
PDF
MaxScale for Effective MySQL Meetup NYC - 14.01.21
MySQL Advanced Administrator 2021 - 네오클로바
Maxscale_메뉴얼
MariaDB 10.5 binary install (바이너리 설치)
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
MaxScale - the pluggable router
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
MariaDB 5.5 and what comes next - Percona Live NYC 2012
MaxScale for Effective MySQL Meetup NYC - 14.01.21

What's hot (20)

PDF
Introduction to ClustrixDB
PDF
Introduction to MariaDB MaxScale
PPTX
CUBRID Cluster Introduction
PDF
MariaDB with SphinxSE
PDF
Introduction to MariaDB
PDF
MySQL 5.5&5.6 new features summary
PDF
PostgreSQL and MySQL
PDF
A beginners guide to MariaDB
PDF
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
PDF
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
PDF
MySQL 5.6 config 優化
PDF
My sql 56_roadmap_april2012_zht2
PDF
MySQL Enterprise Backup (MEB)
PDF
Galera cluster for high availability
PDF
M|18 How to use MyRocks with MariaDB Server
PPTX
The New MariaDB Offering: MariaDB 10, MaxScale and More
PPTX
MariaDB Galera Cluster
PPTX
High performance and high availability proxies for MySQL
PDF
MariaDB 10 Tutorial - 13.11.11 - Percona Live London
PDF
MySQL 开发
Introduction to ClustrixDB
Introduction to MariaDB MaxScale
CUBRID Cluster Introduction
MariaDB with SphinxSE
Introduction to MariaDB
MySQL 5.5&5.6 new features summary
PostgreSQL and MySQL
A beginners guide to MariaDB
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
MySQL 5.6 config 優化
My sql 56_roadmap_april2012_zht2
MySQL Enterprise Backup (MEB)
Galera cluster for high availability
M|18 How to use MyRocks with MariaDB Server
The New MariaDB Offering: MariaDB 10, MaxScale and More
MariaDB Galera Cluster
High performance and high availability proxies for MySQL
MariaDB 10 Tutorial - 13.11.11 - Percona Live London
MySQL 开发
Ad

Similar to Amazon Aurora로 안전하게 migration 하기 (20)

PPTX
Amazon Aurora Getting started Guide -level 0
PPTX
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
PDF
Amazon Aurora (MySQL, Postgres)
PPTX
2016 Utah Cloud Summit: RDS
PPTX
AWS Certified Solutions Architect Professional Course S10-S14
PDF
Aurora_session.pdf
PDF
AWS RDS Vs Aurora: Everything You Need to Know
PDF
Deep Dive on Amazon RDS (May 2016)
PDF
Amazon Aurora: Amazon’s New Relational Database Engine
PDF
Amazon relational database service (rds)
PDF
Migrating and living on rds aurora
PPTX
AWS Community Day 2022 Shirish Joshi_Choosing between RDS and Aurora for MySQ...
PDF
Amazon Aurora Let's Talk About Performance
PDF
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
PDF
Deep Dive: Amazon Relational Database Service (March 2017)
PPTX
Amazon Aurora TechConnect
PDF
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
PDF
Amazon Aurora (Debanjan Saha) - AWS DB Day
PDF
Amazon Aurora MySQL - tips & tricks in configuration | LCloud
PDF
Deep Dive on Amazon Relational Database Service (November 2016)
Amazon Aurora Getting started Guide -level 0
Amazon Aurora Relational Database Built for the AWS Cloud, Version 1 Series
Amazon Aurora (MySQL, Postgres)
2016 Utah Cloud Summit: RDS
AWS Certified Solutions Architect Professional Course S10-S14
Aurora_session.pdf
AWS RDS Vs Aurora: Everything You Need to Know
Deep Dive on Amazon RDS (May 2016)
Amazon Aurora: Amazon’s New Relational Database Engine
Amazon relational database service (rds)
Migrating and living on rds aurora
AWS Community Day 2022 Shirish Joshi_Choosing between RDS and Aurora for MySQ...
Amazon Aurora Let's Talk About Performance
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Deep Dive: Amazon Relational Database Service (March 2017)
Amazon Aurora TechConnect
IVS CTO Night And Day 2018 Winter - [re:Cap] AWS Databases
Amazon Aurora (Debanjan Saha) - AWS DB Day
Amazon Aurora MySQL - tips & tricks in configuration | LCloud
Deep Dive on Amazon Relational Database Service (November 2016)
Ad

More from Jesang Yoon (7)

PDF
AWS Cloud Job Fair 2022 발표자료
PDF
DevOps는 원격근무를 추구하면 안되는 걸까?
PDF
Project TIMAT - infrastructure as code
PDF
AWS S3를 이용한 효과적인 SPA 배포
PPTX
AWS Lambda를 이용한 CI/CD 기법
PDF
대기업에서 스타트업 까지 - 윤제상
PDF
node.js 실무 - node js in practice by Jesang Yoon
AWS Cloud Job Fair 2022 발표자료
DevOps는 원격근무를 추구하면 안되는 걸까?
Project TIMAT - infrastructure as code
AWS S3를 이용한 효과적인 SPA 배포
AWS Lambda를 이용한 CI/CD 기법
대기업에서 스타트업 까지 - 윤제상
node.js 실무 - node js in practice by Jesang Yoon

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
L1 - Introduction to python Backend.pptx
PPTX
history of c programming in notes for students .pptx
PPTX
Introduction to Artificial Intelligence
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Cost to Outsource Software Development in 2025
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
System and Network Administration Chapter 2
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Transform Your Business with a Software ERP System
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
assetexplorer- product-overview - presentation
PDF
Digital Strategies for Manufacturing Companies
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
L1 - Introduction to python Backend.pptx
history of c programming in notes for students .pptx
Introduction to Artificial Intelligence
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Reimagine Home Health with the Power of Agentic AI​
Cost to Outsource Software Development in 2025
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
System and Network Administration Chapter 2
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Transform Your Business with a Software ERP System
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
wealthsignaloriginal-com-DS-text-... (1).pdf
Design an Analysis of Algorithms I-SECS-1021-03
CHAPTER 2 - PM Management and IT Context
assetexplorer- product-overview - presentation
Digital Strategies for Manufacturing Companies
How to Choose the Right IT Partner for Your Business in Malaysia

Amazon Aurora로 안전하게 migration 하기

  • 2. HBSmith . • HBSmith Co-Founder, CTO, SW Developer • 2013 AWS • #Architecture • : & , AWS, Python, Apple, Youtube • Email: jesang.yoon@hbsmith.io • GitHub ID: yoonjs2
  • 3. , ? • HBSmith Business Logic & 
 . • AI Bot 24 365 
 . • . • NaverLabs, KTH, , Wanted 
 • hello@hbsmith.io https://hbsmith.io
  • 4. . • AWS • Amazon RDS Database • Amazon Aurora • • Amazon Aurora
  • 5. Computing : Disk • CPU • HDD • CPU 
 HDD • SSD 
 Reference: Intel newsroom
  • 6. Backend Scale-out : RDBMS • 
 Scale-out • RDBMS 
 ( ) • DB Scale-out • Cache Sharding Read 
 Replica
  • 7. RDBMS : • RDBMS • ACID • Atomicity: - • Consistency: - • Isolation: - • Durability: -source: Loginworks software
  • 8. RDBMS Scale-out ?
 : Split brain • Sync 2 master node • Sync • DB 
 • Sync 
 (Consistency ) • RDBMS “ ” • Split Brain . source: Trifork blog
  • 9. : Split Brain Syndrome • (腦梁梁) 
 
 • , • 
 
 . source: Mrs. Eplin's IB Psychology Class Blog
  • 10. RDBMS Scale-out ?
 : • Split brain Master 1 • Master 
 • Master 1 SPOF • Master Scale-up • Scale-up • Sharding…
  • 11. NoSQL RDBMS ?: CAP • DBMS 3 2 . • Consistency: . • Availability: 
 . • Partition Tolerance: . source: Wikipedia
  • 12. NoSQL RDBMS ? • NoSQL: CAP C 
 A P ! • Consistency RDBMS • Consistency ...
  • 13. Database ? • Amazon Aurora AWS 
 ( ) • • AWS Amazon Aurora 
 • 
 (AWS Documentation ...)
  • 14. Amazon Aurora Multi-master or Serverless
  • 15. Amazon Aurora : Sixshop • Builder ( : WIX) • 2016 AWS • Amazon RDS MySQL • 2 • 10 DAU • DB
  • 17. • 1 : DB Snapshot Aurora . • 2 : Aurora Replica Cluster . • Downtime 2
  • 18. AS-IS : Spec • Risk . • DBMS • Database Engine Version • Network • DB ( , , ) • DB • DB Parameter
  • 19. AS-IS : DBMS Parameter • : RDS Web Console Parameter -> 2 DB -> Compare • : RDS MySQL Parameter 1 , Aurora MySQL 1 , 1 • : encoding, engine, timezone .
  • 20. AS-IS : Table Schema • • Schema ( ) • Table ( ) • Table Row Count
  • 21. AS-IS : DB • • ?
 : Sixshop 3~4 • / ?
 : Sixshop 1~2 • ?
 : Sixshop • Architecture ?
 :
  • 22. AS-IS : • DB VPC • DB VPC • : DB VPC 
 VPC Peering Connection 

  • 23. TO-BE: • DB SQL Engine , Instance Tier Aurora • : Aurora MySQL 5.6 .
 5.5 RDS MySQL 5.6 
 • AS-IS 
 Step-by-Step . • AWS Root AS-IS TO-BE Step-by-Step . • : Step Step 
 
 

  • 24. : Step 0 - Migration • DB VPC • DB VPC • : DB VPC 
 VPC Peering Connection 

  • 25. : Step 1 - Aurora Read Replica , • Aurora Read Replica migration • DB Aurora Cluster slave • Aurora Cluster master ( )
  • 26. : Step 1 - Aurora Read Replica , source: AWS Documentation
  • 27. : Step 1 - Aurora Read Replica , 1. Source DB Snapshot . 2. 1) Snapshop Aurora Read Replica . (Cluster Instance ) 3. Source DB Read Replica Replication = Source DB Replica Replica . Aurora Read Replica
  • 28. : Step 2 - Replica Lag • Replication Replica Lag • Replica Lag 0 • Aurora Query Replica Lag Permission • CloudWatch
  • 29. : Step 2 - Replica Lag : https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Monitoring.html
  • 30. : Step 3 - Replica Lag 0 WAS • Replica Lag 0 DB 
 • DB Write Transaction • 
 • DB 
 Write Transaction • WAS ELB
  • 31. : Step 3 - Replica Lag 0 WAS • DB 
 Row Count • Row Count • • Row Count 
 Step SELECT CONCAT( 'SELECT "', table_name, '" AS table_name, COUNT(*) AS exact_row_count FROM `', table_schema, '`.`', table_name, '` UNION ' ) FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = '<my table schema>';
  • 32. : Step 4 - Aurora Master (Promote) • • DB Promote DB Cluster role • : Promote 
 DB Query !
 (Binary Log )
  • 33. : Step 5 - Aurora Connection • WAS DB Endpoint DB • DB , ELB • DB Rollback
  • 34. • Sixshop 2 ( 11GB) • DB • • • • & ( ) • DBMS Parameter • Amazon Aurora . .