Trino Gateway documentation
![]() |
The following aspects apply to managing Trino Gateway and the connected Trino clusters.
Trino Gateway records history of recent queries and displays links to check query
details page in respective trino cluster.
The admin page is used to configure the gateway to multiple backends. Existing backend information can also be modified using the same.
Trino Gateway supports graceful shutdown of trino clusters. Even when a cluster is deactivated, any submitted query states can still be retrieved based on the Query ID.
To graceful shutdown a trino cluster without query losses, the steps are:
- Set the backend to deactivate state, this prevents any new incoming queries from getting assigned to the backend.
- Poll the trino backend coorinator URL until the queued query count and the running query count both hit 0.
- Terminate the trino Coordinator & Worker Java process.
To gracefully shutdown a single worker process, see this for the operations.