Estimate queue recovery and choose a safe scaling action.
Instruction: Calculate the drain time and explain which constraint must be verified before adding workers.
Context:
A fictional queue contains 18,000 jobs. New jobs arrive at a steady 120 per second. Workers complete 150 jobs per second in total. Each job performs a database write. The oldest job is already eight minutes old. Assume no retries, equal job cost and stable rates for the calculation; the database has not yet been load-tested above the current completion rate.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
The net drain rate is 150 minus 120, or 30 jobs per second. Clearing 18,000 jobs takes 600 seconds, or ten minutes, if the assumptions hold...
Related Questions
-
easy
-
easy
-
easy
-
easy
-
easy
-
easy