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.
Cryo on Kubernetes#
- 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/cryoand each release tag publishes it tooci://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, thecryo-sparkimage, 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.
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-namespaceThe 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.
| Service | CPU (cores) | Memory (GiB) |
|---|---|---|
api | 0.50 | 1.50 |
worker | 1.00 | 2.00 |
governor | 0.25 | 0.50 |
scheduler | 0.10 | 0.50 |
scannerWorker | 1.50 | 1.50 |
| Total | 3.35 | 6.00 |
Reproduce the table from the chart defaults:
make deployment-footprint