SlideShare a Scribd company logo
Backup Automation
SUNG DONGCHAN From KAKAO
Backup is for..
2. Replication
1. Recovery
3. etc...
Backup Method?
2. xtrabackup
1. mysqldump
3. snapshot
Backup Storage?
Local Disk
Easy, No scheduling
But.. Recovery?
Remote Storage
Network Traffic?
Rare affect on Recovery
NIC
Backup Start Time?
• Schedule with CRONTAB
• Start from manager server on DEFINED TIME

(BUT, Everyday it’s same time..)
Same time
No Problem
if it's on LOCAL BACKUP
Think about
REMOTE BACKUP
A lot of Servces
Multi-IDC
IDC1 IDC2
IDC3
Frequently
Master/Slave Switch
X
Schedule Manually?
We need..
Scheduling Automatically
TODAY!!
I’ll talk about remote backup scheduling
Backup Files?
• Big.. but Rarely Used
• Transaction Log exists 2~3 Days
THEN!!!!
MUST "Same Backup Server"
As Yesterday?
Question 1.
NO
Question 2.
MUST "Today's Backup File"?
NO
Question 3.
MUST “Backup on Same Time"?
NO
Think about..
Backup File is in Cloud
A B
C D E F
Today Yesterday
The day before yesterday
Everyday, Different
Let's start backup on
Unhurried Server
Consists of..
• Service Configuration
• Backup Servers
• Backup History
Service Configuration
Queue Time?
Backup job could be started
ANY TIME after QUEUE TIME
Backup Server
Quota?
0/3
3/3
1/3
Quota Full
I'm So Busy!!
Backup Server

Located on “Specific RACK”
But..
Database could be on..

“Different” IDC!!
need logical Concept..
Service Zone!!
Virtual Service Group
ex) Common Zone, Security Zone, ThirdParty Zone..
IDC1 IDC2 IDC3
Common Service Zone
Security Zone
ThirdParty Zone
Service Zone
Backup History
Today? Not Yesterday Server!!
BACKUP001.kr
Yesterday
NOT!!
BACKUP001.kr
so.. BACKUP001.kr
BACKUP002.kr
BACKUP003.kr
Service
Candidate Today's Backup Server
Backup Step
• Choose Service base on Queue Time
• Choose Target Backup Server 

(Service Zone + IDC Location + Quota)
• Start Backup
Choose Service (1/3)
SVC01 SVC02 SVC03 SVC0400:00
Smaller Queue Time, Backup First
01:59 02:00 02:00 03:00
Choose Service (2/3)
SVC01 SVC02 SVC03 SVC0400:00
Bigger Data File, Backup First
02:00 02:00 02:00 02:00
500G 300G 200G 100G
Choose Service (3/3)
SVC01 SVC02 SVC03 SVC0400:00
Different Switch, Backup First
02:00 02:00 02:00 02:00
100G 100G 100G 100G
SW01 SW02 SW03 SW01
Choose Backup Server (1/3)
Target Backup Server List?
• Same Service Zone
• Same IDC
Choose Backup Server (2/3)
Less than Quota
0/3
3/3
1/3
Quota Full
I'm So Busy!!
First
Candidate
Choose Backup Server (3/3)
Not Used Yesterday
Backuped
Yesterday
Candidate Today's Backup Server
So..
Backup Process is..
Start Backup
At Service after queue time
on Unhurried and Valid Backup Server
Backup ServerService Zone
Backup Service Architect
Databases
Zone1
Databases
Databases
Zone2
Databases
Manager
Schedule Automatically
Backup Servers Backup Servers
Backup Servers Backup Servers
IDC1 IDC2
Backup Timeline
Restore Sample
ssh root@BACKUP_SERVER 
'cat /data/backup/SERVICE_HOST/DATE.xbs' | xbstream -x
ssh root@backup001 
'cat /data/backup/svc01/20150427.xbs' | xbstream -x
Generated By Manager
With LZOP?
Recommand! If InnoDB :)
Compressed
After Queue Time
Same IDC
Same Service Zone
Unhurried Backup Server
Backup Scheduled..
Q/A
Thank you~!
< http://gywn.net >

More Related Content

What's hot (20)

PPT
Oracle12c Pluggable Database Hands On - TROUG 2014
Özgür Umut Vurgun
 
PDF
Tarantool как платформа для микросервисов / Антон Резников, Владимир Перепели...
Ontico
 
PDF
了解Oracle rac brain split resolution
maclean liu
 
PDF
Using Apache Spark and MySQL for Data Analysis
Sveta Smirnova
 
PDF
Как PostgreSQL работает с диском
PostgreSQL-Consulting
 
PDF
Add a bit of ACID to Cassandra. Cassandra Summit EU 2014
odnoklassniki.ru
 
PDF
C* Summit 2013: Cassandra at Instagram by Rick Branson
DataStax Academy
 
PDF
Percona Toolkit for Effective MySQL Administration
Mydbops
 
PPT
HandlerSocket plugin for MySQL (English)
akirahiguchi
 
PDF
Managing MariaDB Server operations with Percona Toolkit
Sveta Smirnova
 
PDF
MySQL Tokudb engine benchmark
Louis liu
 
PDF
WiredTiger In-Memory vs WiredTiger B-Tree
Sveta Smirnova
 
PDF
Cassandra at Instagram (August 2013)
Rick Branson
 
PDF
Cassandra勉強会
Shun Nakamura
 
PDF
Amazon aurora 1
EXEM
 
KEY
PostgreSQL
Reuven Lerner
 
PPTX
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
PDF
MySQLドライバの改良と軽量O/Rマッパーの紹介
kwatch
 
PDF
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
DataStax
 
PPTX
Postgres-BDR with Google Cloud Platform
SungJae Yun
 
Oracle12c Pluggable Database Hands On - TROUG 2014
Özgür Umut Vurgun
 
Tarantool как платформа для микросервисов / Антон Резников, Владимир Перепели...
Ontico
 
了解Oracle rac brain split resolution
maclean liu
 
Using Apache Spark and MySQL for Data Analysis
Sveta Smirnova
 
Как PostgreSQL работает с диском
PostgreSQL-Consulting
 
Add a bit of ACID to Cassandra. Cassandra Summit EU 2014
odnoklassniki.ru
 
C* Summit 2013: Cassandra at Instagram by Rick Branson
DataStax Academy
 
Percona Toolkit for Effective MySQL Administration
Mydbops
 
HandlerSocket plugin for MySQL (English)
akirahiguchi
 
Managing MariaDB Server operations with Percona Toolkit
Sveta Smirnova
 
MySQL Tokudb engine benchmark
Louis liu
 
WiredTiger In-Memory vs WiredTiger B-Tree
Sveta Smirnova
 
Cassandra at Instagram (August 2013)
Rick Branson
 
Cassandra勉強会
Shun Nakamura
 
Amazon aurora 1
EXEM
 
PostgreSQL
Reuven Lerner
 
Reduce Resource Consumption & Clone in Seconds your Oracle Virtual Environmen...
BertrandDrouvot
 
MySQLドライバの改良と軽量O/Rマッパーの紹介
kwatch
 
The Best and Worst of Cassandra-stress Tool (Christopher Batey, The Last Pick...
DataStax
 
Postgres-BDR with Google Cloud Platform
SungJae Yun
 

Similar to Backup automation in KAKAO (20)

PDF
Stabilizing Ceph
Ceph Community
 
PPTX
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Patrick McGarry
 
PPTX
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Ceph Community
 
PDF
Benchmarking, Load Testing, and Preventing Terrible Disasters
MongoDB
 
PPSX
Oracle Performance Tuning Fundamentals
Carlos Sierra
 
PDF
KoprowskiT - SQLBITS X - 2am a disaster just began
Tobias Koprowski
 
PPTX
Red Hat Storage Day Seattle: Stabilizing Petabyte Ceph Cluster in OpenStack C...
Red_Hat_Storage
 
PDF
Training Slides: 203 - Backup & Recovery
Continuent
 
PDF
Loadays MySQL
lefredbe
 
PPTX
Batch to near-realtime: inspired by a real production incident
Shivji Kumar Jha
 
PDF
DevOps throughout time
Hany Fahim
 
PPTX
From 1000/day to 1000/sec: The Evolution of Incapsula's BIG DATA System [Surg...
Imperva Incapsula
 
PDF
S3, Cassandra or Outer Space? Dumping Time Series Data using Spark - Demi Be...
Codemotion
 
PPTX
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
LarryZaman
 
PDF
Real world repairs
Vinay Kumar Chella
 
PDF
S3, Cassandra or Outer Space? Dumping Time Series Data using Spark - Demi Ben...
Codemotion Tel Aviv
 
PDF
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 1
Tanel Poder
 
PDF
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
AWSKRUG - AWS한국사용자모임
 
PDF
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
Tobias Koprowski
 
PPTX
Scylla Summit 2018: Make Scylla Fast Again! Find out how using Tools, Talent,...
ScyllaDB
 
Stabilizing Ceph
Ceph Community
 
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Patrick McGarry
 
Journey to Stability: Petabyte Ceph Cluster in OpenStack Cloud
Ceph Community
 
Benchmarking, Load Testing, and Preventing Terrible Disasters
MongoDB
 
Oracle Performance Tuning Fundamentals
Carlos Sierra
 
KoprowskiT - SQLBITS X - 2am a disaster just began
Tobias Koprowski
 
Red Hat Storage Day Seattle: Stabilizing Petabyte Ceph Cluster in OpenStack C...
Red_Hat_Storage
 
Training Slides: 203 - Backup & Recovery
Continuent
 
Loadays MySQL
lefredbe
 
Batch to near-realtime: inspired by a real production incident
Shivji Kumar Jha
 
DevOps throughout time
Hany Fahim
 
From 1000/day to 1000/sec: The Evolution of Incapsula's BIG DATA System [Surg...
Imperva Incapsula
 
S3, Cassandra or Outer Space? Dumping Time Series Data using Spark - Demi Be...
Codemotion
 
Business_Continuity_Planning_with_SQL_Server_HADR_options_TechEd_Bangalore_20...
LarryZaman
 
Real world repairs
Vinay Kumar Chella
 
S3, Cassandra or Outer Space? Dumping Time Series Data using Spark - Demi Ben...
Codemotion Tel Aviv
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 1
Tanel Poder
 
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
AWSKRUG - AWS한국사용자모임
 
KoprowskiT_SQLDay2016_2AMaDisasterJustBegan
Tobias Koprowski
 
Scylla Summit 2018: Make Scylla Fast Again! Find out how using Tools, Talent,...
ScyllaDB
 
Ad

More from I Goo Lee (20)

PDF
MySQL_Fabric_운영시유의사항
I Goo Lee
 
PDF
MySQL Deep dive with FusionIO
I Goo Lee
 
PDF
From MSSQL to MySQL
I Goo Lee
 
PDF
From MSSQL to MariaDB
I Goo Lee
 
PDF
AWS Aurora 100% 활용하기
I Goo Lee
 
PDF
텔레그램을 이용한 양방향 모니터링 시스템 구축
I Goo Lee
 
PDF
Federated Engine 실무적용사례
I Goo Lee
 
PDF
MySQL 상태 메시지 분석 및 활용
I Goo Lee
 
PDF
MySQL 5.7 NF – Optimizer Improvement
I Goo Lee
 
PDF
MySQL 5.7 NF – JSON Datatype 활용
I Goo Lee
 
PDF
Intro KaKao MRTE (MySQL Realtime Traffic Emulator)
I Goo Lee
 
PDF
MS 빅데이터 서비스 및 게임사 PoC 사례 소개
I Goo Lee
 
PDF
AWS 환경에서 MySQL Infra 설계하기-2본론
I Goo Lee
 
PDF
AWS 환경에서 MySQL Infra 설계하기-1도입부분
I Goo Lee
 
PDF
AWS 환경에서 MySQL BMT
I Goo Lee
 
PDF
MySQL Slow Query log Monitoring using Beats & ELK
I Goo Lee
 
PDF
PostgreSQL 이야기
I Goo Lee
 
PDF
Intro KaKao ADT (Almighty Data Transmitter)
I Goo Lee
 
PDF
Binlog Servers 구축사례
I Goo Lee
 
PDF
Intro ProxySQL
I Goo Lee
 
MySQL_Fabric_운영시유의사항
I Goo Lee
 
MySQL Deep dive with FusionIO
I Goo Lee
 
From MSSQL to MySQL
I Goo Lee
 
From MSSQL to MariaDB
I Goo Lee
 
AWS Aurora 100% 활용하기
I Goo Lee
 
텔레그램을 이용한 양방향 모니터링 시스템 구축
I Goo Lee
 
Federated Engine 실무적용사례
I Goo Lee
 
MySQL 상태 메시지 분석 및 활용
I Goo Lee
 
MySQL 5.7 NF – Optimizer Improvement
I Goo Lee
 
MySQL 5.7 NF – JSON Datatype 활용
I Goo Lee
 
Intro KaKao MRTE (MySQL Realtime Traffic Emulator)
I Goo Lee
 
MS 빅데이터 서비스 및 게임사 PoC 사례 소개
I Goo Lee
 
AWS 환경에서 MySQL Infra 설계하기-2본론
I Goo Lee
 
AWS 환경에서 MySQL Infra 설계하기-1도입부분
I Goo Lee
 
AWS 환경에서 MySQL BMT
I Goo Lee
 
MySQL Slow Query log Monitoring using Beats & ELK
I Goo Lee
 
PostgreSQL 이야기
I Goo Lee
 
Intro KaKao ADT (Almighty Data Transmitter)
I Goo Lee
 
Binlog Servers 구축사례
I Goo Lee
 
Intro ProxySQL
I Goo Lee
 
Ad

Recently uploaded (20)

PPTX
unit 2_2 copy right fdrgfdgfai and sm.pptx
nepmithibai2024
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PPTX
INTEGRATION OF ICT IN LEARNING AND INCORPORATIING TECHNOLOGY
kvshardwork1235
 
PDF
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
PPTX
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
PPTX
internet básico presentacion es una red global
70965857
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PDF
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PPT
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PPTX
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PDF
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PPTX
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
unit 2_2 copy right fdrgfdgfai and sm.pptx
nepmithibai2024
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
Orchestrating things in Angular application
Peter Abraham
 
INTEGRATION OF ICT IN LEARNING AND INCORPORATIING TECHNOLOGY
kvshardwork1235
 
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
internet básico presentacion es una red global
70965857
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 

Backup automation in KAKAO