# When you need a Trino cluster — and when one process is enough

Published Oct 28, 2026

How to decide whether your federated SQL setup needs a coordinator and workers, or whether a single process next to your databases will do. With what each tool needs to run, three typical scenarios and a four-question decision tree.

Trino and Otterstax are both open-source federated query engines. Each gives you one SQL endpoint over several data sources without copying the data first, and both read from PostgreSQL, MariaDB, ClickHouse and Kafka. Feature tables make them look closer than they are, because they leave out what you have to run and keep running.

Trino is built as a cluster with a coordinator and workers, while Otterstax open source runs as one process. This guide covers what each needs on day one, which workloads each fits, and how to decide which one your setup needs. For the full feature table, see [Otterstax vs Trino](/compare/trino).

## Trino architecture: coordinator, workers, catalogs

A Trino cluster has one coordinator and zero or more workers. The coordinator parses SQL, plans queries and schedules work; the workers run the tasks and exchange intermediate data with each other. Each node is one JVM. Clients and workers talk to the coordinator over a REST API. ([Trino concepts](https://trino.io/docs/current/overview/concepts.html), checked 28 Oct 2026)

A single node can act as both coordinator and worker. Trino's documentation describes this setup as a single machine for testing, and recommends a dedicated coordinator for the best performance on larger clusters. ([Deploying Trino](https://trino.io/docs/current/installation/deployment.html), checked 28 Oct 2026)

What a node needs, from the same page:

- A 64-bit Linux system and a 64-bit Java 25 build (minimum 25.0.1); earlier Java versions are not supported.
- A JVM heap set to roughly 70–85% of the machine's memory. The docs recommend "large memory allocation beyond 32GB" for production clusters, with swap disabled.
- Raised process limits for the Trino user: `nofile` of at least 131072 and `nproc` of at least 128000.
- Four configuration files per node: `node.properties`, `jvm.config`, `config.properties`, and one `etc/catalog/*.properties` file per data source. The file name becomes the catalog name.

You can start Trino in one container with `docker run -d -p 8080:8080 trinodb/trino`; catalogs are added by mounting files into `/etc/trino/catalog` or by enabling dynamic catalog management. ([Trino in a Docker container](https://trino.io/docs/current/installation/containers.html), checked 28 Oct 2026) For production, the documented path is Kubernetes with the Trino Helm chart, which deploys a coordinator and a configurable number of workers. The docs note that Trino works best with fewer pods that each have more resources, and advise against putting several Trino pods on one physical host. ([Trino on Kubernetes](https://trino.io/docs/current/installation/kubernetes.html), checked 28 Oct 2026)

Two more points matter for sizing. First, fault-tolerant execution is off by default; without it, when a worker fails, "the query fails and must be run again manually". Turning it on requires an exchange manager backed by S3-compatible storage, Azure Blob, GCS or HDFS. ([Fault-tolerant execution](https://trino.io/docs/current/admin/fault-tolerant-execution.html), checked 28 Oct 2026) Second, applications reach Trino through its own client protocol: the Trino CLI, the JDBC driver, or the Python, Go, JavaScript and C# clients. ([Clients](https://trino.io/docs/current/client.html), checked 28 Oct 2026) An app that speaks the MariaDB or PostgreSQL protocol today needs a new driver to talk to Trino.

## What Otterstax needs: one process

Otterstax open source runs as a single process. You clone the repository, list your databases in `config.yaml` and run `docker compose up -d`. Sources are read at startup; to add one, edit the file and restart.

Clients connect the way they already connect to a database. Otterstax speaks the MariaDB / MySQL wire protocol (port 8816) and the PostgreSQL wire protocol (port 8817), so an application keeps its driver and ORM and changes one connection string. Analytics clients can use Arrow Flight SQL or ADBC (port 8815), and Spark jobs connect through Spark Connect. AI agents get the same endpoint through the open-source MCP gateway.

A single process has no automatic failover. If it stops, queries stop until it restarts. Failover, spill to disk and a cost-based adaptive optimizer come with the Enterprise cluster on Kubernetes. You can start with one process and move to a cluster when the workload needs it.

## Three scenarios

**Analytics over a lakehouse.** Your data lives in Iceberg, Delta Lake or Hudi tables, queries scan terabytes, and dozens of analysts run them at once. This is what Trino was designed for: "data warehousing and analytics", in its own words, with 37 documented connectors including the three table formats above. ([Use cases](https://trino.io/docs/current/overview/use-cases.html), [Connectors](https://trino.io/docs/current/connector.html), checked 28 Oct 2026) Otterstax does not read lakehouse table formats, so Trino is the right choice here, with a cluster sized for the load.

**An application over several live databases, with writes.** A service reads from MariaDB and ClickHouse, writes back to PostgreSQL, and should keep working when a table moves. Trino's documentation says it is "not a general-purpose relational database", "not a replacement for databases like MySQL, PostgreSQL or Oracle", and "was not designed to handle Online Transaction Processing". ([Use cases](https://trino.io/docs/current/overview/use-cases.html), checked 28 Oct 2026) Its connectors do support INSERT, UPDATE, DELETE and MERGE, with limits per connector. For PostgreSQL, UPDATE accepts only constant assignments and MERGE requires non-transactional mode. ([PostgreSQL connector](https://trino.io/docs/current/connector/postgresql.html), checked 28 Oct 2026) Otterstax is built for this case. The app connects with its existing driver and reads and writes through one endpoint, and one process is usually enough.

**A gradual migration.** You are moving from PostgreSQL to MariaDB over several months, and the application must not notice. Otterstax keeps both databases in sync with CDC and dual writes while the app points at one connection string, and the open-source version runs the whole time as one process. Keeping two operational databases in sync during a cut-over is outside what Trino documents as a use case. See [gradual database migration](/use-cases/database-migration).

## What each tool does not give you out of the box

Trino:

- A database wire protocol. Applications need a Trino client; there is no MariaDB- or PostgreSQL-compatible port.
- Fault tolerance. It is off by default and needs external exchange storage to turn on.
- A documented single-process production mode. The single-node setup is positioned for testing.
- Arrow Flight SQL or ADBC. The client page lists the CLI, JDBC and five language clients.

Otterstax:

- Lakehouse table formats. Iceberg, Delta Lake and Hudi are not sources today.
- Breadth of connectors. Otterstax has five source types (MariaDB, PostgreSQL, ClickHouse, S3 and Kafka), Trino has 37.
- Failover in open source. With one process, an outage lasts as long as a restart. The cluster is part of Enterprise.
- Parts of SQL. Subqueries inside `WHERE`, for example, are not supported yet; see [known limitations](/how-it-works).
- A long track record. Trino, and Presto before it, has more than a decade of production use behind it and a large community. Otterstax is a younger project.

On DWH-style queries over PostgreSQL / MariaDB clusters with Kafka, which both tools run well, Otterstax overhead is 5–15 p.p. lower than Trino's (source: customer production).

## Do I need a Trino cluster? Four questions

1. **Is most of your data in a lake, and are the queries analytical scans over terabytes?** Yes → Trino, with a cluster. No → next question.
2. **Do applications or AI agents need to connect with a MariaDB or PostgreSQL driver, and write as well as read?** Yes → Otterstax. No → next question.
3. **Do you need a source Otterstax does not cover, such as BigQuery, Snowflake, Oracle, MongoDB, Cassandra or a Hive metastore?** Yes → Trino. No → next question.
4. **Can the service tolerate a restart-sized outage today, and move to a cluster later?** Yes → Otterstax open source, one process. No → Otterstax Enterprise on Kubernetes, or Trino with fault-tolerant execution and an exchange manager.

If you answered yes to the first question and to the second, you may need both, as described in the next section.

## Running both

You can run Trino and Otterstax side by side. A common split is Trino over the lake for large-scale analytics, and Otterstax as the database-facing endpoint for applications and agents over the operational databases. Both can read the same PostgreSQL and ClickHouse instances.

## Next step

The open-source version runs as one process, works with your existing driver and needs one `config.yaml`. [Start with open source →](https://github.com/otterstax/otterstax)

Need the feature-by-feature table? [Otterstax vs Trino, full comparison →](/compare/trino)

## See Otterstax on your own data sources

In a 30-minute call we'll map your stack and show a working query across your data sources.

[Talk about a pilot](https://otterstax.com/demo) · [Start with open source](https://github.com/otterstax/otterstax/tree/main/examples/quick_start)

---

Source: https://otterstax.com/guides/when-you-need-a-trino-cluster · Otterstax · info@otterstax.com
