Git Product home page Git Product logo

Comments (2)

willmostly avatar willmostly commented on August 12, 2024

simplifies the extension of the routing function, facilitates testing and verification

This is needed, thank you!

The overall philosophy looks good to me. I like that the current architecture is a specialization of the more general architecture here, so that we can provide built in plugins to current users and avoid breaking changes.

The label concept is appealing, and should allow more sophisticated routing decisions. Have you considered taking a bit more inspiration from kubernetes and using taints? For example you could taint a cluster like taints: ['oneMinuteMaxExecution'], and a routing plugin could either decide that that select 1 can tolerate this, or the client could add a header like X-Trino-Gateway-Toleration: oneMinuteMaxExecution. Otoh, maybe labels are sufficiently powerful.

from trino-gateway.

Chaho12 avatar Chaho12 commented on August 12, 2024

How about a feature/requirement section that includes the following info.

Features

  • Block routing to backend on failure expected queries.
    • e.g) A repetition of failing query due to syntax/authorization error could be blocked in order to prevent unncessary connections from trino server to hive metastore/HDFS ranger in our case.
    • I know trino relies on connector's authentication, but we noticed that IDE or superset etc. executes lots of queries at once and creates lots of connections, which is not welcome to our hive metastore.
    • Also, we are planning to run explain and get statistics, and if query fails due to syntax error, there is no need to pass failure expected query onto backend.

from trino-gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.