v0.2.1

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.

Updated 6 min readEdit this pageReport an issueView as Markdown
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.

terminal
git clone https://github.com/tech-pw/cryo.git
cd cryo
make demo

make 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.

  1. Clone the repository

    The clone directory is cryo, lowercase.

    terminal
    git clone https://github.com/tech-pw/cryo.git
    cd cryo
  2. Start the local stack

    ./start-local.sh start creates the venv, starts Postgres, Redis, and the local datalake, runs Alembic, and starts the API, the UI and cryo serve (scanner, governor, worker, scheduler) on the host. make up only starts containers. It does not migrate. /healthz does not touch Postgres.

    terminal
    ./start-local.sh start

    Done when the script prints Cryo local stack is running. and the URLs below it.

  3. Open the UI

    Open http://localhost:5173. On macOS, open http://localhost:5173 does the same thing.

    Done when the login screen loads. Dev sign-in is a role (viewer, operator, or admin), not an arbitrary username. Pick operator or admin to 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. 1. Check the demo catalog is registered

    ./start-local.sh start already registered the local REST catalog as the source local-rest, the local Trino as the destination local-trino, and the presets. None is marked default, so nothing runs until you assign one. If you started with SEED_CONFIG=0, run make seed-config now.

    Done when Settings, Connections lists local-rest under Lakehouses and local-trino under Engines.

  2. 2. Seed fragmented tables and scan them

    make seed-fragmented writes eight small tables to rest.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 scan

    Done 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. 3. Assign a preset

    A preset says which operations to run and on which engine. This assigns local-standard (Trino) to every table in fixtures, selected by a filter rather than a list of IDs.

    terminal
    python3 scripts/demo.py assign

    Done when it prints 8 tables now use local-standard, and a fixture table's detail page names local-standard as its preset.

  4. 4. Run maintenance and open the receipt

    This starts one run of optimize and optimize_manifests on 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 out expire_snapshots and remove_orphan_files, which wait for an approval by default.

    terminal
    python3 scripts/demo.py run

    Done when the run reaches succeeded and 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.

Figure 1make up runs the whole stack against a demo lake
make up runs the whole stack against a demo lakemake up starts the API, Web UI, PostgreSQL, Redis and a demo Trino. You open the Web UI. The Scanner reads the demo catalog.Local stackdocker composeDemo lakereadopenRESTYoubrowserWeb UIlocalhost:5173APIFastAPITrino (demo)demo engineScannerreads metadataDemo catalogseeded tables
The local stack reads a demo catalog. Production keeps the same split with your own catalogs and engines.
  • 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.

localhost:5173/

Demo data
Home after a few nights of maintenance. Last night's run and your next steps come first. The lake's grades, the tables people query most and the tables Cryo just fixed sit below.

For agents#

There is no chat on this site. Give an agent this prompt, then the page it asked about:

prompt
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.