TzuHsiang (Andy) Su

Results 47 comments of TzuHsiang (Andy) Su

if the auth is `oauth2` then useApi has to be set to false, since oauth2 flow doesn't support `/ui/api/stats` ``` clusterStatsConfiguration: useApi: false ```

When backend is active and health check passes, health state should be HEALTHY ![image](https://github.com/trinodb/trino-gateway/assets/18670495/c7c23c93-cf98-4ab2-ba09-bf87cef6826a) When backend is inactive, health state should be PENDING ![image](https://github.com/trinodb/trino-gateway/assets/18670495/696e0d96-206f-4ad0-b592-767b871ef421) When backend is turned active from...

> At first I thought gateway only checks against active backends because when user disables backends, e.g for deployment purpose, it should not go back to enabled status automatically. A...

> Instead of deactivating backends, we could switch to using the `TrinoQueueLengthRoutingTable` as default. This routing strategy will automatically ignore any backend that does not respond with the number of...

@willmostly >TestGatewayMultipleBackend uses the TrinoContainer from TestContainers for trino1 and trino2, which does not finish its startup() until SELECT 1 returns. So the health check should succeed. customBackend is a...

`did not find any cluster for the adhoc routing group` meaning the Trino clusters failed the healthchecks performed by Trino-Gateway and Trino-Gateway has internally treated the clusters as unhealthy. Some...

in that case you can add a log line in https://github.com/trinodb/trino-gateway/blob/d654094e9551a5f1d40a9eb631aff7e7590a79b8/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java#L240 to verify the ClusterStats are correct. Specifically, you want to check - the cluster indeed belongs to adhoc routing...

In the [documentation](https://trinodb.github.io/trino-gateway/routing-rules/?h=routing+rul#enabling-the-routing-rules-engine) it says `If there is error parsing the routing rules configuration file, an error is logged, and requests are routed using the routing group header X-Trino-Routing-Group as...