{"id":22152120,"url":"https://github.com/findinpath/trino-docker-compose-cluster","last_synced_at":"2025-04-10T15:43:27.276Z","repository":{"id":112791071,"uuid":"383229882","full_name":"findinpath/trino-docker-compose-cluster","owner":"findinpath","description":"Trino cluster with `docker-compose`","archived":false,"fork":false,"pushed_at":"2021-07-05T22:13:34.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T13:27:18.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findinpath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-05T18:19:21.000Z","updated_at":"2024-10-14T02:51:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad65a440-9386-49d5-9243-a64fbfc604b4","html_url":"https://github.com/findinpath/trino-docker-compose-cluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findinpath","download_url":"https://codeload.github.com/findinpath/trino-docker-compose-cluster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243497,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T00:47:13.276Z","updated_at":"2025-04-10T15:43:27.257Z","avatar_url":"https://github.com/findinpath.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Trino cluster with `docker-compose`\n===================================\n\nThis project can be used to setup a [Trino](https://trino.io/) cluster with `docker-compose`.\n\nThe Trino cluster makes use of the [tpch](https://trino.io/docs/current/connector/tpch.html)\ncatalog for benchmarking the performance of the cluster computations.\n\n## Cluster setup\nSetting up initially the cluster (composed of a coordinator and a worker) can be done through the command:\n\n```bash\ndocker-compose up\n```\n\nIn detached mode:\n\n```bash\ndocker-compose up -d\n```\n\n\nScale the number of workers into the Trino cluster:\n\n```bash\ndocker-compose up --scale trino-worker=3 -d\n```\n\n\nCheck the number of nodes in the Trino cluster:\n\n```bash\ndocker exec -it trino-docker-compose-cluster_trino-coordinator_1 /usr/bin/trino\n```\n\n```sql\ntrino\u003e select * from system.runtime.nodes;\nnode_id    |         http_uri         | node_version | coordinator | state  \n--------------+--------------------------+--------------+-------------+--------\n ff1ffc8ae0e0 | http://192.168.32.3:8080 | 358          | true        | active \n cdf437dd81da | http://192.168.32.2:8080 | 358          | false       | active \n e165fc03b39d | http://192.168.32.5:8080 | 358          | false       | active \n fa33d391ac43 | http://192.168.32.4:8080 | 358          | false       | active \n(4 rows)\n```\n\n\n## Benchmarks\n\nExecute any of the queries from the directory [benchmarks](benchmarks) to get a feeling on how\nthe cluster is performing.\n\n\n## Tear down\n\n```bash\ndocker-compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Ftrino-docker-compose-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindinpath%2Ftrino-docker-compose-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Ftrino-docker-compose-cluster/lists"}