For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dedicated Trino

The full reference for the dedicated managed Trino cluster (vulcan-dg-trino), one cluster per Data Product, covering the deploy manifest, catalog priority, JVM tuning, and failure modes.

Dedicated Trino means the Trino cluster is provisioned and owned by your Data Product deployment. The vulcan-dg-trino resource creates a Trino coordinator and workers for you and generates Trino catalogs from the depots you declare. You get one self-contained, federated cluster per Data Product that owns its own compute.

This is the right shape when a Data Product needs its own isolated cluster, federates across several sources, and materializes into a lakehouse it controls. To share one large central cluster instead, see Minerva. To connect to a cluster that already exists outside DataOS, see External cluster. For the rules common to all three shapes, see Trino.

Core settings

Setting
Value

Resource type

vulcan-dg-trino

Engine field

spec.engine: trino

Model dialect

trino

VDE

false (not supported on Trino)

Catalog source

Generated from spec.depots[] and spec.trino.catalog.config[]

Architecture

A dedicated Trino Data Product renders as five cooperating resources:

vulcan resource (spec.engine: trino)
├── <name>-trino           (service)  → Trino coordinator (replicas: 1)
├── <name>-trino-workers   (service)  → Trino workers (spec.trino.workers.replicas, default 2)
├── <name>-plan            (workflow) → vulcan migrate, then plan --auto-apply (waits for cluster ready)
├── <name>-run             (workflow) → vulcan run (scheduled; depends on plan)
└── <name>-api             (service)  → Vulcan API — REST/GraphQL/MySQL-wire access for consumers (spec.api)

The plan/run pods carry a trino-ready init container. This Vulcan readiness gate blocks until the coordinator answers SELECT 1 and the configured worker count is active, before Vulcan starts. (Trino itself can run with fewer workers; this gate is a Vulcan operational rule, not a Trino requirement.)

Prerequisites

Three roles are involved, each with a distinct scope:

Role
Who holds it
Purpose

Admin role

DataOS / platform SRE

Installs the vulcan-trino stack, provisions the compute pool, creates depots, and the tenant state/object-store secrets

Vulcan service role

The runAsUser on the resource

Runs the coordinator/workers and the plan/run workflows; reads source catalogs and writes the materialization catalog

Consumer role

BI users, endpoint consumers

Read-only access to Data Product tables via Vulcan API endpoints

Ask your DataOS SRE team for:

Requirement
Notes

Trino-capable compute pool

Verify with dataos-ctl resource -t compute get -a; set spec.compute to this pool

Tenant-level vulcan-trino stack

Runtime image, serving sidecars, catalog templating, per-role Trino config rendering

Tenant vulcan-state-connection secret

External Postgres for Vulcan plan/interval state

Tenant vulcan-object-store-connection secret

S3 bucket for Vulcan artifacts / result spooling

Depots for every source you read

One depot per source system. Each becomes a Trino catalog

A materialization depot

The first depot in spec.depots[] is the default catalog where FULL/INCREMENTAL models land. Make it a writable lakehouse depot

Git-sync secret

Used to pull model code (spec.repo.secret)

The vulcan-trino stack, vulcan-state-connection secret, and vulcan-object-store-connection secret ship by default with tenants created after the August release. Confirm that your tenant includes these resources. If it predates the August release, ask SRE to migrate it.

Minimum source grants:

Source
Grant

Iceberg lakehouse

rw on the lakehouse depot; storage creds (S3 access/secret or ABFSS account key) live on the depot

Postgres

A read (or rw) role on the target database; credentials on the depot

Snowflake

A role/warehouse with USAGE + SELECT; user/password or key-pair on the depot secret

Databricks (read-only)

PAT token on the secret catalog (Unity Catalog Iceberg REST endpoint)

Local dev needs Python 3.10 to 3.13 (python --version). The runtime version inside the image is managed for you.

Before you start

Check:

Trino / source side

The vulcan-trino stack, vulcan-state-connection secret, and vulcan-object-store-connection secret ship by default with tenants created after the August release. Confirm that your tenant includes these resources. If it predates the August release, ask SRE to migrate it.

Local development

Production

Local development

Install Vulcan as a Python wheel, then point it at the Dockerized Trino cluster:

Local development runs a real Trino coordinator + worker in Docker, plus a local Postgres container that Trino federates against. This is what the hello-world starter below reads from and writes to. Trino needs no local JVM, so there's no separate "Python in Docker" variant and no vulcan-cli container: Vulcan runs as a plain Python install on your host and talks to the Dockerized cluster over HTTP.

docker/docker-compose.yml - coordinator and worker:

Each etc/ directory needs the base Trino config files, not just catalog/. Trino won't start without them:

trino/coordinator/etc/node.properties

trino/coordinator/etc/jvm.config

trino/coordinator/etc/config.properties

trino/coordinator/etc/log.properties

Mirror node.properties, jvm.config, and log.properties under trino/worker/etc/ unchanged, except config.properties, which flips the role line:

trino/worker/etc/config.properties

docker/docker-compose.warehouse.yml - local Postgres source, backing the postgresvulcantest catalog:

trino/coordinator/etc/catalog/postgresvulcantest.properties (mirror under trino/worker/etc/catalog/):

Start both stacks and verify:

config.yaml (local)

In production the gateway connection is templated from environment variables the stack injects (TRINO_HOST, TRINO_PORT, TRINO_USER, TRINO_CATALOG, TRINO_HTTP_SCHEME, TRINO_METHOD). See the deployment section below. Drop state_connection entirely when you move to production: DataOS provisions and wires the state store automatically from the tenant vulcan-state-connection secret, so there's nothing to add to config.yaml for it.

Hello-world starter

Every model uses the fully-qualified three-part name: <trino_catalog>.<schema>.<table>. The warehouse starts empty, so seed the raw table first, then build a summary model on top of it.

seeds/orders.csv

models/seeds/raw_orders.sql

models/full/orders_summary.sql

models/semantics/orders.yml

metrics/daily_revenue.yml

Validate the connection

Run these once the local cluster and warehouse are up, config.yaml exists, and the hello-world models are in place:

If vulcan plan succeeds, your local setup is complete. Call the REST endpoint to confirm end-to-end. Common failures at this step are in the troubleshooting table below.

Cluster configuration

Per-role server config sits under spec.trino.coordinator.trinoServerConfig and spec.trino.workers.trinoServerConfig. Each field takes the full file contents for jvmConfig, configProperties, nodeProperties, and logProperties.

Only the stack's default property files, plus the one validated change (-Xmx4G in jvmConfig), are documented here. These are the configurations known to work. Trino exposes many more tuning properties (memory caps, query timeouts, scheduler tuning, fault tolerance); they're intentionally left out until you've tested them on your own cluster.

Unless you have a reason to override, ship the defaults below as-is. They form a working cluster.

jvm.config

Stack default (coordinator and worker):

config.properties

Stack default - coordinator:

Stack default - worker:

This is the validated, working default. Leave configProperties unset to use it.

If you must set configProperties, know that the stack still prepends the two cluster-identity lines automatically, and the platform default block is replaced, not merged. Re-supply the role lines yourself, and don't duplicate the two injected lines:

log.properties

Stack default (coordinator and worker), validated:

node.properties

Stack default (coordinator and worker):

node.environment must be identical on coordinator and workers, or the cluster won't form (the stack normalizes it to lowercase/alphanumerics at startup, so keep it simple). Never set node.id on workers. It is shared across replicas and would collide; a unique node.id is auto-generated per pod at startup.

Cluster-identity guard rails - don't change these

Line
Why

discovery.uri

Stack-injected; wrong value breaks cluster membership

internal-communication.shared-secret

Stack-injected; mismatch blocks inter-node RPC

coordinator=true on a worker

A coordinator-configured node can't act as worker-only; the cluster won't form correctly

node.environment mismatch coord↔worker

Workers won't register

node.id on workers

Shared across replicas → duplicate IDs

How catalogs get created

The tenant-level vulcan-trino stack creates and mounts catalog files automatically. You do not need to create or mount catalog files manually. There are two supported catalog sources, and the difference determines which one wins as the default gateway catalog.

Depot catalog
Secret catalog

Defined in

spec.depots[]

spec.trino.catalog.config[]

Catalog name

The depot name (dataos://<name> → catalog <name>)

The DataOS secret name (last segment after :)

.properties file

Generated by the stack from depot type + credentials

Built directly from the secret's key/value pairs: keys must be valid Trino catalog property names

Credential storage

Managed by the DataOS depot (attached secret, not inline)

A DataOS Secret resource holding raw Trino property keys

Typical use

Lakehouse depots (Iceberg/S3/ABFSS), managed Postgres, Snowflake depots

Sources without a DataOS depot; cross-tenant or external endpoints; fine-grained connector control

Example

dataos://<lakehouse>?purpose=rw

"<tenant>:<secret-name>"

Both can coexist on the same DP, and a DP can run entirely on secret catalogs with no depots at all.

Default catalog priority. The stack resolves the default catalog. It is what Vulcan uses when no catalog is specified and what is surfaced as the gateway catalog on the API. The order is:

Secret catalogs always win over depot catalogs. If your DP has both, order each list deliberately, or better, set the default explicitly:

This survives any future reordering of spec.depots[] or spec.trino.catalog.config[].

Connector reference

A secret catalog is a DataOS Secret whose key/value pairs map 1:1 to a Trino <catalog>.properties file. The secret name (last segment of <tenant>:<secret-name>) becomes the Trino catalog name:

Apply it, then reference it in the deploy resource:

Postgres: Exposes a Postgres database as a Trino catalog.

Optional tuning (secret, or via overideCatalogConfig):

Postgres doesn't support partitioned incremental writes through Trino. Use kind FULL or kind VIEW for Postgres-backed models. It also rejects comment DDL, so always set register_comments: false when Postgres is the gateway catalog.

BigQuery: Connects to a Google BigQuery project as a read and write source. Managed Trino has no file mount, so provide the service account key inline as a base64-encoded string.

Snowflake: All compute runs on the Trino cluster; Snowflake is a data source only.

Optional: snowflake.jdbc.override-url: jdbc:snowflake://<account>.snowflakecomputing.com/?<params>

Databricks (Delta Lake): Read-only source, connected via Iceberg REST against Unity Catalog. Vulcan writes materialized output to a separate lakehouse depot; writing into Databricks tables through Trino isn't supported.

Delta Lake tables read through the Iceberg REST interface can fan out wide splits. Size the coordinator and workers with larger JVM heaps (-Xmx12G) and more CPU/memory when Databricks is a primary source:

Typical pattern: read Databricks, write to a lakehouse depot. Because the secret catalog takes priority by default, override TRINO_CATALOG to the depot name when you want the lakehouse to be the default write target:

Lakehouse depot (AWS S3 / Azure ABFSS): Supports both S3 and ABFSS backends. This is the primary write/materialization target for a dedicated Trino cluster. The DataOS depot carries all storage credentials; the stack generates the Trino catalog from it automatically. There is nothing to hand-author. Add it as the first entry in spec.depots[] to make it the default materialization catalog:

Add extra Iceberg tuning on top of the auto-generated catalog with overideCatalogConfig:

Snowflake and Postgres are also supported as depots. When added to spec.depots[], the stack auto-generates the catalog the same way. No manually authored secret is needed.

Per-catalog property overrides (overideCatalogConfig)

spec.trino.overideCatalogConfig appends extra key/value pairs to a generated catalog's .properties file, after the stack renders the base properties from the depot or secret. It works on both depot-generated and secret catalogs, keyed by depot/secret name.

Multiple catalogs can each have their own override block:

Use this for tuning concerns that aren't credentials, such as iceberg.max-partitions-per-writer, case-insensitive-name-matching, and metadata.cache-ttl. Keep these separate from the secret when they differ across dev/prod.

Confirm the properties actually loaded after deploy:

If a property doesn't show up in the logs, it wasn't applied. Double-check the field spelling and that overideCatalogConfig.name matches the exact catalog name.

Java plugins and UDFs

Trino loads plugins from /usr/lib/trino/plugin/ on coordinator and workers. The vulcan-trino stack copies each direct subdirectory of dependencies/java/ in your repo into that path at pod startup:

Only direct subdirectories are copied. A loose JAR at dependencies/java/*.jar won't load. Each JAR inside a plugin folder must contain META-INF/services/io.trino.spi.Plugin to count as a valid Trino SPI plugin.

Fetching an official Trino plugin. Commit a fetch-plugins.sh alongside the plugin directory to reproducibly pull JARs from the official Trino GitHub release:

Confirm it loaded. After dataos-ctl resource apply, check the coordinator and each worker's log for the plugin load line:

Expect one pair of lines per plugin folder:

The built-in udfs plugin logs -- Loading plugin udfs -- followed by FunctionsPlugin. If yours doesn't show up, check the subdirectory layout and the SPI service file.

Using a plugin function. Once loaded, reference it in any model's SQL exactly like a built-in function. No import or registration is needed:

Function not registered means the plugin didn't load. Check the log proof above.

Reference example: trino/java-plugins-udfs/. It validates the teradata-functions plugin with a FULL model and semantic model smoke test.

Production deployment

Do this after local plan succeeds. Apply order matters. Each step depends on the previous:

Manifest
Purpose
Key fields

Source depots

One per federated source

name, spec.type, source credentials, purpose: rw/r

Lakehouse depot (first)

Default catalog for materialized models

lakehouse storageType (abfss/s3) + creds

secret-git-sync.yaml

Repo credentials for git-sync

GITSYNC_USERNAME, GITSYNC_PASSWORD

Tenant secrets

vulcan-state-connection (Postgres), vulcan-object-store-connection (S3)

provisioned once per tenant by SRE

config.yaml

Project config + gateway templated from env

engine: trino, env-var connection, model_defaults

Deploy resource (type: vulcan)

Cluster + workflows + API + schedule

spec.engine: trino, spec.compute, spec.depots, spec.trino, spec.workflow, spec.api

Generate the deploy manifest from the project root:

It is always type: vulcan with spec.engine: trino. Never use a separate vulcan-trino resource type. Fill in:

Field
What to set

type

vulcan

name

Lowercase DataOS resource name

owner / spec.runAsUser

DataOS user/service account to run the workflow

spec.compute

Trino-capable DataOS compute pool

spec.engine

trino

spec.repo.url

Git repository URL containing the project

spec.repo.syncFlags

Branch/tag ref, e.g. --ref=<branch>

spec.repo.baseDir

Path from repo root to the Vulcan project

spec.repo.secret

Git-sync secret, if the repo is private

spec.depots

One entry per source, plus the lakehouse depot first

spec.trino.coordinator / spec.trino.workers

Per-role JVM/log config

spec.trino.overideCatalogConfig

Per-catalog property overrides

spec.workflow.schedule

Cron, endOn, timezone, concurrencyPolicy

spec.workflow.resources

Workflow pod CPU/memory

spec.workflow.migrate / .plan / .run

Commands for the migrate, plan, and run steps: migrate initializes state, then plan runs before the scheduled run

spec.api

API replicas and request/limit resources

A complete example: daily federated DP, small project:

Why order matters. Each catalog .properties is generated from a depot that must already exist; the plan/run workflows can only sync code once the Git secret exists; and the plan pod waits for the coordinator and workers to be active before it starts. A depot name mismatch in spec.depots[] passes apply but fails at every run.

Sizing and operational boundaries

The default property set deliberately ships without memory-cap properties (query.max-memory, query.max-total-memory, query.max-memory-per-node, memory.heap-headroom-per-node). An incorrect cap relative to the heap OOM-kills queries, so run on defaults and add caps only when a specific workload calls for them.

Sizing that works. This runs the full multi-depot demo (VIEW staging, FULL + INCREMENTAL models, semantics, metrics, DQ) across three depot catalogs:

Setting
Value

spec.trino.workers.replicas

1

Coordinator / worker request

cpu: 1000m, memory: 2Gi

Coordinator / worker limit

cpu: 2000m, memory: 4Gi

-Xmx

4G

Set the pod's resource.limit.memory above -Xmx (the reference uses a 4Gi limit for -Xmx4G). Coordinator/worker resources fall back to spec.workflow.resources if not set per role. Add workers, not coordinators, for more query parallelism.

Concurrency

Recommendation
Why

concurrencyPolicy: Forbid

Prevent overlapping runs writing to the same Iceberg target

Add workers, not coordinators, for throughput

Coordinator stays at 1; workers execute splits

Constrain federated joins

Cross-catalog joins move data over the network

Keep retry-policy=NONE

Fault-tolerant execution needs an exchange manager not enabled in this deployment

API replicas. The reference deploy runs a single API replica for REST, GraphQL, and MySQL-wire. Scale replicas for request concurrency. Scale Trino workers for query execution. These are different bottlenecks.

Scheduling

Recommendation
Why

Schedule after upstream sources land

Avoid partial reads and restatements

timezone: UTC

Avoid DST-shifted intervals

concurrencyPolicy: Forbid

Prevent overlapping writers

Set endOn ≥ 1–2 years out

Expired schedules stop silently

The reference deploy schedules every 6 hours: crons: ["0 */6 * * *"].

Latency floor: Cold cluster start (coordinator + worker registration), the Vulcan trino-ready gate, remote source round trips, federated exchange, and API query overhead all stack up before the first result. If your downstream SLO is sub-second on a cold cluster, keep the cluster warm and pre-aggregate hot marts.

Performance tuning

Trino performance is driven by federation width, source latency, exchange size, and worker heap.

What to measure: cluster formation time, per-source scan time, exchange (shuffle) bytes, spilled bytes, peak query memory, worker GC pause.

Validation loop:

  1. Start from the reference sizing above

  2. Run a representative vulcan plan + vulcan run

  3. Inspect the Trino UI for spill, exchange size, peak memory, stragglers

  4. Apply one tuning change (heap, query.max-memory, worker count, or join shape)

  5. Re-run and compare

  6. Record the stable combination as your baseline

Fix order for concurrency issues: prevent overlapping writers (concurrencyPolicy: Forbid) → constrain federated join shapes (declare joins, push filters down) → add workers → raise the JVM heap and pod limit together, introducing memory-cap properties only after testing.

Performance ceilings:

Ceiling
Tune via

Wide federated joins shuffle large exchanges

Reduce join width; pre-aggregate; push predicates to sources

Remote source is the bottleneck

Cache/stage into the lakehouse; read the materialized copy

High-cardinality COUNT(DISTINCT)

Pre-aggregate, or use approx_distinct where an exact count isn't required

Worker OOM on big queries

Raise -Xmx and pod limit; reduce query/join width

Cold-cluster latency

Keep the cluster warm; pre-warm before scheduled peaks

Cost guardrails

  • Right-size spec.trino.workers.replicas to the real concurrency need. Idle workers cost compute.

  • Trino supports query timeouts (query.max-run-time, query.max-execution-time, query.client.timeout) via configProperties, but these aren't in the validated default set. Setting any configProperties block replaces the working default, so introduce timeouts only after testing an explicit baseline. The validated guardrail today is the API-side VULCAN_API_QUERY_TIMEOUT (default 300s).

  • Use concurrencyPolicy: Forbid for all scheduled workflows.

  • Materialize hot, repeatedly-joined data into the lakehouse instead of re-federating every query.

  • Keep iceberg.max-partitions-per-writer sane (e.g. 100) via overideCatalogConfig to avoid small-file explosions.

  • Push filters/predicates to remote sources so Trino reads less.

Deployment recipes

Multi-depot federation with a per-catalog override (mirrors the validated reference deploy: three depot catalogs, a per-catalog Iceberg override, default config.properties, and the only validated server change, -Xmx4G):

Secret-backed (non-depot) catalog: Mount a catalog whose .properties come straight from a DataOS secret:

End-to-end: Postgres via secret catalog. Use this when your Postgres source has no DataOS depot, you want fine-grained control over catalog properties, or you're connecting to an external Postgres not managed by DataOS.

Step 1 - create the secret (its keys are Trino catalog property names; the secret name becomes the catalog name):

Step 2 - config.yaml:

Step 3 - deploy resource (deploy.yaml):

Steps 4–9 - models, semantics, DQ, metrics, tests (fill in your own schema/columns):

SEED model:

FULL model:

Partitioned incrementals (INCREMENTAL_BY_PARTITION) aren't supported through the Postgres connector. Use FULL or VIEW for models on Postgres-backed catalogs.

Semantic model:

Data quality:

Business metric:

Model test:

Step 10 - apply and verify:

After a successful plan run, models are available via REST, GraphQL, and MySQL-wire under the Vulcan API.

Failure modes specific to a dedicated Trino cluster

Symptom
Likely cause
Fix

Cluster forms with 0 workers / workers OOM at startup

Unmanaged JVM heap exceeds pod limit

Set -Xmx to fit the pod limit in trinoServerConfig.jvmConfig for both roles

Workers never register / cluster won't form

node.environment mismatch or coordinator=true on workers

Make node.environment identical; coordinator=false on workers

Duplicate node errors across worker pods

node.id set in worker nodeProperties

Remove node.id from workers. It auto-generates per pod

Custom plugin/UDF not loaded

JAR at dependencies/java/ root, not in a subdir

Move it into dependencies/java/<plugin>/

Query OOM-killed

JVM heap too small for the query (or memory caps set above heap)

Raise -Xmx and pod limit; keep any memory caps below heap

configProperties override breaks the cluster

Duplicated discovery/shared-secret, or missing role lines

Don't duplicate injected lines; include role lines

plan/run pod hangs at startup

Vulcan trino-ready gate waiting for the configured worker count

Check worker pods are active; verify TRINO_EXPECTED_WORKERS

Snowflake/Databricks catalog won't mount

Credentials missing from the secret

Check SHOW CATALOGS in coordinator logs

Recovery procedures

Situation
Procedure

Cluster formed with 0 workers

Set -Xmx, re-apply, confirm workers active in system.runtime.nodes

Time-range run failed mid-window

Re-run the affected window; partition overwrite is safe to replay

Source temporarily unavailable

Re-run after the source recovers; declare retries at the workflow level

Catalog credentials rotated

Update depot/secret, re-apply (regenerates .properties)

Workflow halted because endOn expired

Update endOn and re-apply

Bad data materialized to Iceberg

Use Iceberg snapshot rollback (coordinate with platform SRE)

Where to look

Symptom
Where
How

Local cluster startup

Docker compose services

docker compose -f docker/docker-compose.yml logs <svc>

Coordinator/cluster health

Coordinator service

dataos-ctl resource -t service -n <name>-trino logs -l 100

Worker health / OOM

Workers service

dataos-ctl resource -t service -n <name>-trino-workers logs -l 100

Rendered Trino config (proof)

Inside the pods

dataos-ctl resource -t service -n <name>-trino exec -- cat /usr/lib/trino/etc/config.properties

Plan/run failures

Workflow pods

dataos-ctl resource -t vulcan -n <name> logs -l 500

SQL smoke

Coordinator

dataos-ctl resource -t service -n <name>-trino exec -- trino --execute "SELECT 1"

Cluster membership

Coordinator

trino --catalog system --schema runtime --execute "SELECT node_id, coordinator, state FROM nodes"

Version compatibility

This combination is confirmed to work together:

Vulcan image
Trino server image
DataOS compute
Storage / sources

tmdcio/vulcan-trino:0.228.1.30

tmdcio/trino:5.1.12

Trino-capable pool

Iceberg (ABFSS), Postgres, Snowflake

Full implementation example

Use this complete Data Product as a production-shaped starting point.

archive · 40KB
Open

Last updated

Was this helpful?