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 E109F200D6A for ; Sat, 16 Dec 2017 00:48:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DF34E160C27; Fri, 15 Dec 2017 23:48: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 310F8160C14 for ; Sat, 16 Dec 2017 00:48:05 +0100 (CET) Received: (qmail 81222 invoked by uid 500); 15 Dec 2017 23:48:04 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 81209 invoked by uid 99); 15 Dec 2017 23:48:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2017 23:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EAB461809F9 for ; Fri, 15 Dec 2017 23:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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=[RCVD_IN_DNSWL_NONE=-0.0001, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id jlZjV64zm8Cg for ; Fri, 15 Dec 2017 23:48:03 +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 882C25FACF for ; Fri, 15 Dec 2017 23:48: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 D1577E0F55 for ; Fri, 15 Dec 2017 23:48: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 22A3E27409 for ; Fri, 15 Dec 2017 23:48:00 +0000 (UTC) Date: Fri, 15 Dec 2017 23:48:00 +0000 (UTC) From: "Meng Zhu (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MESOS-8339) Quota headroom may be insufficiently held when role has more reservation than quota. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Dec 2017 23:48:06 -0000 Meng Zhu created MESOS-8339: ------------------------------- Summary: Quota headroom may be insufficiently held when role has more reservation than quota. Key: MESOS-8339 URL: https://issues.apache.org/jira/browse/MESOS-8339 Project: Mesos Issue Type: Bug Components: allocation Reporter: Meng Zhu If a role has more reservation than its quota, the current quota headroom calculation is insufficient in guaranteeing quota allocation. Consider, role `A` with 100 (units of resource, same below) reservation and 10 quota and role `B` with no reservation and 90 quota. Let's say there is no allocation yet. The existing allocator would calculate that the required headroom is 100. And since unallocated quota role reserved resource is also 100, no additional resources would be held back for the headroom. While role `A` would have no problem getting its quota satisfied. Role `B` may have difficulty getting any resources because the "headroom" can only be allocated to `A`. The solution is to calculate per-role headroom before aggregating the quantity. And unallocated reservations should not count towards quota headroom. In the above case. The headroom for role `A` should be zero, the headroom for role `B` should be 90. Thus the aggregated headroom will be `90`. -- This message was sent by Atlassian JIRA (v6.4.14#64029)