LakeOps
LakeOps maintains the Iceberg tables in your Glue and Nessie catalogs. Small files accumulate as data lands, and every commit leaves a snapshot behind; compaction rewrites the small files into fewer large ones, expiry removes snapshots that are past their retention. Both run on a schedule, and both can be run by hand for one table.
Every table under /lakeops shows its current shape — rows, size, data files,
small files, average file size, snapshots and the oldest snapshot — so a table
that needs attention is visible without opening it.
Automatic maintenance
A table's first policy is created the first time the scheduler sees it. From then on it gets:
- Compaction once a day, in a staggered 02:00–05:00 UTC window, so a catalog's tables do not all start at once.
- Snapshot expiry 90 minutes after its compaction, where the catalog supports it.
Glue catalogs get both. Nessie catalogs get compaction only, because Nessie manages snapshot history itself.
The defaults are a 512 MiB target file size and seven-day snapshot retention. Both are editable per table, and the whole schedule can be paused for one table.
When a run is skipped
Compaction is skipped only when the cached snapshot id equals the one the last successful compaction produced and the cache was refreshed after that run finished. Anything uncertain runs — a no-op compaction is cheap, and a silently skipped one is not.
Expiry keeps the guard that a compaction's row counts must verify before any snapshot is deleted: a failed verification blocks expiry for that table rather than removing data a bad rewrite left behind.
The scheduler posts a sweep every minute. A table that is still busy stays due for the next tick, a failed start moves that table's next attempt forward a day, and one table's failure cannot stop the rest of the sweep.
Table panel
Opening a table shows its history and its policy.
Automatic maintenance — on by default. Editable here:
| Setting | Default | Meaning |
|---|---|---|
| Target file size | 512 MiB | Files smaller than this are rewritten together |
| Keep snapshots (days) | 7 | Expiry deletes snapshots older than this |
| Paused | off | Stop the schedule for this table without deleting its policy |
Manual runs — Run compaction… and Expire snapshots… take their own arguments for one run: target size, older-than days, keep at least this many snapshots, and the orphan cutoff in hours. Iceberg refuses an orphan interval under 24 hours, so the UI's minimum is 24. Orphan removal is the only operation that physically deletes files; expiry itself only removes snapshots.
How work is sized
Compaction is sized from the table's cached statistics, and only downwards from the configured task:
| Table size | ECS | Kubernetes |
|---|---|---|
| under 2 GiB | 1 vCPU / 4 GiB | 0.25–0.5 CPU / 1–2 GiB |
| under 20 GiB | 2 vCPU / 8 GiB | 0.5–1 CPU / 2–4 GiB |
| 20 GiB and above | configured task | configured limits |
A 512 MiB table therefore does not pay for the same task as a 220 GiB one. Expiry is metadata plus object listing, so it is kept at a fixed small shape (1 vCPU / 4 GiB) and joins capacity that is already warm rather than starting an instance for itself.
On an unlimited plan, a maintenance run that fits the company's dedicated instance is included rather than billed; see Billing & credits.
BYOC installs
On a self-hosted or BYOC install, LakeOps runs under a dedicated identity that can write only to the warehouse bucket, and a compaction is protected from node consolidation while it runs. The install guide's upgrade section has the service-account and Workload Identity steps.
Related
- Loading data — how tables are written in the first place.
- Catalogs — registering Glue or Nessie.
- Pipelines — scheduled dbt work, which is separate from table maintenance.