trinodb / trino-gateway

https://trinodb.github.io/trino-gateway/
Apache License 2.0
122 stars 47 forks source link

Trino UI home page flickering stats between engines when Gateway is used with multiple engines #355

Open jack-o-hara opened 1 month ago

jack-o-hara commented 1 month ago

When Gateway is used to view the UI and there is more than one engine with default routing - the Trino UI will change every 0.5ish seconds to display the stats for a different engine.

Trino UI is making a request to Gateway for engine stats every 0.5s and it is being routed to a different engine each time. This makes the UI home page fairly difficult to use.

output

Perhaps this is an issue better suited to the Trino repository - I wasn't sure where best to place it as there are probably multiple solutions.

Chaho12 commented 3 weeks ago

To make things clear first, I have few questions regarding your gif.

  1. The url that you took this screenshot is https://your-trino-gateway-url.com/ui right?
  2. Both trino backends is set as adhoc?
jack-o-hara commented 3 weeks ago
  1. Correct
  2. Correct
Chaho12 commented 3 weeks ago

Well as of now, the routing is not 100% perfect in Trino Web UI (resources is not routing well)