Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2698

Add allocation policy for (direct memory) limits per-query-per-node

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.0
    • Future
    • Execution - Flow
    • None

    Description

      We want the allocator to support a policy that limits memory allocation per-query-per-node. Current policy is to divide the available direct memory by the number of fragments running on a node, and limit each fragment to that. This new policy would count fragments that belong to the same query and are running on the same node together. So, if query A has 3 fragments running on a node, and query B has 5 fragments running on the same node, and there are no other queries with fragments on that node, then there are two queries running on the node, and their allocation limit is the available direct memory divided by two. (Under the original policy, which divides the available memory by the number of fragments, A would be allowed 3/8 of the memory, and B would be allowed 5/8 of the memory.)

      Note that this policy should be a user-settable boot-time option; the original policy would still also be available as an option.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cwestin Chris Westin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: