Design a Distributed Cron Scheduler for Volcano Engine Batch Jobs

Last updated: November 29, 2026

Quick Overview

Design a multi-tenant scheduler for Volcano Engine customers that runs millions of cron and one-off jobs on time, at least once, with retries, and without a single point of failure.

ByteDance
System Design
Software Engineer
ByteDance
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design a multi-tenant scheduler for Volcano Engine customers that runs millions of cron and one-off jobs on time, at least once, with retries, and without a single point of failure.

Volcano Engine is ByteDance's cloud platform, and job scheduling is a core building block for both internal data teams and customers. Interviewers check how you find due jobs efficiently, avoid double execution, and handle worker failures and thundering herds at the top of each minute.

What the Interviewer Expects
  • Separate job definitions, the trigger loop, and execution workers
  • Index due times so finding due jobs is cheap (time-bucketed tables or a timing wheel)
  • Partition triggering across scheduler nodes with leases
  • Dispatch through a queue with at-least-once delivery and idempotent jobs
  • Handle retries, timeouts, and misfire policies
Key Topics to Cover
job scheduling
leases
timing wheel
at-least-once
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Customers want exactly-once: what can you honestly promise?
  • How do you spread midnight-UTC spikes without breaking user expectations?
  • Support job dependencies (run B after A succeeds).
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: CRUD jobs with a cron expression or a one-time timestamp, a target (HTTP callback or container task), retry policy and timeout; view run history. Non-functional: fire within 1 second of sc...

High-Level Design

Job API writes definitions to a SQL store. Each job has next_fire_time. The time index is a table keyed by (bucket_minute, shard, job_id). Scheduler nodes own shards via leases in a coordination servi...


Submit Your Answer
Markdown supported