Bottlenecks and trade-offs
Which measurements distinguish domain waiting time from technical bottlenecks in analysis runs?
With the sequence defined, examine potential bottlenecks. Measure queue time before job start separately from runtime within the job. More workers help queued jobs; large inputs may need different partitioning. These initial measures require testing; their improvement has not been measured.
Starting point Publish the final reference after hash verification.
Assumptions for the example case
An original fictional design for a deterministic tabular analysis run with frozen input, recipe and environment. A compute job has a runtime budget of 600 seconds; at the limit it stops accepting new computation steps and is marked timed out. All figures and test targets are illustrative assumptions.
Trace symptoms to their causes
Branched diagnostic tree
Measurement separates competing causes before a role acts.
Measure before making changes
| Symptom | Validation | Targeted action |
|---|---|---|
| Measure queue time separately from runtime within the job | Check source freshness, the business reason for waiting and processing time separately. | Address the evidenced cause first, then retest the same case. |
| 20 start requests for the same immutable run manifest | Measure the duration of the atomic decision and concurrent access. | Move lengthy work outside the commit; preserve the business invariant in the concurrency test. |
| Stale display despite stored evidence | Compare the authoritative version with the projection version. | Rebuild the projection; continue deciding state changes from the authoritative state. |
Measure queue time separately from runtime within the job
- Validation
- Check source freshness, the business reason for waiting and processing time separately.
- Targeted action
- Address the evidenced cause first, then retest the same case.
20 start requests for the same immutable run manifest
- Validation
- Measure the duration of the atomic decision and concurrent access.
- Targeted action
- Move lengthy work outside the commit; preserve the business invariant in the concurrency test.
Stale display despite stored evidence
- Validation
- Compare the authoritative version with the projection version.
- Targeted action
- Rebuild the projection; continue deciding state changes from the authoritative state.
Waiting time and compute time call for different measures
Waiting time and compute time call for different measures.
Measure queue time before job start separately from runtime within the job. More workers help queued jobs; large inputs may need different partitioning.
Measure queue time before job start separately from runtime within the job. More workers help queued jobs; large inputs may need different partitioning. The exercise specifies input and expected outcome.
- Alternative considered
- Adding compute capacity indiscriminately does not resolve missing business evidence.
- Trade-off
- Multiple measurement points and separate causes increase the diagnostic effort.
- Reassess
- Use measurements after the targeted change to decide whether further scaling is needed.
Try it yourself
Name two different causes of delay in this case. Choose a measurement for each and justify the first action.
A hint for your attempt
Record the business reason for waiting, source age and technical compute time separately.
Compare with a possible solution
- Case-related diagnosis
- Measure queue time before job start separately from runtime within the job. More workers help queued jobs; large inputs may need different partitioning. First separate these causes using their own timestamps and states.
- Hotspot
- For 20 start requests on the same immutable run manifest, measure concurrent access and commit duration. Move lengthy external work out of the transaction, then repeat the same contention test.
Apply to your project
Which similar display could have two different causes in your project?