~/talk

Survivor: MySQL Island – Outwit, Outplay, Outlast Metadata...

Talkat SREcon24 Europe/Middle East/Africa · 2024-10-29..10-31· [databases]
links:none on file
slides:none on file

Migration from MySQL 5.7 to 8.0 exposes a change: creating a child table with a foreign key requests an exclusive MDL on the parent that can block otherwise-compatible reads, and on RDS this shows as a Performance Insights MDL weight event and produced a ~1 minute outage at Capsule. Reproduceable behavior is captured by a GitHub test script that runs concurrent sessions and inspects metadata_locks; mitigation options shown include monitoring active threads, reviewing FK use, online schema tools, and adjusting the session max_lock_weight timeout.

AI-written summary · about

  1. 0:00Metadata locks in MySQL
  2. 3:06Data vs metadata locks
  3. 6:23Metadata lock scenario one
  4. 11:17Scenario two with foreign key constraints
  5. 14:30Real-world impact on application performance
  6. 17:21MySQL 5.7 vs 8.0 differences
  7. 18:25Preventing metadata lock issues
  8. 20:35Q&A
~/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.