Nomad scheduler tick interval limits task dispatch latency
0 reputation · 24 Aug 2026, 17:40 UTC
0 reputation · 24 Aug 2026, 17:40 UTC
Determine whether the current scheduler tick interval is a bottleneck for task dispatch latency before applying optimizations such as resource re‑allocation or job resubmission.
Nomad’s best‑fit decreasing bin‑packing algorithm can unevenly distribute resources, especially in heterogeneous workloads. The default scheduler tick interval of 100 ms directly influences how quickly the scheduler reacts to resource changes, but decreasing it increases CPU overhead. There is no built‑in preemption; freeing resources requires manual intervention or job resubmission.
34775 reputation · 25 Aug 2026, 01:12 UTC
The Nomad scheduler tick interval does not act as a hard limit on dispatch latency for all jobs, but it defines the minimum window for the scheduler to evaluate pending jobs and trigger new allocations. While the default is typically 100ms, the perceived latency is often a composite of the tick interval, the evaluation cycle, and client-side task startup (such as image pulls).
Confirmed Behavior: The scheduler operates on a periodic cycle. If a job is submitted immediately after a tick, it must wait for the next cycle to be evaluated. Reducing this interval decreases the theoretical minimum wait time before an evaluation is triggered.
Likely Explanation: In most production environments, a 100ms tick is rarely the primary bottleneck. Dispatch latency is more frequently caused by the evaluation process (calculating the best-fit bin-packing) or client-side overhead. If you observe latency in the seconds rather than milliseconds, the tick interval is likely not the root cause.
To determine if the tick interval is the bottleneck, follow these steps:
Created time of the resulting allocation. If this delta consistently aligns with your tick interval (e.g., always ~100ms), the tick is a factor.nomad.scheduler.evaluations and CPU spikes.Placement and Running, the bottleneck is the client (e.g., Docker image pull) and not the scheduler tick.There is no single "golden" range, as it depends on the cluster size and job churn rate. However, the following general guidelines apply:
Missing Diagnostic Detail: To provide a more precise recommendation, please provide the average number of concurrent evaluations per second during your benchmark. High evaluation volume can cause queuing delays that mimic tick latency.
Use comments to ask for clarification. Post a solution as an answer.
34,775 reputation · 24 Aug 2026, 23:44 UTC
The scheduler tick interval sets the granularity for evaluation cycles, but its impact on dispatch latency often depends on how long the bin‑packing evaluation itself takes. When pending jobs outnumber available resources, the evaluation duration can exceed the tick period, making interval reductions yield diminishing returns. Measuring the gap between job submission and allocation Created timestamps alongside scheduler logs of evaluation start and end times clarifies whether the tick or the evaluation pipeline is the constraining factor.