Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 184CD185A7 for ; Tue, 17 Nov 2015 20:35:48 +0000 (UTC) Received: (qmail 39858 invoked by uid 500); 17 Nov 2015 20:35:48 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 39821 invoked by uid 500); 17 Nov 2015 20:35:47 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 39809 invoked by uid 99); 17 Nov 2015 20:35:47 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 20:35:47 +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 2D2D41A2896 for ; Tue, 17 Nov 2015 20:35:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.971 X-Spam-Level: X-Spam-Status: No, score=0.971 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id AZdR83_czXbN for ; Tue, 17 Nov 2015 20:35:35 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 04E3C441BA for ; Tue, 17 Nov 2015 20:35:34 +0000 (UTC) Received: (qmail 39649 invoked by uid 99); 17 Nov 2015 20:35:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 20:35:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6963AE02FF; Tue, 17 Nov 2015 20:35:34 +0000 (UTC) From: mikezaccardo To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org Message-ID: Subject: [GitHub] incubator-brooklyn pull request: Add quorum check enricher and agg... Content-Type: text/plain Date: Tue, 17 Nov 2015 20:35:34 +0000 (UTC) GitHub user mikezaccardo opened a pull request: https://github.com/apache/incubator-brooklyn/pull/1037 Add quorum check enricher and aggregator This addition enables the creation of a sensor, defined in YAML, to set its value based on whether a quorum of entities has has the necessary source sensor value. Example: ``` name: Quorum Check Test location: localhost services: - type: org.apache.brooklyn.entity.group.DynamicCluster name: Cluster brooklyn.config: initialSize: 5 memberSpec: $brooklyn:entitySpec: type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess name: Cluster Member brooklyn.enrichers: - type: org.apache.brooklyn.enricher.stock.Aggregator brooklyn.config: uniqueTag: service-all-is-up-aggregator enricher.transformation.untyped: "isQuorate" quorum.check.type: "allAndAtLeastOne" quorum.total.size: $brooklyn:config("cluster.initial.size") enricher.aggregator.excludeBlank: true enricher.aggregating.fromMembers: true enricher.sourceSensor: $brooklyn:sensor("service.isUp") enricher.targetSensor: $brooklyn:sensor("cluster.isQuorate") ``` This creates a `cluster.isQuorate` sensor whose value depends on whether a quorum of cluster members have `service.isUp` equal to true. In this example, all members must have a true value since `allAndAtLeastOne` is the specified `quorum.check.type`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/mikezaccardo/incubator-brooklyn quorum-check-enricher-aggregator Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-brooklyn/pull/1037.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1037 ---- commit 2a7eb77ec44ae5ac83850fb4cbff729295806238 Author: Mike Zaccardo Date: 2015-11-17T20:28:26Z Add quorum check enricher and aggregator ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---