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 11452200D0B for ; Wed, 13 Sep 2017 07:44:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 107ED1609C8; Wed, 13 Sep 2017 05:44:52 +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 2E99C1609B4 for ; Wed, 13 Sep 2017 07:44:51 +0200 (CEST) Received: (qmail 46651 invoked by uid 500); 13 Sep 2017 05:44:49 -0000 Mailing-List: contact dev-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list dev@openwhisk.apache.org Received: (qmail 46639 invoked by uid 99); 13 Sep 2017 05:44:49 -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; Wed, 13 Sep 2017 05:44:49 +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 E8881185639 for ; Wed, 13 Sep 2017 05:44:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=adobe.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id QPaVg1OCEEic for ; Wed, 13 Sep 2017 05:44:47 +0000 (UTC) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0050.outbound.protection.outlook.com [104.47.33.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F1BE25FD42 for ; Wed, 13 Sep 2017 05:44:46 +0000 (UTC) Received: from CY4PR02MB2391.namprd02.prod.outlook.com (10.169.182.17) by CY4PR02MB2470.namprd02.prod.outlook.com (10.173.38.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Wed, 13 Sep 2017 05:44:39 +0000 Received: from CY4PR02MB2391.namprd02.prod.outlook.com ([10.169.182.17]) by CY4PR02MB2391.namprd02.prod.outlook.com ([10.169.182.17]) with mapi id 15.20.0056.010; Wed, 13 Sep 2017 05:44:39 +0000 From: Tyson Norris To: "dev@openwhisk.apache.org" Subject: PR feedback for SPIs Thread-Topic: PR feedback for SPIs Thread-Index: AQHTLFNjFDRIOWO8zkG6Xy9c9JHl4Q== Date: Wed, 13 Sep 2017 05:44:39 +0000 Message-ID: <0DEC1B2C-B547-421F-AE58-EE2023F4AF0F@adobe.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3273) authentication-results: spf=none (sender IP is ) smtp.mailfrom=tnorris@adobe.com; x-originating-ip: [12.219.142.39] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR02MB2470;6:OquE6+QXSwg5DozNHlguv8a6/qZYNNFAWOVeC2p0TOscMroJ6uikoq2Vo7Wz3fT8Lwz58gbAQ2sFhTTzqvHekUZHaufz1fhRjsn/MhKShngeR+B409zk0+2DonRJY2XpcOYr136c/EG9JINeXPnmnzfYn4oIi6bjnzyplPeIYO8nD7DAXaqU70dw1nFebfckIROQonUWiqiuW+K1J2iZaKmoxUqKOT5Wkiw5ElrDynAZsxWhAmV3XC8MyHHWUbHRnVf/G2medGEtJmgZD0xXewXymYY4o+X3eOz7kOi72N6Fq1hExfpkwR8j5HO+isifw2ukxuAQSfI/ydjBVCCQWw==;5:ParYwcuFjn/E+kTa1EZAR1Dcr42i2jveYzEUadd5TkdF0F2H6bZD67qi6B4eZTzUxyHXE4fFMwTr+9I4YZG4qNQAxcdKkAn0tVqwuh7N4/FDZGecZl0aYAMflLenVmiHKsN4se1BOMqPmNmVxbv3yw==;24:SN0OdJmAGpM3oqMEplkSeS4vopfMooK+fTFOq8aCs3ucqbi8DpR7QWw90mnhHjW4mutfUVOXWoeaERqrYZxsuY03XfZLQ+64EW7XFTocNBI=;7:a3UeMud98njK8rRTSA05bSEbN75NrM4o43109Fs2B0BDH5sjLt+Z3tK7dmbhZUANOuNwxyImB9ClY9Mu6g21mG8zBHnxiky6I72l4pbz3sjcr2kGM4fJTvabTxyMdAtWndALzNMJSBsZsiH5qt5RduvSGfcEPnW3K5dLPzty0CUzXugSKVp1mQfa9pIyL8Fj/89DcZI8CN8DfKUDD2VuUHqDfD2wPKX6iq3w/vwOF64= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: e5fd1e1f-e214-422b-c92a-08d4fa6a8682 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY4PR02MB2470; x-ms-traffictypediagnostic: CY4PR02MB2470: x-exchange-antispam-report-test: UriScan:(166708455590820); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR02MB2470;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR02MB2470; x-forefront-prvs: 042957ACD7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(346002)(366002)(376002)(51874003)(199003)(189002)(606006)(81166006)(53936002)(6486002)(236005)(6306002)(83716003)(54896002)(2906002)(6512007)(110136004)(57306001)(14454004)(1730700003)(316002)(7736002)(99286003)(97736004)(81156014)(6916009)(50226002)(8936002)(2351001)(2501003)(3480700004)(8676002)(189998001)(101416001)(50986999)(77096006)(82746002)(6116002)(3846002)(966005)(105586002)(5660300001)(6506006)(68736007)(102836003)(10090500001)(3280700002)(66066001)(6436002)(36756003)(3660700001)(106356001)(25786009)(478600001)(2900100001)(5640700003)(33656002)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR02MB2470;H:CY4PR02MB2391.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_0DEC1B2CB547421FAE58EE2023F4AF0Fadobecom_" MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2017 05:44:39.4403 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB2470 archived-at: Wed, 13 Sep 2017 05:44:52 -0000 --_000_0DEC1B2CB547421FAE58EE2023F4AF0Fadobecom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi - Following SPI PRs need feedback (in order) , as interested people have time= : - LoadBalancer SPI - https://github.com/apache/incubator-openwhisk/pull/258= 4 - delegates loadbalancer creation to the SPI - Multiple LoadBalancers SPI - https://github.com/apache/incubator-openwhis= k/pull/2668 - allows multiple load balancers, loaded via the previous SPI, = resolved per action via LoadBalancerResolver; allows either single loadbala= ncer (current behavior) or kind based loadbalancer (config maps action kind= s to a specific loadbalancer); this will allow things like latency sensitiv= e actions routing to containers directly while latency insensitive actions = route via Kafka, etc. Relies on previous - ContainerFactory SPI - https://github.com/apache/incubator-openwhisk/pull= /2659 - delegates container instantiation to an SPI; Affected areas are Inv= okerReactive; also moved the dependent classes (Container et al) to common/= scala, to allow for other cases (e.g. controller causes container launch, e= tc); TBD: checking maxActiveContainers and maxPoolSize should be part of th= is SPI too, but currently are not. (e.g. maxActiveContainers may be dynami= c with some cluster managers) - LogStore SPI - https://github.com/apache/incubator-openwhisk/pull/2695 - = enables log collection to be delegated to an decoupled system (instead of c= onsuming cycles within the invoker JVM); Affected areas are ContainerProxy = (log collection delegates to the SPI), RestAPIs (delegate log retrieval to = the SPI), and ContainerFactory impls (delegate docker run --log-opt paramet= ers to the SPI); still needs some cleanup (WIP). Relies on ContainerFactory= , mostly since it organizes Container classes around the ones moved to comm= on/scala Building on these some upcoming additions include: - direct LoadBalancer - allow controller to route actions directly to share= d containers (i.e. to support better throughput with fewer containers, if t= he action supports it, via multiple loadbalancers - one for kafka+invoker r= outing, and one for direct container routing) - mesos ContainerFactory - to support launching containers in a mesos clust= er (run more containers with fewer, or just 1, invokers per cluster, since = the invoker has access to the entire mesos cluster for container launching) Let me know via comments in PR (or on dev list) if you have questions on th= ese. Thanks in advance for feedback! Best Tyson --_000_0DEC1B2CB547421FAE58EE2023F4AF0Fadobecom_--