Skip to content

Trino Gateway module QueryCountBasedRouterProvider not working properly #682

@Dens1002

Description

@Dens1002

Recently I've implemented the aforementioned load balancing module in my team's trino gateway instance, having set all of the parameters according to the documentation: I've set the backendStateSecret, with a user and password that have access to our DB, monitorType is set to JDBC, taskDelaySeconds to 10 and of course the module itself is listed under the matching configuration. Now, the pod does run, but the only log I get is "ActiveClusterMonitor is getting stats for all active clusters" over and over again. And when I try to connect to the gateway through a python script I get the error: "RouterException: did not find any cluster for the adhoc routing group". We do have an adhoc group defined in our routing rules, and I did check that there is an yaml file within the pod with our routing rules, but the gateway seems to not be able to access it somehow. We've been having a bit of a hard debugging this issue, I don't know whether the problem lies in the fact that the routing rules are being ignored or if the connection details provided in the backendStateSecret are not being used. Any help or clarity is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions