~/talk

Scaling the Ray Serve Controller to Thousands of Replicas

Talkat Ray Summit 2026 · 2026-08-24..08-26· [distributed-systems, python]
slides:none on file

Systematic scalability experiments push a single Serve controller to 2,048 replicas and break down where time goes: heavy cost comes from Pydantic serialization, Python time-series merging, and RPC-heavy metrics ingestion. Replacing validation with a Pydantic v2 migration, moving time-series aggregation to a Cython metrics aggregation path, switching RPC payloads to zlib L3 compression and throttling in-flight RPCs plus a sliding-window health-check reduces control-loop latency, yields ~7x faster loops, ~3.6x higher throughput, and ~15x fresher replica metrics.

AI-written summary · about

  1. 0:00Introduction to Ray Serve
  2. 1:29How Ray Serve Cluster Works
  3. 3:14Serve Controller Basics
  4. 7:12Performance Bottlenecks Identified
  5. 7:35Benchmarking Setup
  6. 9:42Optimizing Pydantic Usage
  7. 12:09Autoscaler Algorithm Improvements
  8. 13:52Metrics Injection Optimizations
  9. 18:10Health Check Mechanism Updates
  10. 21:19Performance Improvements Results
  11. 22:01Future Work and Q&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.