v0.2.1

Deployment

Cryo deploys as one Helm chart. It can run maintenance on its own engines inside the cluster, Spark on Kubernetes and the beta native Go compactor, or admit the work to the Trino and Spark you already run.

Updated 3 min readEdit this pageReport an issueView as Markdown
On this page

Cryo on Kubernetes#

Figure 1Helm installs Cryo; PostgreSQL, Redis and the engines stay yours
Helm installs Cryo; PostgreSQL, Redis and the engines stay yoursThe Helm release runs the API, Web, Scheduler, Governor, Worker and a Scanner CronJob. PostgreSQL and Redis are required but live outside the chart. Trino and Spark stay outside the chart too.Cryo Helm releasedeploy/helm/cryoRequired storesbring your ownEngines you already runstateexecuteAPIFastAPIWeboperator UISchedulerleader-electedGovernorleader-elected, bounds concurrencyWorkerscale for throughput, not concurrencyScanner CronJobseparate from the scanner workersPostgreSQLstate and statsRedisqueue and locksTrinoTrino SQLSpark on EMRSpark SQL
The Helm release holds Cryo's services. PostgreSQL and Redis are yours. Cryo engines run as Jobs in the cluster; your engines stay where they are.
  • Write or execute
Text description
  • Cryo Helm release to Required stores (state)
  • Cryo Helm release to Engines you already run (execute)

The scheduler and the governor are leader-elected, so several replicas may start but only one is active. Scaling workers does not by itself raise OPTIMIZE concurrency, because the governor bounds real concurrency against engine load.

Layout in three lines#

Helm chart
The chart lives at deploy/helm/cryo and each release tag publishes it to oci://ghcr.io/tech-pw/charts/cryo, signed with cosign keyless. Defaults are committed, and overrides are per environment.
Stores
PostgreSQL and Redis are required. PostgreSQL is always external, so you can use a managed service. Redis can be external too, or you can use the chart's single in-namespace Redis, which has no volume.
Engines
Two kinds. Cryo engines ship with the chart: Spark on Kubernetes (spark.k8s.enabled, the cryo-spark image, one Job per statement) and the beta native Go compactor. Your engines, such as Trino or EMR Serverless, stay outside the chart, and Cryo reaches them through destination configs stored in the database.

Install the chart#

No clone needed. The chart version X.Y.Z is the release tag without its v, and the published defaults pin that release's ghcr.io/tech-pw/cryo, cryo-web and cryo-spark images by digest.

terminal
helm show values oci://ghcr.io/tech-pw/charts/cryo --version X.Y.Z    # defaults
helm pull oci://ghcr.io/tech-pw/charts/cryo --version X.Y.Z --untar   # optional: read the templates
helm install cryo oci://ghcr.io/tech-pw/charts/cryo --version X.Y.Z --namespace cryo --create-namespace

The chart is an OCI artifact, so there is no helm repo add; pass the oci:// address to every command (Helm 3.8+). It is also listed on Artifact Hub.

The chart README lists the values a production install must set, including the database connection, the production environment flag, and OIDC.

Request floor#

These are the resources the committed Helm defaults request when Cryo is idle, summed across replicas. scannerWorker is the ad-hoc scan consumer, not the scanner CronJob.

ServiceCPU (cores)Memory (GiB)
api0.501.50
worker1.002.00
governor0.250.50
scheduler0.100.50
scannerWorker1.501.50
Total3.356.00

Reproduce the table from the chart defaults:

terminal
make deployment-footprint