/lab notes

The cost-driver map, blank

The first thing a two-week diagnostic produces is a cost-driver map: where your platform’s money actually goes, across three places. This is that map, published blank. Same structure, nothing filled in. Use it against your own bill.

1. Storage layout

What to pull. The table inventory with sizes and file counts. Partition layouts and compaction history. Retention settings per dataset. The list of derived tables and who reads them.

The questions. Which tables grew most in the last year, and why? What is the typical file size per table? What is retained that nothing queries? Which datasets exist only because deleting them was never scheduled?

Where money hides. Small files in their thousands. Hot retention on cold data. Derived tables that outlived the analysis they were built for.

2. Compute right-sizing

What to pull. Cluster or warehouse sizing history against actual load. Queue times. Job durations, and the schedule of the largest jobs. The auto-scaling floor.

The questions. Is capacity sized to today’s load, or to a peak that passed two years ago? What runs at night that could run at noon, or not at all? Which jobs are retried most, and have they ever been fixed?

Where money hides. Peak-sized clusters earning their keep for one hour a day. Idle scaling floors. Jobs re-run instead of repaired.

3. Pipeline behaviour

What to pull. The job inventory with run frequency. Duration distributions. The backfill log. What the pipelines do with late-arriving data.

The questions. Which pipelines run most often per unit of value they produce? What does a full backfill cost, in re-run and in delay? When data arrives late, what happens — recompute, patch, or quiet drop?

Where money hides. High-frequency jobs whose consumers check in daily. Backfills that reprocess everything because nobody knows what changed. Retries masking broken contracts between pipelines.


The map is not the fix. It is what lets a platform be argued about with evidence instead of anecdotes. Filled against a real bill, it becomes a prioritised list of changes with the constraints each one must respect.

If you want it filled against yours, that is the diagnostic: two weeks, fixed scope, fixed price.

— SambacLab

More lab notes