~/talk

RocksDB Performance and Reliability Practics

Talkat Percona Live 2022 · 2022-05-16..05-18· [databases]
links:none on file
slides:none on file

Meta/Facebook runs MyRocks on RocksDB and reports about 60% space savings after migrating large user data, citing LSM space amplification ≈ 1.11 vs InnoDB ≈1.5. Read latency often degrades, so production fixes include JEMalloc and direct I/O, tuning data/index/filter block sizes and level-compression mixes, using prefix bloom filters, bulk-loading into level-max files, and deletion-triggered compactions to mitigate tombstone blowup. Monitoring compaction bytes, L0 stalls and tombstone scan rates and making online column-family config changes prove critical for reliability.

AI-written summary · about

  1. 0:00Intro
  2. 1:51What is RocksDB
  3. 8:03Leveled Compaction
  4. 9:40RocksDB Features
  5. 21:17RocksDB Performance Practices
  6. 22:52RocksDB file format - data, index and filter
  7. 24:51Index and Filter size reduction
  8. 25:38Direct 1/0
  9. 26:23Hybrid Compression
  10. 27:11Avoid Compaction if possible
  11. 28:18Bloom Filter
  12. 29:28Understand what happens with Delete
  13. 31:24Scanning too many tombstones degrades read perf
  14. 33:01Slowdown because of too many point lookups
  15. 34:32RocksDB Reliability Practices
  16. 34:55Preventing Write Stall
  17. 36:28MemTable/Lo Stalls
  18. 37:20Metrics to watch
  19. 37:56Most configurations are Dynamic
  20. 40:191/0 Error Handling in My Rocks
  21. 42:20Unique Key Constraints
  22. 43:17Data consistency
  23. 44:48Recovery on Database Crash
  24. 46:33Dealing with Snapshot Conflicts
  25. 48:19InnoDB to MyRocks/RocksDB migration steps
  26. 49:43Summary
~/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.