~/talk

Zero Downtime Database Migrations and Deployments

Talkat phpDay 2018 · 2018-05-11..05-12· [php]
slides:none on file

Battle-tested, actionable procedures for running schema changes without outages: backwards-compatible migrations done in small steps, batch data fills, and zero-downtime rollouts; concrete ops fixes like PHP-FPM pool warmup and symlinked atomic releases to avoid inconsistent loads; examples from a site with 300,000 daily visitors doing 10–30 deployments per day; migration scripts and reindexing workflows are shown and proven to work in production, not theoretical best practices.

AI-written summary · about

  1. 0:00Introduction
  2. 1:18Why should I care
  3. 1:42Get quick feedback
  4. 2:15Write it from scratch
  5. 6:07Ideal Workflow
  6. 6:56Downtime Cost
  7. 7:44Downtime Risk
  8. 8:24Real Story
  9. 9:30Dark Side of the Moon
  10. 9:51Database Migration
  11. 10:41Migration and Deployment
  12. 11:47Migration rollbacks
  13. 13:18Optional Column
  14. 14:23Table
  15. 14:57Migration
  16. 16:09Paradox
  17. 17:30Remove column
  18. 17:48Make column optional
  19. 18:24Removing column
  20. 18:40Rename column
  21. 19:12Change column type
  22. 20:04Create table
  23. 21:40Create separate table
  24. 22:20Stick search
  25. 23:11Upgrade
  26. 25:29New Data
  27. 26:22Automation
  28. 27:09Directory Structure
  29. 28:02Automatic Deployment
  30. 28:53Automatic Deployment Problem 1
  31. 33:06Caching
  32. 34:22Running a cron
  33. 35:31Logging errors
  34. 36:16Conclusion
~/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.