Measure queue growth during PDF processing peaks
7 March 2026
Count arrivals, terminal outcomes and outstanding work on the same clock. Then split outstanding work into waiting and running. A queue can grow during a short burst even when all the work eventually finishes.
Reconcile a ten-minute burst
Suppose the system starts with no waiting or running jobs. It admits 100 distinct jobs in ten minutes and records 70 terminal outcomes by the cutoff. With no other exits or carried-in work, 30 jobs remain outstanding. The average intake was ten jobs per minute and the terminal completion rate during that window was seven per minute.
| Evidence at the cutoff | What it establishes |
|---|---|
| 100 admitted, 70 terminal | 30 jobs need a remaining state. |
| Four distinct job IDs observed running | If the only other nonterminal state is waiting, 26 are waiting. |
| Four configured workers, no job-state observation | The running count is unknown. Four workers do not prove four active jobs. |
| Rejections, retries or cancellations | Reconcile them explicitly. An attempt is not necessarily a new job, and a terminal failure still exits the queue. |
Use a consistent job cohort. If the system was not empty at the start, keep carried-in jobs separate or include the opening balance. Otherwise apparent growth can come from mixing work from different windows.
Measure the drain as well as the peak
Stop new submissions at the agreed cutoff. Record when waiting reaches zero and when the last running job reaches a terminal outcome. Those are different moments. Compare the delays with the business task's acceptable wait, and retain errors and output checks alongside timing.
One burst does not establish the service's sustained capacity. Test representative file mixes, repeat the run and inspect queue delay, resource saturation and failures before changing concurrency or admission limits. Google's monitoring guidance distinguishes traffic, latency, errors and saturation. Examine each alongside queue depth. Google SRE guidance on monitoring distributed systems
Part of the Read a PDF load-test result without overstating capacity guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
