Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1596

Document queryThresholdInSecs and allow functionality to ensure user queries take no longer than a specified interval

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 7.5
    • Server
    • None

      In the teiid documentation there is no mention (from what I can find) of exactly what the option queryThresholdInSecs does. The xml file states "Long running query threshold, after which a alert can be generated by tooling if configured", what tooling is this exactly? Does it alert and stop the query, or just alert?

      On the same token, there is the configuration item maxSourceRows which is configured per instance. Unfortunately this isn't flexible enough sometimes, and it would be better if this option could be configured per VDB and per data role as well (some people can get more data than others).

      I would expect the determination of what maxSourceRows is for a query should be as follows

      1) If maxSourceRows is set for the data role the user has, use that (in the case of two data roles with different values, use the largest value)
      2) If maxSourceRows is not set on any of the users data role, but set on the vdb, use that value
      3) If maxSourceRows is not set on the vdb or any data roles the user has, use the instance setting.

      Likewise, the setting maxSourceRows should not only be configurable per data role, vdb, instance, but also the setting queryThresholdInSecs, and either that option or another option should be put in place that allows us to hard limit the length of time a query can run. This is because in teiid we want to be able to say users cannot write a big huge query that will take more than X amount of seconds to execute, to stop someone in teiid giving it a huge query and hammering all the backend databases. Configuring this option by vdb and data role (as some people are more trusted and can run longer queries) would be fantastic.

            rhn-engineering-shawkins Steven Hawkins
            graeme.gillies Graeme Gillies (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: