Beyond Filters: Practical Envoy Dynamic Module Use Cases
summary
Databricks shows two concrete Envoy dynamic modules written in Rust that actually run today: a stat‑sync Rust module that offloads Prometheus formatting and histogram aggregation onto a Tokio pool, taking proxies with ~5,000 clusters and ~874,000 exported stats from multi‑second main‑thread stalls to near‑zero main‑thread stalls; and a unified logger on Tokio that captures minimal request context on workers, runs sampling and transform logic off‑path, emits to Prometheus/M3/Kafka and produces per‑minute SLO metrics, using a fixed‑size Tokio thread pool shared across modules.
AI-written summary · about
chapters (11)
- 0:00Introduction to dynamic modules
- 1:23Dynamic module extension points
- 2:05Envoy threading background
- 3:29Stats scraping problem
- 8:29Stat sync dynamic module
- 10:36Custom access logger
- 15:53Logger framework design
- 16:56Metrics from access logs
- 17:39SLO classification with logs
- 18:48Key takeaways and future
- 20:59Q&A session
