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 A0B98200D42 for ; Fri, 17 Nov 2017 10:52:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9EC99160BFB; Fri, 17 Nov 2017 09:52:49 +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 E2EB4160BF8 for ; Fri, 17 Nov 2017 10:52:48 +0100 (CET) Received: (qmail 58930 invoked by uid 500); 17 Nov 2017 09:52:48 -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 58918 invoked by uid 99); 17 Nov 2017 09:52:47 -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, 17 Nov 2017 09:52:47 +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 EE058180871 for ; Fri, 17 Nov 2017 09:52:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.129 X-Spam-Level: ** X-Spam-Status: No, score=2.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 O-MpbpEfcTpl for ; Fri, 17 Nov 2017 09:52:44 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8B7E45FD01 for ; Fri, 17 Nov 2017 09:52:44 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id b7so1325683vkh.12 for ; Fri, 17 Nov 2017 01:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=51fL/ZvmdrFancoocAnnpV/LbfyuCBd/JD2P9AE3h2w=; b=QQM+E0VL44CJfm8POjO0sIjml0TYaKgJcQr6WyaktQ0RD97sFqEA3v9i/gzhfWXq5x gaUjVTxrz64pgeGcVnbGlFOFPGbFgVxP5NagcCHBiDVxMxY4boxBjW5i0aYUKigVUyeu YugjdY8ih2uo3HGcDeuZYnTHdkOQn6+yzt17FruRqUZpvdjef8WAC38lAHxpf1QHU7L9 Ixvyn6bfzDNvQRR4uavv5zOVlaFTzMhggF7M9cjcK+c1aTdKcUhz4VhBhOWKHteEDUOX VNtfCXWUoyBVRCXZVVj0BbiQAEeyv4F2/+RQT87QFtBD7Eg8IGMxoawhmUhuyd8OfKWp 3aBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=51fL/ZvmdrFancoocAnnpV/LbfyuCBd/JD2P9AE3h2w=; b=FqZbNt/AHANN6ReRI8Oe9Ko4A25Nmn9A3CaEKn+uR0Uxo5+q5uogu9cGrVSBkN3u74 i8U/eVbJzvXXIiCRKzePC/12qsqU2DveTYUlpfe4zHQtFCrbSWUlAKrpTQcv6jUzcp0y 6SbwhedANp4jbN+lugfQLgiKS9ts9D9eBofRHiCoKw/YV63z3ZzoBfG6g0Tcb3I6vU86 DcC/ISJSxqE/17oCQt5Xop3ghlgxgClz9wWroFof0uD2knYhtZ/lT3w5RL5/xj2vkBXI SrDK0WZWb2hN9ddit0Kml9OotiJkR5bnvDneE+yTHdzyuIXSHlP9Xi9QffLCZEiET6O0 WGlg== X-Gm-Message-State: AJaThX6h5Ks5CG0I7e+OxFO3lcz6xnRsdbhHUlQwu+ljyeUbX0Z4NjXb bThcyc0zgF9aNbz20QWNhN/b5LgpWDUwYKUPJ+Q= X-Google-Smtp-Source: AGs4zMbp5Mu4Hl7QL4mTp3H6jD0dRxuFlnntQRz6OfzYDGxA7C5ERDECAy1LY6/O1feZN/Sys7UZvymah7VS2dVtdnE= X-Received: by 10.31.160.73 with SMTP id j70mr3464453vke.155.1510912363775; Fri, 17 Nov 2017 01:52:43 -0800 (PST) MIME-Version: 1.0 References: <19124675-062A-48C2-AAC2-87A26B9D0FAE@gmail.com> In-Reply-To: <19124675-062A-48C2-AAC2-87A26B9D0FAE@gmail.com> From: Carlos Santana Date: Fri, 17 Nov 2017 09:52:32 +0000 Message-ID: Subject: Re: proposal to remove trigger activations when no rules are matched To: dev@openwhisk.apache.org Content-Type: multipart/alternative; boundary="001a1142680cbad080055e2ab273" archived-at: Fri, 17 Nov 2017 09:52:49 -0000 --001a1142680cbad080055e2ab273 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable +1 to Rodric=E2=80=99s proposal Making the controller do waist work and backend save data for useless is not good. James what Steven proposed is a very simple way to test a trigger when you get started. Also what Rodric is proposing would allowed what you requested to have event causality meaning we would record in action activation which trigger activated the action. On Thu, Nov 16, 2017 at 6:50 AM Stephen Fink wrote= : > I=E2=80=99d propose we simply document a best practice that if you want t= o observe > trigger firings, hook up the trigger to an echo action. > > SJF > > > On Nov 16, 2017, at 6:48 AM, James Thomas wrote: > > > > On 14 November 2017 at 19:47, Rodric Rabbah wrote: > >> Today we create activation records for triggers regardless of a matchi= ng > >> rule. This can lead to many trigger activations that are not actually > doing > >> anything useful. The system incurs the cost of creating the activation > >> record and no actions are run. > > > > As a user, I do find it useful to see trigger activations, even when > > I've not yet attached a rule. It helps me see I've set up the trigger > > feed correctly, with the event parameters being logged. > > It would be more difficult if I could only check the activations by > > creating a "no-op" action to attach. > > > > What would happen with rules that are disabled? > > > > If this issue is happening for triggers, would future load from other > > invocations (actions, rules) eventually encounter the same issue? > > > > I can understand trigger invocations will be a significant load on the > > backend, as people leave old triggers connected to feeds. Removing > > this does make the "developer experience" worse IMO. It'll be a > > trade-off between this and performance unless there's a more scalable > > way to manage the activation records. > > > > > >> I'd like to consider this as a first step as part of a larger item tha= t > can > >> be encompassed by > https://github.com/apache/incubator-openwhisk/issues/512. > >> > >> A subsequent step that I'd like to propose is to eliminate the separat= e > >> rule activation record. Instead, the controller should record the > matched > >> rules in the trigger activation record (either as synthetic logs akin = to > >> sequences or as annotations) along with the activation ids of all caus= ed > >> invocations. Currently there is no visibility to the client in terms o= f > the > >> activations ids that are caused by a rule, and this leads to a poor us= er > >> experience. > > > > This sounds good. > > > > -- > > Regards, > > James Thomas > > --001a1142680cbad080055e2ab273--