~/talk

InnoDB to MyRocks Migration in Main MySQL Database

Talkat SREcon17 Asia/Australia · 2017-05-22..05-24· [databases, devops-and-delivery]
links:none on file
slides:none on file

Facebook migrates massive, latency‑sensitive MySQL shards from InnoDB to MyRocks (RocksDB inside MySQL), and reports reduced DB size by half and ability to consolidate two instances per host. Migration uses a primary‑key sorted fast bulk loader that bypasses RocksDB write‑amplification, extensive data‑consistency checks (index counts, statistics, consistent snapshot comparisons) and a shadow traffic testing framework, plus careful compaction and crash‑recovery tuning; the engine runs in production at Facebook.

AI-written summary · about

  1. 0:00Intro
  2. 2:23"Main MySQL Database" at Facebook
  3. 6:25Write Amplification
  4. 8:37B+Tree Fragmentation
  5. 10:14Compression
  6. 13:39How LSM/RocksDB works
  7. 15:43What is MyRocks
  8. 20:05MyRocks goals (more details)
  9. 21:34MyRocks features
  10. 23:56Relationship between MySQL PE and SWE
  11. 27:16MyRocks migration - Technical Challenges (2)
  12. 28:46Creating first MyRocks instance without downtime
  13. 29:39Faster Data Loading
  14. 31:16Data migration steps
  15. 32:26Data Verification
  16. 32:44Verification tests
  17. 35:39Shadow traffic tests
  18. 36:40Creating second MyRocks instance without downtime
  19. 38:08Promoting MyRocks as a master
  20. 40:32Master crash safety settings
  21. 42:37Notable issues fixed during migration
  22. 43:38Preventing stalls
  23. 44:41When write stalls happen
  24. 45:46What happens on write stalls
  25. 46:36Mitigating Write Stalls Speed up compactions
  26. 48:04Monitoring
  27. 48:17SHOW ENGINE ROCKSDB STATUS
  28. 48:39SHOW GLOBAL STATUS
  29. 48:49Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.