trino-gateway
trino-gateway copied to clipboard
Centralize the place to log unhealthy clusters
Description
As different routing rules are implemented, routingManager.updateBackEndStats
method could be overridden. An example is https://github.com/trinodb/trino-gateway/blob/c052bb237450d7fc2f2f7af1b06f7fc8f4cdee48/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java#L238-L241
Therefore, it will be more useful to log unhealthy clusters at ActiveClusterMonitor
level instead of RoutingManager
level
Additional context and related issues
Release notes
(X) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. ( ) Release notes are required, with the following suggested text:
*