Chapter 5. Production-Ready Deployment

Following the installation of Trino from the tar.gz archive in Chapter 2, and your new understanding of the Trino architecture from Chapter 4, you are now ready to learn more about the details of installing a Trino cluster. You can then take that knowledge and work toward a production-ready deployment of a Trino cluster with a coordinator and multiple worker nodes.

Configuration Details

The Trino configuration is managed in multiple files discussed in the following sections. They are all located in the etc directory located within the installation directory by default.

The default location of this folder, as well of as each individual configuration file, can be overridden with parameters passed to the launcher script, discussed in “Launcher”.

Server Configuration

The file etc/config.properties provides the configuration for the Trino server. A Trino server can function as a coordinator, or a worker, or both at the same time. Dedicating a single server to perform only coordinator work, and adding a number of other servers as dedicated workers, provides the best performance and creates a Trino cluster.

The contents of the file are of critical importance, specifically since they determine the role of the server as a worker or coordinator, which in turn affects resource usage and configuration.

Tip

All worker configurations in a Trino cluster should be identical.

The following are the basic allowed Trino server configuration properties. In ...

Get Trino: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.