~/talk

Hot reloading Python web-servers at scale

Talkat PyCon AU 2017 · 2017-08-03..08-08· [web-performance, devops-and-delivery]
links:none on file
slides:none on file

Instagram implements uWSGI master-fork to spawn a new master that execs updated code and then handsover workers using cheaper mode and controlled FIFO commands, adding batching and retry logic to avoid dropped requests and handle thunderlock blocking. Fixes include multi-minus FIFO handling, re-exec to refresh LD_LIBRARY_PATH, and fallbacks when many masters exist. Result: no capacity loss during pushes, much faster rollouts compared to 15–20s restarts, and about 70 deployments/day with peaks of 120.

AI-written summary · about

  1. 0:00Intro
  2. 1:36Continuous Deployment
  3. 3:37Problems with Continuous Deployment
  4. 6:13Can we do better
  5. 14:26Master
  6. 17:45Cheap mode
  7. 18:45Slow deployment
  8. 19:43Patching
  9. 23:42Reliability
  10. 25:44Environment variable
  11. 26:59End result
~/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.