Open ak2766 opened 5 days ago
There are undocumented http-client
config properties to increase timeout:
workerExtraConfig: |-
exchange.http-client.request-timeout=60s
exchange.http-client.idle-timeout=2m
exchange.http-client.max-connections-per-server=1000
coordinatorExtraConfig: |-
exchange.http-client.request-timeout=60s
exchange.http-client.idle-timeout=2m
exchange.http-client.max-connections-per-server=1000
Thanks @zachtron.
I went through the logs and searched for timeouts. Trial and error got me to the correct one and eventually got it going a day ago but forgot to come back and update.
TL;DR - Which timeout setting do I need to change from default to stop this PAGE_TRANSPORT_TIMEOUT and does it need to go in coordinator, worker, or both?
I'm experiment with Trino and DBeaver and I'm hitting a road block for queries that take longer than 1 minute to complete.
For instance, the query below in particular never finishes when using Trino cli. However, if I run the same query on SSMS, it completes in ~3 minutes. The table is >30GB
Initially, thought it was a DBeaver issue and I wasted hours researching timeouts. After exhausting all timeouts on DBeaver, I finally tried running the query directly on Trino's (which I really ought to have done first), I discovered the timeout is occurring somewhere inside Trino. I just started on Trino yesterday so I'm very green.
Here are my configs:
coordinator config:
``` coordinator=true node-scheduler.include-coordinator=false http-server.http.port=8080 discovery-server.enabled=true discovery.uri=http://trino-coordinator:8080 internal-communication.shared-secret=REDACTED internal-communication.https.required=false ```worker config:
``` coordinator=false http-server.http.port=8080 discovery.uri=http://trino-coordinator:8080 internal-communication.shared-secret=REDACTED internal-communication.https.required=false ```Quick EDIT: If I comment out the
order by count desc
, the query completes in under 5 seconds.