Recap: Migrating 80 BILLION
RECORDS From MySQL to
Bigtable
Slide 6
Slide 6 text
Migrating 80 BILLION RECORDS From MySQL to Bigtable
https://www.gophercon.com/agenda/session/1158499
Slide 7
Slide 7 text
Bitlyについて
サービス概要
URL短縮ツール
QRコード生成
Analytics提供
サービス特徴
500,000 paying customers
5,700,000 MAU
256,000,000 links & QR created monthly
https://bitly.com/
Slide 8
Slide 8 text
MySQL→Bigtable移行のモチベーション
なぜMySQLではダメだったのか?
1. 運用面での問題
a. ソフトウェアおよびセキュリティアップデート
b. DBホストプロビジョニング
c. 100%利用可能な状態を維持しつつ実行すること
2. バックアップとリストアにかかるメンテコストが莫大だった
a. 最大まる2人日必要
3. マルチリージョンやグローバルな配信での課題
a. 手作業でのMySQLシャーディングには限界がある
MySQL→Bigtable移行のモチベーション
もっと詳しく知りたい方へ・・・
From MySQL to NoSQL: Bitly’s big move to Bigtable
Slide 11
Slide 11 text
MySQL→Bigtableマイグレーション計画
MySQL writes
MySQL reads
Bigtable writes
Bigtable reads
Start dual writes
マイグレーション
Bigtableに切り替え End dual writes
Slide 12
Slide 12 text
前提条件
Bitlyでのデータ管理(Before)
hash_0 to hash_7
hashdb-1
hash_8 to hash_15
hashdb-2
hash_16 to hash_23
hashdb-3
hash_24 to hash_31
hashdb-4
hash_32 to hash_39
hashdb-5
hash_40 to hash_47
hashdb-6
hash_0 to hash_23
hash-archive-1
hash_24 to hash_47
hash-archive-2
前提条件
Bitlyでのデータ管理(Before)
hash_0 to hash_7
hashdb-1
hash_8 to hash_15
hashdb-2
hash_16 to hash_23
hashdb-3
hash_24 to hash_31
hashdb-4
hash_32 to hash_39
hashdb-5
hash_40 to hash_47
hashdb-6
hash_0 to hash_23
hash-archive-1
hash_24 to hash_47
hash-archive-2