SlideShare a Scribd company logo
MySQL Migration To
AWS
As delivered in tech meetup #01
organized by www.edYoda.com
on 22nd April 2018
at zekeLabs Bangalore
About me:
Sameer Kumar
DevOps Engineer @ Intuit
10+ years
Ex- Siemens, Ex- Paytm, Ex - Snapdeal
Why Migrate Databases to Cloud ?
Why Migrate Databases to Cloud ?
Business Growth
Why Migrate Databases to Cloud ?
Business Growth Vertical
Scaling
Why Migrate Databases to Cloud ?
Business Growth Horizontal ScalingVertical
Scaling
Availability Zone 3
POD-1 POD-2 POD-N
Proxy Layer
(Routing)
Availability Zone 1
Proxy Layer
(Routing)
POD-1 POD-2 POD-N
Availability Zone 2
Proxy Layer
(Routing)
POD-1 POD-2 POD-N
Architecture – Scalability & Availability
Some statistics
~700K Login per day, ~1MM users login per day during Peak seasons.
103TB of financial data hosted in 118 MySQL physical servers.
Size varies from 600 GB to 2 TB
Nearly Zero Down
Time
Live
Migration
VPN
Different Approaches Different Time
2015
Logical Backup
Restore
mysqldump
Different Approaches Different Time
2016
DMS
2015
Logical Backup
Restore
mysqldump
Different Approaches Different Time
2017
Percona Backup
2016
DMS
2015
Logical Backup
Restore
mysqldump
Logical Backup Restore
• mysqldump
• rsync
• tar
On-Premise Slave EC2 with EBS RDS
• MySQL Client
• tar
Logical Backup Restore
• mysqldump
• rsync
• tar
On-Premise Slave EC2 with EBS RDS
• MySQL Client
• tar
• Dump : 18 Hours for 2 TB
• Sync to AWS: 180G Per Hour
• Restoration: 24~30 Hours
• Replication Catchup : 2 Days
Logical Backup Restore
• mysqldump
• rsync
• tar
On-Premise Slave EC2 with EBS RDS
• MySQL Client
• tar
• Dump : 18 Hours for 2 TB
• Sync to AWS: 180G Per Hour
• Restoration: 24~30 Hours
• Replication Catchup : 2 Days
• max_allowed_packet
• No MyISAM
• Ignore MySQL schema
• Don’t change user permission during migration
Percona XtraBackup
• Percona Xtrabackup
• AWS CLI
• tar
On-Premise Slave AWS S3 RDS
Percona XtraBackup
• Percona Xtrabackup
• AWS CLI
• tar
On-Premise Slave AWS S3 RDS
• Only MySQL 5.6
• 6 TB Limit
• Functions, Stored Procedures are not imported automatically
• Can’t use Partial Backup
Percona XtraBackup
• Percona Xtrabackup
• AWS CLI
• tar
On-Premise Slave AWS S3 RDS
• Only MySQL 5.6
• 6 TB Limit
• Functions, Stored Procedures are not imported automatically
• Can’t use Partial Backup
• S3 Copy: 180G Per Hour
• Restoration: 8 Hours for 2 TB
• Replication Catchup : 2 Days
Blue/Green Deployment with DNS switch
DB-1 DB-2 DB-N
Availability Zone 1
Proxy Layer
(Routing & Pod-picking)
App-1 App-2 App-N
Availability Zone 3
Proxy Layer
(Routing & Pod-picking)
App-1 App-2 App-N
Availability Zone 2
Proxy Layer
(Routing & Pod-picking)
App-1 App-2 App-N
Route 53
Persistence Layer - RDS
Jenkins
Web and Application Layer
Availability Zone 1
Proxy Layer
(Routing & Pod-picking)
App-1 App-1 App-1
Availability Zone 3
Proxy Layer
(Routing & Pod-picking)
App-1 App-2 App-N
Availability Zone 2
Proxy Layer
(Routing & Pod-picking)
App-1 App-2 App-N
Web and Application Layer
1. Deploy
2. Validate
3. Switch DNS Entry
Migration
Complete
Reference links
• DMS Limitations
• Migration to RDS using Percona
• RDS as Slave of External MySQL
Thank You

More Related Content

PDF
What We Learned From Building a Modern Messaging and Streaming System for Cloud
StreamNative
 
PPTX
Kafka Summit NYC 2017 - Data Processing at LinkedIn with Apache Kafka
confluent
 
PDF
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
confluent
 
PDF
Netflix Keystone—Cloud scale event processing pipeline
Monal Daxini
 
PDF
beSharp a serverless approach to big data on aws
Claudio Pontili
 
PPTX
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
Coburn Watson
 
PDF
Putting Kafka Together with the Best of Google Cloud Platform
confluent
 
PPTX
Distributed Kafka Architecture Taboola Scale
Apache Kafka TLV
 
What We Learned From Building a Modern Messaging and Streaming System for Cloud
StreamNative
 
Kafka Summit NYC 2017 - Data Processing at LinkedIn with Apache Kafka
confluent
 
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
confluent
 
Netflix Keystone—Cloud scale event processing pipeline
Monal Daxini
 
beSharp a serverless approach to big data on aws
Claudio Pontili
 
Surge 2013: Maximizing Scalability, Resiliency, and Engineering Velocity in t...
Coburn Watson
 
Putting Kafka Together with the Best of Google Cloud Platform
confluent
 
Distributed Kafka Architecture Taboola Scale
Apache Kafka TLV
 

What's hot (18)

PDF
#lspe Q1 2013 dynamically scaling netflix in the cloud
Coburn Watson
 
PPTX
Netflix Data Pipeline With Kafka
Allen (Xiaozhong) Wang
 
PDF
From AWS to GCP, TABLEAPP Architecture Story
Yen-Wen Chen
 
PDF
The Road Most Traveled: A Kafka Story | Heikki Nousiainen, Aiven
HostedbyConfluent
 
PDF
Netflix keystone streaming data pipeline @scale in the cloud-dbtb-2016
Monal Daxini
 
PDF
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
HostedbyConfluent
 
PDF
[GS네오텍] Google Kubernetes Engine
GS Neotek
 
PPTX
goto; London: Keeping your Cloud Footprint in Check
Coburn Watson
 
PDF
Beaming flink to the cloud @ netflix ff 2016-monal-daxini
Monal Daxini
 
PDF
Kafka Summit NYC 2017 - Every Message Counts: Kafka as a Foundation for Highl...
confluent
 
PDF
Scalable and Reliable Logging at Pinterest
Krishna Gade
 
PDF
Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
Peter Bakas
 
PDF
uReplicator: Uber Engineering’s Scalable, Robust Kafka Replicator
Michael Hongliang Xu
 
PDF
GCPLA Meetup Workshop - Migration from a Legacy Infrastructure to the Cloud
Samuel Chow
 
PDF
Structure Data 2014: BIG DATA ANALYTICS RE-INVENTED, Ryan Waite
Gigaom
 
PDF
Going from three nines to four nines using Kafka | Tejas Chopra, Netflix
HostedbyConfluent
 
PDF
Stream Processing in Uber
C4Media
 
PDF
Tableapp architecture migration story for GCPUG.TW
Yen-Wen Chen
 
#lspe Q1 2013 dynamically scaling netflix in the cloud
Coburn Watson
 
Netflix Data Pipeline With Kafka
Allen (Xiaozhong) Wang
 
From AWS to GCP, TABLEAPP Architecture Story
Yen-Wen Chen
 
The Road Most Traveled: A Kafka Story | Heikki Nousiainen, Aiven
HostedbyConfluent
 
Netflix keystone streaming data pipeline @scale in the cloud-dbtb-2016
Monal Daxini
 
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
HostedbyConfluent
 
[GS네오텍] Google Kubernetes Engine
GS Neotek
 
goto; London: Keeping your Cloud Footprint in Check
Coburn Watson
 
Beaming flink to the cloud @ netflix ff 2016-monal-daxini
Monal Daxini
 
Kafka Summit NYC 2017 - Every Message Counts: Kafka as a Foundation for Highl...
confluent
 
Scalable and Reliable Logging at Pinterest
Krishna Gade
 
Netflix Keystone - How Netflix Handles Data Streams up to 11M Events/Sec
Peter Bakas
 
uReplicator: Uber Engineering’s Scalable, Robust Kafka Replicator
Michael Hongliang Xu
 
GCPLA Meetup Workshop - Migration from a Legacy Infrastructure to the Cloud
Samuel Chow
 
Structure Data 2014: BIG DATA ANALYTICS RE-INVENTED, Ryan Waite
Gigaom
 
Going from three nines to four nines using Kafka | Tejas Chopra, Netflix
HostedbyConfluent
 
Stream Processing in Uber
C4Media
 
Tableapp architecture migration story for GCPUG.TW
Yen-Wen Chen
 
Ad

Similar to Database Migration to AWS at scale by Sameer (20)

PDF
Scaling MySQL in Amazon Web Services
Laine Campbell
 
PDF
Running MySQL in AWS
Laine Campbell
 
PDF
Lessons learned when managing MySQL in the Cloud
Igor Donchovski
 
PDF
2. migration, disaster recovery and business continuity in the cloud
Reham Maher El-Safarini
 
PDF
Databases in the hosted cloud
Colin Charles
 
PDF
Databases in the Hosted Cloud
Colin Charles
 
PDF
MySQL in the Hosted Cloud - Percona Live 2015
Colin Charles
 
PDF
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Kristana Kane
 
PDF
Percona Live 2014 - Scaling MySQL in AWS
Pythian
 
PPTX
Running SQL Server on AWS | John McCormack | DataGrillen 2019
John McCormack
 
PDF
Amazon Web Services - Relational Database Service Meetup
cyrilkhairallah
 
PDF
MySQL in the Cloud
Colin Charles
 
PDF
MySQL in the Hosted Cloud
Colin Charles
 
PDF
2017 AWS DB Day | Amazon Database Migration Service (DMS) 소개 및 실습
Amazon Web Services Korea
 
PDF
Application and database migration workshop
Reham Maher El-Safarini
 
PDF
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
Amazon Web Services Korea
 
PDF
[db tech showcase Tokyo 2017] C24:Taking off to the clouds. How to use DMS in...
Insight Technology, Inc.
 
PDF
Connect to RDS MySQL 101: Your Easy Guide on How to Banish Glitches | The Ent...
Enterprise world
 
PDF
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Amazon Web Services Korea
 
PPTX
Oracle Solutions on AWS : May 2014
Tom Laszewski
 
Scaling MySQL in Amazon Web Services
Laine Campbell
 
Running MySQL in AWS
Laine Campbell
 
Lessons learned when managing MySQL in the Cloud
Igor Donchovski
 
2. migration, disaster recovery and business continuity in the cloud
Reham Maher El-Safarini
 
Databases in the hosted cloud
Colin Charles
 
Databases in the Hosted Cloud
Colin Charles
 
MySQL in the Hosted Cloud - Percona Live 2015
Colin Charles
 
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Kristana Kane
 
Percona Live 2014 - Scaling MySQL in AWS
Pythian
 
Running SQL Server on AWS | John McCormack | DataGrillen 2019
John McCormack
 
Amazon Web Services - Relational Database Service Meetup
cyrilkhairallah
 
MySQL in the Cloud
Colin Charles
 
MySQL in the Hosted Cloud
Colin Charles
 
2017 AWS DB Day | Amazon Database Migration Service (DMS) 소개 및 실습
Amazon Web Services Korea
 
Application and database migration workshop
Reham Maher El-Safarini
 
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
Amazon Web Services Korea
 
[db tech showcase Tokyo 2017] C24:Taking off to the clouds. How to use DMS in...
Insight Technology, Inc.
 
Connect to RDS MySQL 101: Your Easy Guide on How to Banish Glitches | The Ent...
Enterprise world
 
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
Amazon Web Services Korea
 
Oracle Solutions on AWS : May 2014
Tom Laszewski
 
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 

Database Migration to AWS at scale by Sameer

  • 1. MySQL Migration To AWS As delivered in tech meetup #01 organized by www.edYoda.com on 22nd April 2018 at zekeLabs Bangalore
  • 2. About me: Sameer Kumar DevOps Engineer @ Intuit 10+ years Ex- Siemens, Ex- Paytm, Ex - Snapdeal
  • 4. Why Migrate Databases to Cloud ? Business Growth
  • 5. Why Migrate Databases to Cloud ? Business Growth Vertical Scaling
  • 6. Why Migrate Databases to Cloud ? Business Growth Horizontal ScalingVertical Scaling
  • 7. Availability Zone 3 POD-1 POD-2 POD-N Proxy Layer (Routing) Availability Zone 1 Proxy Layer (Routing) POD-1 POD-2 POD-N Availability Zone 2 Proxy Layer (Routing) POD-1 POD-2 POD-N Architecture – Scalability & Availability
  • 8. Some statistics ~700K Login per day, ~1MM users login per day during Peak seasons. 103TB of financial data hosted in 118 MySQL physical servers. Size varies from 600 GB to 2 TB Nearly Zero Down Time
  • 10. Different Approaches Different Time 2015 Logical Backup Restore mysqldump
  • 11. Different Approaches Different Time 2016 DMS 2015 Logical Backup Restore mysqldump
  • 12. Different Approaches Different Time 2017 Percona Backup 2016 DMS 2015 Logical Backup Restore mysqldump
  • 13. Logical Backup Restore • mysqldump • rsync • tar On-Premise Slave EC2 with EBS RDS • MySQL Client • tar
  • 14. Logical Backup Restore • mysqldump • rsync • tar On-Premise Slave EC2 with EBS RDS • MySQL Client • tar • Dump : 18 Hours for 2 TB • Sync to AWS: 180G Per Hour • Restoration: 24~30 Hours • Replication Catchup : 2 Days
  • 15. Logical Backup Restore • mysqldump • rsync • tar On-Premise Slave EC2 with EBS RDS • MySQL Client • tar • Dump : 18 Hours for 2 TB • Sync to AWS: 180G Per Hour • Restoration: 24~30 Hours • Replication Catchup : 2 Days • max_allowed_packet • No MyISAM • Ignore MySQL schema • Don’t change user permission during migration
  • 16. Percona XtraBackup • Percona Xtrabackup • AWS CLI • tar On-Premise Slave AWS S3 RDS
  • 17. Percona XtraBackup • Percona Xtrabackup • AWS CLI • tar On-Premise Slave AWS S3 RDS • Only MySQL 5.6 • 6 TB Limit • Functions, Stored Procedures are not imported automatically • Can’t use Partial Backup
  • 18. Percona XtraBackup • Percona Xtrabackup • AWS CLI • tar On-Premise Slave AWS S3 RDS • Only MySQL 5.6 • 6 TB Limit • Functions, Stored Procedures are not imported automatically • Can’t use Partial Backup • S3 Copy: 180G Per Hour • Restoration: 8 Hours for 2 TB • Replication Catchup : 2 Days
  • 19. Blue/Green Deployment with DNS switch DB-1 DB-2 DB-N Availability Zone 1 Proxy Layer (Routing & Pod-picking) App-1 App-2 App-N Availability Zone 3 Proxy Layer (Routing & Pod-picking) App-1 App-2 App-N Availability Zone 2 Proxy Layer (Routing & Pod-picking) App-1 App-2 App-N Route 53 Persistence Layer - RDS Jenkins Web and Application Layer Availability Zone 1 Proxy Layer (Routing & Pod-picking) App-1 App-1 App-1 Availability Zone 3 Proxy Layer (Routing & Pod-picking) App-1 App-2 App-N Availability Zone 2 Proxy Layer (Routing & Pod-picking) App-1 App-2 App-N Web and Application Layer 1. Deploy 2. Validate 3. Switch DNS Entry
  • 21. Reference links • DMS Limitations • Migration to RDS using Percona • RDS as Slave of External MySQL