Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EDC2F200CE0 for ; Fri, 11 Aug 2017 02:28:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EC4A916C800; Fri, 11 Aug 2017 00:28:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3C8DC16C7FC for ; Fri, 11 Aug 2017 02:28:05 +0200 (CEST) Received: (qmail 40980 invoked by uid 500); 11 Aug 2017 00:28:04 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 40922 invoked by uid 99); 11 Aug 2017 00:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 00:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C44DAC18E4 for ; Fri, 11 Aug 2017 00:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kqP2dvcIM_tQ for ; Fri, 11 Aug 2017 00:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 520005FB43 for ; Fri, 11 Aug 2017 00:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 77D82E0DE3 for ; Fri, 11 Aug 2017 00:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 21E842415E for ; Fri, 11 Aug 2017 00:28:00 +0000 (UTC) Date: Fri, 11 Aug 2017 00:28:00 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-5716) Queue-based memory assignment for buffering operators MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 11 Aug 2017 00:28:06 -0000 Paul Rogers created DRILL-5716: ---------------------------------- Summary: Queue-based memory assignment for buffering operators Key: DRILL-5716 URL: https://issues.apache.org/jira/browse/DRILL-5716 Project: Apache Drill Issue Type: Improvement Affects Versions: 1.12.0 Reporter: Paul Rogers Assignee: Paul Rogers Apache Drill already has a queueing feature based on ZK semaphores. We did = a bit of testing to show that the feature does, in fact work. We propose t= o enhance the feature with some light revisions to make work with the "mana= ged" external sort and the newly-added spilling feature for the hash agg op= erator. The key requirement is to build on what we have for now; we may wan= t to tackle a larger project to create a more complete solution later. Existing functionality: * Two ZK-based queues called the =E2=80=9Csmall=E2=80=9D and =E2=80=9Clarge= =E2=80=9D query queues. * A threshold, call it T, given as a query cost, to determine the queue int= o which a query will go. * Admit levels for the two queues: call them Qs and Ql. Basically, when a query comes in: * Plan the query as usual. * Obtain the final query cost from the planner, call this C. * If C