Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-47

Make user able to set statement level resource usage.

    XMLWordPrintableJSON

Details

    Description

      SET STATEMENT_VSEG_MEM=memory_units
      SET STATEMENT_NVSEG=<integer>
      memory_units ::= 128mb|256mb|512mb|1024mb|1gb|2gb|4gb|8gb|16gb

      Resource manager will try to reserve expected resource for current statement execution. The default value of STATEMENT_NVSEG is 0, which means the statement level setting is not activated, when STATEMENT_NVSEG is greater than zero, STATEMENT_MEM overrides the resource queue virtual segment resource quota. Memory core ratio derived by resource queue hierarchy and cluster capacity.

      If the expected resource specified by STATEMENT_MEM and STATEMENT_NVSEG can not be satisfied due to various reason, the session is timed out.

      Yi Jin <yjin@pivotal.io>
      Oct 8 (5 days ago)

      to Lei, Jiali, Amy
      1) If the expected resource specified by STATEMENT_MEM and STATEMENT_NVSEG can not be satisfied due to queue capacity limits, the error is reported at once, the session is aborted;

      2) The setting of statement level resource may cause different query plan generated; (Change code for passing this into optimizer??)

      3) If the expected resource can not be satisfied by the other various reasons, the session is timed out.

      Attachments

        Activity

          People

            yjin Yi Jin
            yjin Yi Jin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 120h
                120h
                Remaining:
                Remaining Estimate - 120h
                120h
                Logged:
                Time Spent - Not Specified
                Not Specified