From user-return-12422-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Thu Dec 12 15:15:11 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E5D7818061A for ; Thu, 12 Dec 2019 16:15:10 +0100 (CET) Received: (qmail 94762 invoked by uid 500); 12 Dec 2019 15:15:09 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 94749 invoked by uid 99); 12 Dec 2019 15:15:09 -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; Thu, 12 Dec 2019 15:15:09 +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 8BB9A1A3354 for ; Thu, 12 Dec 2019 15:15:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.259 X-Spam-Level: X-Spam-Status: No, score=0.259 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.25, KAM_DMARC_STATUS=0.01, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QJdHMCgeia3e for ; Thu, 12 Dec 2019 15:15:02 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.46; helo=mail-wm1-f46.google.com; envelope-from=flavio.junqueira@gmail.com; receiver= Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 96AB8BC533 for ; Thu, 12 Dec 2019 15:15:02 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id a5so2778119wmb.0 for ; Thu, 12 Dec 2019 07:15:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=R1GR03cEPggcxOU28EBv+ao//aZ6/6Yo9FfW/y9KHlc=; b=to/uzBUi9ZbpAkXjLMKZdHBXLUMJikVbZMwszRosyiVCi+pVnsBs8d8TZPzqu6MsO6 nPND4+Irj2JulyRE32kW5UGkku86KJ4ozb3I2t43B7YNirQWgIxiBdte9Dmp6ktV3b0F 2B+MTuR1aqgSlvdprQCQKaGdjRakH+YzFdQb1s5MFZvVJmSru8PcOFLmVMZoN32pgr8Y UwizZOhEpJbj3zF8QcDcG3lhY3CTKimlIZ45g1gBBh1DOO15X0CC5DPSQhjuaGUudiW2 eeNBQsZGT2SEXKCltYrMIke9fz7L3R1IWba53gXkTwzH7VS/y+eK8ZP4M4ryTpeetyCK uW+Q== X-Gm-Message-State: APjAAAVURzLACvdP3NI5yHM1lLVNCgco4SobIS1znsNcdCw/8EvuWVbQ yqrv/+3+UWCBvHsXtka5WegQSKoE X-Google-Smtp-Source: APXvYqyl45CGWPSYHhgWNzGB5FuNrlaA0Ge9ra0Q1ua35iT/BAv+r/2r1eyZODRLjnJrTiDDoKYYNA== X-Received: by 2002:a05:600c:257:: with SMTP id 23mr7174231wmj.123.1576163701576; Thu, 12 Dec 2019 07:15:01 -0800 (PST) Received: from [192.168.1.36] (77.red-88-7-216.staticip.rima-tde.net. [88.7.216.77]) by smtp.gmail.com with ESMTPSA id r15sm6298837wmh.21.2019.12.12.07.15.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Dec 2019 07:15:01 -0800 (PST) From: Flavio Junqueira Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: quorum.cnxn.threads.size Date: Thu, 12 Dec 2019 16:14:59 +0100 References: To: user@zookeeper.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.104.11) If it is just logging the value of the property, then it is fine because = the property is set, but it is not used if SASL is disabled. -Flavio > On 12 Dec 2019, at 16:01, rammohan ganapavarapu = wrote: >=20 > Flavio, >=20 > Thanks for clarification, I have a cluster with sasl disabled but in = start > up log I still see number of threads set to default 20. >=20 > Thanks, > Ram > On Thu, Dec 12, 2019, 6:43 AM Flavio Junqueira wrote: >=20 >> Hi Ram, >>=20 >> Yes, this parameter is only applicable when SASL is enabled, see in >> QuorumCnxManager#initializeAuth how it doesn't have a chance to use = the >> parameter when SASL is disabled. >>=20 >> Your assessment is correct about it being based on the number of >> participants, excluding observers. This parameter is used in >> QuorumCnxManager, which manages connections for leader election, and >> observers do not participate in the election. >>=20 >> -Flavio >>=20 >>> On 12 Dec 2019, at 14:41, rammohan ganapavarapu = >> wrote: >>>=20 >>> Any idea? >>>=20 >>> On Wed, Dec 11, 2019, 2:23 PM rammohan ganapavarapu < >> rammohanganap@gmail.com> >>> wrote: >>>=20 >>>> And to add more on the same property, the description says >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> *"For example, consider a 3-node cluster,# during quorum formation = at >>>> least 3 outgoing connection requests and 3 incoming connection# = requests >>>> will occur. So total 6 threads will be used. It is recommended to >> configure >>>> 2x# number of threads for smooth execution, where 'x' represents = the >>>> cluster size"* >>>>=20 >>>> Here* cluster size* is number of *followers* right not both = followers >> and >>>> observers?? >>>>=20 >>>> Ram >>>>=20 >>>> On Wed, Dec 11, 2019 at 2:19 PM rammohan ganapavarapu < >>>> rammohanganap@gmail.com> wrote: >>>>=20 >>>>> Is this property only applicable in case of sasl auth enabled? or = does >> it >>>>> work even when we turn off authentication? >>>>>=20 >>>>>=20 >>>>> *quorum.cnxn.threads.size* >>>>>=20 >>>>> Thanks, >>>>> Ram >>>>>=20 >>>>=20 >>=20 >>=20