Backend Batch Processing with Nomad
summary
Graymeta moves per-file batch work into containers scheduled by Nomad, replacing per-customer clusters (30+ clusters) with a single shared pool and cutting overprovisioned 1TB disks down to ~50GB nodes. A lightweight scheduler pulls from the existing queue and fires container jobs; workers use the API with narrowly scoped OAuth tokens to fetch one file each. Local dev runs a monolithic Docker image and the raw_exec driver to mirror production. They implement one job per file batching and throttle 100–200 pending jobs per customer and report it working in production.
AI-written summary · about
chapters (11)
- 0:00Introduction to batch processing
- 1:26Original architecture problems
- 3:18Security and operability challenges
- 5:48Why we chose Nomad
- 7:13Nomad’s immediate benefits
- 9:41Re-architecting for Nomad
- 11:31Solving multi-tenancy with Nomad
- 12:58Flexibility across runtimes
- 14:03Dev environment setup
- 16:35Summary of improvements
- 17:24Q&A session
