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 00A15200D56 for ; Tue, 28 Nov 2017 04:14:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F379E160C14; Tue, 28 Nov 2017 03:14:04 +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 4513B160C13 for ; Tue, 28 Nov 2017 04:14:04 +0100 (CET) Received: (qmail 34068 invoked by uid 500); 28 Nov 2017 03:14:03 -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 34059 invoked by uid 99); 28 Nov 2017 03:14:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2017 03:14:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 630DB1A1009 for ; Tue, 28 Nov 2017 03:14:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id C7vR8SzEWdZ8 for ; Tue, 28 Nov 2017 03:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D43EC5F21E for ; Tue, 28 Nov 2017 03:14:00 +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 50863E0295 for ; Tue, 28 Nov 2017 03:14: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 0C321241BE for ; Tue, 28 Nov 2017 03:14:00 +0000 (UTC) Date: Tue, 28 Nov 2017 03:14:00 +0000 (UTC) From: "Benjamin Mahler (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MESOS-8237) Mesos injects Resource.allocation_info for all resource offers, regardless of MULTI_ROLE opt-in MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Nov 2017 03:14:05 -0000 [ https://issues.apache.org/jira/browse/MESOS-8237?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Mahler updated MESOS-8237: ----------------------------------- Sprint: Mesosphere Sprint 69 > Mesos injects Resource.allocation_info for all resource offers, regardles= s of MULTI_ROLE opt-in > -------------------------------------------------------------------------= ---------------------- > > Key: MESOS-8237 > URL: https://issues.apache.org/jira/browse/MESOS-8237 > Project: Mesos > Issue Type: Bug > Reporter: James DeFelice > Assignee: Benjamin Mahler > Labels: mesosphere > > In support of MULTI_ROLE capable frameworks, a Resource.allocation_info f= ield was added and the Resource math of the Mesos library was updated to ch= eck for matching allocation_info when checking for (in)equality, addability= , subtractability, containment, etc. To compensate for these changes, the d= emo frameworks of Mesos were updated to set the allocation_info for Resourc= e objects during the "matching phase" in which offers' resources are evalua= ted in order for the framework to launch tasks. The Mesos demo frameworks N= EEDED to be updated because the Resource algebra within Mesos now depended = on matching allocation_info fields of Resource objects when executing algeb= raic operations. See https://github.com/apache/mesos/commit/c20744a9976b5e8= 3698e9c6062218abb4d2e6b25#diff-298cc6a77862b7ff3422cd06c215ef28R91 . > This poses a unique problem for **external** libraries that both aim to s= upport various frameworks, some that DO and some that DO NOT opt-in to the = MULTI_ROLE capability; specifically those external libraries that implement= Resource algebra that's consistent with what Mesos implements internally. = One such example of a library is mesos-go, though there are undoubtedly oth= ers. The problem can be explained via this scenario:=20 > {quote} > Flo's mesos-go framework is running well, it doesn't opt-in to MULTI_ROLE= because it doesn't need multiple roles. His framework runs on a version of= Mesos that existed prior to integration of MULTI_ROLE support. His DC oper= ator upgrades the mesos cluster to the latest version. Flo rebuilds his fra= mework on the latest version of mesos-go and re-launches it on the cluster.= He observes that his framework receives offers, but rejects ALL of them. D= igging into the code he realizes that Mesos is injecting allocation_info in= to Resource objects being offered to his framework, and mesos-go considers = allocation_info when comparing Resource objects (because it's MULTI_ROLE co= mpatible now), but his framework doesn't take this into consideration when = preparing its own Resource objects prior to the "resource matching phase". = The consequence is that Flo's framework is trying to match against Resource= s that will never align because his framework isn't setting an allocation_i= nfo that might possibly match the allocation_info that Mesos is always inje= cting - regardless of the MULTI_ROLE capability (or lack thereof in this ca= se) of his framework. > {quote} > If Mesos were to strip the allocation_info from Resource objects, prior t= o offering them to non-multi-role frameworks, then the problem illustrated = above would go away. -- This message was sent by Atlassian JIRA (v6.4.14#64029)