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 B17A5200C5C for ; Thu, 20 Apr 2017 14:52:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AFFDA160B9F; Thu, 20 Apr 2017 12:52:30 +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 03901160B91 for ; Thu, 20 Apr 2017 14:52:29 +0200 (CEST) Received: (qmail 35431 invoked by uid 500); 20 Apr 2017 12:52:29 -0000 Mailing-List: contact users-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@nifi.apache.org Delivered-To: mailing list users@nifi.apache.org Received: (qmail 35420 invoked by uid 99); 20 Apr 2017 12:52:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 12:52:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B4B64CDA14 for ; Thu, 20 Apr 2017 12:52:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.335 X-Spam-Level: * X-Spam-Status: No, score=1.335 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, FREEMAIL_ENVFROM_END_DIGIT=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id X68nLK_QfjXL for ; Thu, 20 Apr 2017 12:52:24 +0000 (UTC) Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-oln040092009039.outbound.protection.outlook.com [40.92.9.39]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C2BE65F1D5 for ; Thu, 20 Apr 2017 12:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ixO+jdsnDRT5Pyc5xHHMEgWEd1MTbForIgNPQF/LbYA=; b=YfD/Mv7iPK5ZwCUtRWHNKn1J/2shQ49Otuf64itVXqb7ADa6+ojBal8l0dLqz8MfsUzZgOfav5yOxnfYwopod2rMHVR9LgIAL00ITFuih1afc4FnTodGYy8sQxjG/Ff+N/6+Rc8+72JScEKmT9DiQgMrSttuLOOjJo4N+BG1VRQB3vL+iJg3nqp8yfRCBQ++qx8704DKtlWEQJNok1Akd8uWw0+LOyWdNRiJm6n6D7whC28rnVgCa8kzd/5qQJO7e38/NF8V/Gws/trv5tzMbDzwa/a3rgQiwCAxB+0DqdYsJlhGx56fveiLVXq2CLoWHDo2j5/qJpo9isku5aCuqA== Received: from SN1NAM04FT033.eop-NAM04.prod.protection.outlook.com (10.152.88.58) by SN1NAM04HT075.eop-NAM04.prod.protection.outlook.com (10.152.89.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14; Thu, 20 Apr 2017 12:52:16 +0000 Received: from BLUPR15MB0435.namprd15.prod.outlook.com (10.152.88.59) by SN1NAM04FT033.mail.protection.outlook.com (10.152.88.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.9 via Frontend Transport; Thu, 20 Apr 2017 12:52:16 +0000 Received: from BLUPR15MB0435.namprd15.prod.outlook.com ([10.163.214.156]) by BLUPR15MB0435.namprd15.prod.outlook.com ([10.163.214.156]) with mapi id 15.01.1047.013; Thu, 20 Apr 2017 12:52:16 +0000 From: Mark Payne To: "users@nifi.apache.org" Subject: Re: Clustering Best Practices? Thread-Topic: Clustering Best Practices? Thread-Index: AQHSucV7uZ8jtNLb10u+SqpCMK5feaHONkqA Date: Thu, 20 Apr 2017 12:52:16 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nifi.apache.org; dkim=none (message not signed) header.d=none;nifi.apache.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:FB925C8F654F77A56102241DB29171486D99A552B5A879853091C553B01EBB17;UpperCasedChecksum:7A7F4F03EC2686353B533755AE9B80CBDA9C0B738B771F81F0FA98819778CE7A;SizeAsReceived:8007;Count:42 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1NAM04HT075;5:q1ZPWPjdeQ/DSCpbC16nDUeDbnVhpBXR7g0oD9L2AuAW7izOUcauvSDZ7gtQkcEXqaRZ0m6MNiVuldm9s9R+b7wh+2tKoghyILgw38ZQttIMUP+YxyPFtGBJYWR1LtIqxpZALra0OXZRPfV731k3FQ==;24:wQCeJt+5WkHpvd9NfwfCVLctZrPiOsPRe6GOQZq5kVlMXmHH0UpSuFLsndsDyT86nacub2q17I/TAG3ISiiDktU8c4d8mCXjVhosSR+V/1U=;7:V5zK5FAwl6Lyc5A51INFifXLf74s9XM6jFKO7CNv/0whqAFWDirROIIqCSicDOSsy1La1Lq9ZUmam91XAE8B7s2yjsErgUPn+pG87+cdk3usl9lgNaSlH/jYw/Bl4mG/smkBhXkv+axUd3wc48tXfCiGEvrQ8lwfABLCqnce4q32HahgJw48TZeSb6qTYIngS9v6yNesQfm+IFIz+09Wt6xzQwoKbI9d5OXpIco8eeVge5KLo7X/R1zzFHAjLtJF13f8pMdquXioGvM9twJ/WDlT1hlCxBF9tq1U20HKOPQ6p7YbScE8YdfyjnobKvvl x-incomingheadercount: 42 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:SN1NAM04HT075;H:BLUPR15MB0435.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: db7475ef-b6cc-4add-c53a-08d487ec0f56 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322274)(1603101448)(1601125374)(1701031045);SRVR:SN1NAM04HT075; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:SN1NAM04HT075;BCL:0;PCL:0;RULEID:;SRVR:SN1NAM04HT075; x-forefront-prvs: 02830F0362 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <642755A55A28D745B600ADC1F891959E@namprd15.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2017 12:52:16.4368 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT075 archived-at: Thu, 20 Apr 2017 12:52:30 -0000 Jim, I would offer you a few bits of advice. First, NiFi relies on ZooKeeper to = coordinate which node is responsible to act as the Cluster Coordinator and which node should be the Primary Node= . NiFi does allow you to start and embedded ZooKeeper, but for production use, it is recommended that you = use an external ZooKeeper running on different boxes. Secondly, the default timeouts used for clustering (the "nifi.cluster.node.= connection.timeout" and "nifi.cluster.node.read.timeout" properties in nifi.properties) are set to = 5 seconds. This is okay for a "getting started" type of cluster. However, if you start processing large numbers of FlowFile= s, the JVM's garbage collection can sometimes cause some fairly lengthy pauses. This could cause timeouts. So I would rec= ommend increasing that to 10-15 seconds or more. Finally, the "nifi.zookeeper.connect.timeout" and "nifi.zookeeper.session.t= imeout" default to 3 seconds, as this is what the ZooKeeper default is. However, I've heard some people indicate that the= y saw frequent ZooKeeper timeouts, which caused the Primary Node and Cluster Coordinator to change frequently. Changing the= value to 5 or 10 seconds was much better. Thanks -Mark > On Apr 20, 2017, at 7:01 AM, James McMahon wrote: >=20 > Good morning. I have established an initial single-threaded NiFi server i= nstance for my customers. It works well, but I anticipate increasing usage = as groups learn more about it. I also want to move beyond our single thread= ed-ness. >=20 > I would like to take the next step in the evolution of our NiFi capabilit= y, implementing a clustered NiFi server configuration to help me address th= e following requirements: > 1. increase our fault tolerance > 2. permit our configuration to scale to peak processing demands during bu= lk data loads and as more customers begin to leverage our NiFi instance > 3. permit our configuration to load balance >=20 > I do intend to begin by reading through the clustering sections in the Ni= Fi Sys Admin guide. I am also interested in hearing from our user community= , particularly regarding clustering "best practices" and practical insights= based on your experiences. Thanks in advance for any insights you are will= ing to share. -Jim