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 ADA6C2009A0 for ; Sat, 21 May 2016 14:17:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AC502160A02; Sat, 21 May 2016 12:17:16 +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 00601160A01 for ; Sat, 21 May 2016 14:17:15 +0200 (CEST) Received: (qmail 1786 invoked by uid 500); 21 May 2016 12:17:15 -0000 Mailing-List: contact dev-help@gearpump.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gearpump.incubator.apache.org Delivered-To: mailing list dev@gearpump.incubator.apache.org Received: (qmail 1775 invoked by uid 99); 21 May 2016 12:17:15 -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; Sat, 21 May 2016 12:17:15 +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 CF5DA1A0740 for ; Sat, 21 May 2016 12:17:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] 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 f5mMGkdYIfua for ; Sat, 21 May 2016 12:17:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 9BD185F298 for ; Sat, 21 May 2016 12:17:13 +0000 (UTC) Received: (qmail 1176 invoked by uid 99); 21 May 2016 12:17:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 May 2016 12:17:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E3A1F2C033A for ; Sat, 21 May 2016 12:17:12 +0000 (UTC) Date: Sat, 21 May 2016 12:17:12 +0000 (UTC) From: "Karol Brejna (JIRA)" To: dev@gearpump.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEARPUMP-149) Binding tasks to workers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 21 May 2016 12:17:16 -0000 [ https://issues.apache.org/jira/browse/GEARPUMP-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294986#comment-15294986 ] Karol Brejna commented on GEARPUMP-149: --------------------------------------- Another rationale: I've created a cluster - master and worker on PC (default config), a worker on raspi (less memory, less slots). When deploying a DAG, the master "avoids" creating an executor on raspi. It prefers "stronger" worker. If we had "binding" mechanism, we could force the task to be ran on raspi. > Binding tasks to workers > ------------------------ > > Key: GEARPUMP-149 > URL: https://issues.apache.org/jira/browse/GEARPUMP-149 > Project: Apache Gearpump > Issue Type: Improvement > Reporter: Karol Brejna > Priority: Minor > > Let's assume that we have a cluster with some "specialized" nodes (for example a worker on IoT device that is responsible for controlling some actuators, dedicated workers to achieve data locality, some hardware specific - mem/cpu - tasks, etc.). > There should be a way to "hint" Gearpump to prefer some nodes (workers) over others for certain tasks (executors). > We already have "localities" feature. Developer can add a configuration (when submitting the application) to bind a task with a worker: > {code} > gearpump { > streaming { > localities { > app1: { //This is the application name to be submitted > workerId: [ //The worker id where to launch Task0_0 and Task0_1 > TaskId(0,0), TaskId(0,1) > ] > } > } > } > } > {code} > The problem is: users have no idea what each Task's task ID is (especially if there are lots of nodes in a DAG). > We could introduce more flexible "binding" mechanism, for example labeling tasks and workers or using some other "awareness" algorithm. -- This message was sent by Atlassian JIRA (v6.3.4#6332)