Health and cost
The scanner grades a table from stored metadata. It does not scan data files on the request path, and object storage is not an input.
On this page
Grades#
Every table starts at 100 points and loses points for each problem the scan finds. The grade is the letter for the final score. The home chart counts tables per grade. It is not a size-weighted median. UI words map to letters: A Excellent, B Good, C Fair, D Poor, F Critical.
| Grade | Score |
|---|---|
| A | 90 or more |
| B | 75 to 89 |
| C | 60 to 74 |
| D | 40 to 59 |
| F | Below 40 |
The home screen rolls those grades up across the lake, so you can see at a glance how many tables need work and how much storage maintenance could give back. It shows whether the count of D and F tables moved since yesterday, which D and F tables people query most, and which tables Cryo moved up a grade in the last 24 hours. A table only counts as fixed once a scan after its maintenance job shows the better grade. The quickstart shows that screen after the first scan of the seeded lake.
Storage impact on home#
The Storage impact card at the top of home answers one question: is Cryo making the lake smaller? Every figure carries a Measured or Estimate label.
- Last 24 hours. Bytes freed by successful cleanup actions, the number of tables cleaned and a monthly saving at list price. "Measured on 75% of actions" means three in four actions reported a byte count. The rest still ran, they just were not counted. When more than half of the bytes were priced from scan data rather than counted, the figure reads "Cryo freed about …" and carries an Estimate label. Below it, a running total of bytes freed since the first daily report, counting measured days only.
- Where storage goes (estimate). One bar splits the lake into live data, snapshot history still inside retention, dead data that snapshot expiry frees, orphan files that orphan cleanup frees, and metadata. Dead and orphans are marked freeable. Orphans and retained history need an S3 listing of the table. The scanner keeps a table's last listing between full cost scans, so the card counts only listings from the last 7 days ("Listed within 7 days: 300 of 1,044 tables"). Tables with an older listing still count, but the card says how many there are, and the Orphans and Snapshot history rows carry an estimated or partly estimated tag. Hover the tag to see how many bytes come from those older listings. A compaction estimate sits under the bar.
- Units. Sizes use decimal units, the ones S3 bills in: 1 GB is 1,000,000,000 bytes and 1 TB is 1,000 GB. The Cost page uses the same units.
- Last 60 days. Total storage, live data and the running total freed by Cryo, one point per daily report. The gap between total and live is what maintenance can still remove. Days recorded before this card existed show the total only.
- Versioned buckets. When the scanner reports that a bucket has versioning on without a noncurrent-version expiration rule, a warning names the bucket. Deletes there leave billed old versions, so cleanup does not lower the bill until a lifecycle rule is added.
When there is nothing to show yet, the card says why and what fills it in, instead of showing zero.
Lake score and daily work on home#
- Lake score change. The chip next to the lake score compares today with the newest trend point at least 7 days older. Until the trend has such a point, the chip says the weekly change comes after 7 days of history. When the trend has gaps, it names the real span, for example "in 10 days".
- Clean streak. The day-by-day calendar counts consecutive working nights in which under 1% of jobs failed, so a large fleet with a few failures a night keeps its streak. Days with nothing to do don't break it. The calendar still marks every day that had a failed job.
- Week over week. The change in measured bytes freed against the week before is shown only when both weeks measured a similar share of actions (within 25% of each other). When the share changed, for example after Cryo started measuring a new kind of action, the card shows both shares instead of a percentage that would reflect the measurement change rather than the work.
Deductions#
There are two deduction sizes and no others: a warning costs 8 points and a critical finding costs 20. Two warnings and one critical is 100 − 8 − 8 − 20 = 64, grade C. The seeded demo run is the same lake, not a production fleet.
| Step | Points | Running score |
|---|---|---|
| Start | 100 | |
| Small-file fragmentation (warning) | −8 | 92 |
| Manifest files bloat (warning) | −8 | 84 |
| Position delete file buildup (critical) | −20 | 64 |
| Final score and grade | C 64 |
Fragmented partitions#
This check counts files a partition holds beyond what its data needs, not the raw file count. A partition needs one file per 75% of the target file size (write.target-file-size-bytes, or 256 MB when unset), because Iceberg compaction leaves files above that size alone. A 150 GB unpartitioned table in 448 files of 345 MB needs about 600 files, so it has no excess and loses no points. A partition of 448 files of 2 MB needs 5, so it has 443 extra files and loses 20. The warning and critical limits are 50 and 200 extra files per partition, scaled up for tables over 100 GB. When the table has no compaction candidates, the Overview shows no Compact files button for this check.
On the Tables page, every row carries its grade, its score change over 7 days and the evidence behind it: small files out of total files, size and reads. The Health triage view lists grade D and F tables first.
Open a table to see its score and how it got there. This one scores 28: it has lost 72 points to two critical findings and four warnings.
Archived tables#
A table with no commit in 30 days loses 20 points for Stale table commits. That is right for a table that should be written to, and wrong for a backup, a snapshot copy or a retired table that is read-only on purpose. Mark those tables archived.
- Where: the table's Config tab (Lifecycle, admin only), or Mark as archived in Path to A. You type the table name and give a reason, and the change is audited. Return to active undoes it.
- Health: the stale-commit check stops applying to the table. Every other check still counts, at the same weight, and the stored grade updates at once.
- Maintenance: plans stop compaction, delete rewrites, data expiry, partition-spec migration and statistics, and Path to A stops proposing sort, layout and property changes. Snapshot expiry, orphan cleanup and manifest rewrites keep running, and cost reporting is unchanged.
- Finding them: archived tables carry an Archived badge on the Tables list and the table header. Filter by Lifecycle in the list's advanced filters.
- Suggestions: an active table with no commit for 90 days or more, and no recorded reads in 30 days, is shown as an archive candidate. Cryo never archives a table on its own.
Changing the limits#
Each warn and critical limit is a policy choice. A lake whose snapshot policy keeps 300 snapshots, or whose streaming tables carry 30% delete files between compactions, would otherwise lose points that no maintenance can win back.
- Fleet: set
CRYO_HEALTH_THRESHOLD_OVERRIDESto a JSON map keyed by the limit names, for example{"snapshot_count_warn": 300, "snapshot_count_crit": 1000}. An unknown name, a value that is not a positive number, or a warn limit at or above its critical limit fails startup. - One table:
PUT /api/v1/tables/{id}/health-thresholdswithoverridesand areason(admin only). A table's limit wins over the fleet's, the stored grade updates at once, and the change is audited with the old and new values. An empty map returns the table to the defaults.GETon the same path lists every limit in force that differs from the default, and where it came from. - What it changes: the grade only. An override replaces the base limit before size scaling and the file-count and snapshot-rate adjustments. The weights (−8 / −20) and grade bands stay as they are, and compaction gating (
min_small_files, chunking) never reads these limits.
Projection: from scan to stored cost#
The cost estimator turns the scanner's stored statistics into a projected byte count for each operation and stores it. Nothing is read from object storage to produce it. Orphan-file precision is an opt-in scanner tier. Without it, the number is flagged as last-known.
- Write or execute
Text description
- Step 1: Scanner to Cost estimator (stats)
- Step 2: Cost estimator to Stored projection (store)
- Object storage is not read by Cost estimator
What each operation projects#
| Operation | Projected effect |
|---|---|
expire_snapshots | Bytes referenced only by snapshots the retention policy would drop, and only when no surviving snapshot still references the file. |
remove_orphan_files | Bytes present in storage but referenced by no snapshot. Precise only on the scanner's opt-in listing tier. |
optimize | Delete-file bytes merged away. Data bytes are rewritten, so the storage change shows up in the later expiry projection. |
optimize_manifests | Manifest and metadata bytes reclaimed by consolidation. Small in volume, large in plan-time latency. |