Quickstart
Start the local control plane, seed fragmented tables, and finish with graded tables and one completed maintenance run. Plan on about 15 minutes the first time, most of it image downloads.
On this page
Fast path: make demo#
One command takes an empty clone to graded tables and a finished maintenance run. It runs the same four steps as the walkthrough below, through the same API the UI uses.
git clone https://github.com/tech-pw/cryo.git
cd cryo
make demomake demo starts the stack with ./start-local.sh start (Grafana and Prometheus are skipped unless you set START_OBSERVABILITY=1), recreates the fragmented tables with make seed-fragmented, then runs scripts/demo.py. That script scans the local-rest source, prints each table's grade, assigns the local-standard preset, runs optimize and optimize_manifests, waits for the run to finish, and rescans.
Done when it prints Done in N min and a This run link. Open the link: the run shows succeeded, with one job per table. Open Tables: the eight fixtures tables each carry a grade.
It is safe to rerun. A scan or run that is already in flight is waited on rather than duplicated. Each rerun recreates the fixture tables, so there is fresh work every time; make demo DEMO_SEED=0 keeps the tables you have.
Install and start#
The walkthrough does the same thing one step at a time, with a check after each.
Clone the repository
The clone directory is
cryo, lowercase.terminal git clone https://github.com/tech-pw/cryo.git cd cryoStart the local stack
./start-local.sh startcreates the venv, starts Postgres, Redis, and the local datalake, runs Alembic, and starts the API, the UI andcryo serve(scanner, governor, worker, scheduler) on the host.make uponly starts containers. It does not migrate./healthzdoes not touch Postgres.terminal ./start-local.sh startDone when the script prints
Cryo local stack is running.and the URLs below it.Open the UI
Open http://localhost:5173. On macOS,
open http://localhost:5173does the same thing.Done when the login screen loads. Dev sign-in is a role (
viewer,operator, oradmin), not an arbitrary username. Pickoperatororadminto follow the checks below. The dashboard is empty until step 2 below.
From empty to a maintained table#
Each scripts/demo.py step looks things up by name and can be rerun.
1. Check the demo catalog is registered
./start-local.sh startalready registered the local REST catalog as the sourcelocal-rest, the local Trino as the destinationlocal-trino, and the presets. None is marked default, so nothing runs until you assign one. If you started withSEED_CONFIG=0, runmake seed-confignow.Done when Settings, Connections lists
local-restunder Lakehouses andlocal-trinounder Engines.2. Seed fragmented tables and scan them
make seed-fragmentedwrites eight small tables torest.fixtures, one per partition layout (unpartitioned, day, month, year, bucket, multi-column, timestamp, nested), each appended in many small batches so there are small files to compact. The first run pulls the Spark image and its Iceberg packages. The scan then reads the catalog and grades every table.terminal make seed-fragmented python3 scripts/demo.py scanDone when the seed log prints eight
rest.fixtures.fixture_*lines with file counts, the scan prints a grade for each table, and Tables lists them with the same grades.3. Assign a preset
A preset says which operations to run and on which engine. This assigns
local-standard(Trino) to every table infixtures, selected by a filter rather than a list of IDs.terminal python3 scripts/demo.py assignDone when it prints
8 tables now use local-standard, and a fixture table's detail page nameslocal-standardas its preset.4. Run maintenance and open the receipt
This starts one run of
optimizeandoptimize_manifestson those tables, waits for the governor to admit the jobs and the worker to finish them, then rescans so the grades reflect the result. It leaves outexpire_snapshotsandremove_orphan_files, which wait for an approval by default.terminal python3 scripts/demo.py runDone when the run reaches
succeededand the script prints its link. On that page each table has a job with its operations, engine, status and duration. Compare the small-file counts the rescan prints with the ones from step 2.
What runs locally#
You use the web UI, which talks only to the API. The scanner reads the demo catalog, and the worker runs maintenance on the local Trino. Nothing here needs a cloud account.
- Read path
Text description
- You to Web UI (open)
- Web UI to API (REST)
- Scanner to Demo catalog
What to look at#
The screenshots below are synthetic demo data from a lake with history, not the result of these commands. Your local lake has eight small tables and one run.
- Home summarizes the lake's grades and the last run.
- Tables lists every table the scanner has seen, with the grade next to the counts that produced it.
- Runs lists scans and maintenance runs. Open one to see its jobs and receipts: operation, engine, status and duration.
For agents#
There is no chat on this site. Give an agent this prompt, then the page it asked about:
Read https://tech-pw.github.io/cryo/llms.txt, then answer only from those pages. If a fact is not on one of them, say so.