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 1BA1B200BEE for ; Sat, 31 Dec 2016 09:23:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 096AC160B28; Sat, 31 Dec 2016 08:23:37 +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 2AAC2160B16 for ; Sat, 31 Dec 2016 09:23:36 +0100 (CET) Received: (qmail 14852 invoked by uid 500); 31 Dec 2016 08:23:35 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 14840 invoked by uid 99); 31 Dec 2016 08:23:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Dec 2016 08:23:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 18A40C0A27 for ; Sat, 31 Dec 2016 08:23:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YM8Pv9tZuYty for ; Sat, 31 Dec 2016 08:23:31 +0000 (UTC) Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8E9435F46F for ; Sat, 31 Dec 2016 08:23:31 +0000 (UTC) Received: by mail-ua0-f169.google.com with SMTP id v2so93450119uac.2 for ; Sat, 31 Dec 2016 00:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=LzrG7Fw4pDDReDabzth3qCqYJGojA5qKELZgNyi54VM=; b=W6jfhDoqBKB6tIMw1jfjDexW/IhifgBx5AX5B93uGE57ttgMy6ejB2zTq34PQY9N8W P4rgT+CVLKQV7koDDE54SnHxFw605iw+d7bV+mHNmx0/WvyI6g7TCjSyTctykXZHPtJ6 1XT8YWxUDcfm7PU70kFHmQNeHB0XlHVPxn+sQ0RY1V+xa/ztA/JqsuzNKi8lvKQw32Ps rTVh65Dwp9xSK4WFeAA734gY+F/JCZEUm0FCnVBvT+11OBox2BxumlSkd8aCVF8hvuwX D3UBbydZj8zFSbqbPF7UXAPbNjgori7UBXUv8PizpZjs8vAZAqLfOwjenYPZ1opAico+ a81A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=LzrG7Fw4pDDReDabzth3qCqYJGojA5qKELZgNyi54VM=; b=tAtSQTimg9aS3byvfL1Lk7PVdS5XhzWcLm/Pay23jAHvUwbX4yUu5ugnai+mdBc4wq Pq4+5TCCZShdCHditS3pbbe53Kjd6U2n8gSIVHo+LYSJfbwd0GFzOPscEs1cgJN9FzAN xGD4BFAyExFkx0XRsUCFfsLcZWS/rih7RnbLJDwgf2/PtOYr+hIQazC51JtGrlXDIM3c NsbXQVdqGr0D6rp2MdxzdolK+pvIXs+oEvrHVTxi0L+l1d9ZcPP3ulxeFCE12/Lh7+zc +B7Za7g0jMWF/wGuwFIZTFFIDJk3ulB8yRe205szAEekD7aab2fFVbscyp4ZKbXwI5Ss BErg== X-Gm-Message-State: AIkVDXL8TsCqRGQCiirhcWS+CLH5tD/HdYZAw64qHYI3TT3srhKwqLeyvlYRBYTX9Dy2Ao6ByD8BkUWDp/MX2w== X-Received: by 10.176.85.139 with SMTP id v11mr29078937uaa.7.1483172599012; Sat, 31 Dec 2016 00:23:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.177.205 with HTTP; Sat, 31 Dec 2016 00:23:18 -0800 (PST) Received: by 10.31.177.205 with HTTP; Sat, 31 Dec 2016 00:23:18 -0800 (PST) In-Reply-To: References: <1483095204638-13451.post@n4.nabble.com> <5663DBA5-DF2E-4D2E-ABFF-22D5E1DFB8FC@apache.org> <2009F2EB-E108-4B34-B297-1ABF67EB2FC7@apache.org> <49C2B265-D66F-41B4-827D-686CFB989205@apache.org> <7DA871AD-2CC0-49F3-BB37-320F88840481@apache.org> From: Alexander Fedotov Date: Sat, 31 Dec 2016 11:23:18 +0300 Message-ID: Subject: Re: IgniteConfiguration.gridName is very confusing To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=f403045e286ee7a2ec0544f007fe archived-at: Sat, 31 Dec 2016 08:23:37 -0000 --f403045e286ee7a2ec0544f007fe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Okay. From the all said above I suppose "instanceName" should work for IgniteConfiguration and "igniteInstanceName" in all other places. Regards, Alexander 31 =D0=B4=D0=B5=D0=BA. 2016 =D0=B3. 3:43 AM =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7= =D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Dmitriy Setrakyan" < dsetrakyan@apache.org> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: It sounds like it must be unique then. I would propose the following: 1. If user defines the instanceName, then we assign it to the node. 2. If user does not define the instance name, then we have to give it some unique value, like node ID or PID. Will this change be backward compatible, or should we leave it as null if user does not define it? D. On Fri, Dec 30, 2016 at 4:19 PM, Denis Magda wrote: > Sounds reasonable. Agree that 'instanceName' suits better considering you= r > explanation. > > -- > Denis > > On Friday, December 30, 2016, Valentin Kulichenko < > valentin.kulichenko@gmail.com> wrote: > > This name identifies instance of Ignite, in case there are more than on= e > > within an application. Here are our API methods around this: > > > > // We provide a name and get newly started *Ignite* instance. > > Ignite ignite =3D Ignition.start(new > IgniteConfiguration().setGridName(name)); > > > > // We provide a name and get existing *Ignite* instance. > > Ignite ignite =3D Ignition.ignite(name); > > > > This has nothing to do with nodes. For node representation we have > > ClusterNode API, which already has nodeId() method for identification. > > > > In other words, if we choose nodeName, we will have both nodeName and > > nodeId in the product, but with absolutely different meaning and used i= n > > different parts of API. How user is going to understand the difference > > between them? In my view, this is even more confusing than current > gridName. > > > > -Val > > > > On Fri, Dec 30, 2016 at 2:42 PM, Denis Magda > wrote: > > > >> Alexander, frankly speaking I'm still for your original proposal - > >> nodeName. The uniqueness specificities can be set in the doc. > >> > >> -- > >> Denis > >> > >> On Friday, December 30, 2016, Alexander Fedotov < > >> alexander.fedotoff@gmail.com> wrote: > >> > Well, then may be we should go with one of the below names: > >> > > >> > processNodeName > >> > jvmNodeName > >> > runtimeNodeName > >> > processScopedNodeName > >> > jvmScopedNodeName > >> > runtimeScopedNodeName > >> > processWideNodeName > >> > jvmWideNodeName > >> > runtimeWideNodeName > >> > > >> > Regards, > >> > Alexander > >> > > >> > 31 =D0=B4=D0=B5=D0=BA. 2016 =D0=B3. 12:37 AM =D0=BF=D0=BE=D0=BB=D1= =8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Denis Magda" < > dmagda@apache.org> > >> > =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > >> > > >> > The parameter specifies a node name which has to be unique per JVM > >> process > >> > (if you start multiple nodes in a single process). In my understanding > it > >> > was mainly introduced to handle these multiple-nodes-per-JVM > scenarios. > >> > > >> > However, several nodes can have the same name cluster wide. > >> > > >> > =E2=80=94 > >> > Denis > >> > > >> > > >> >> On Dec 30, 2016, at 1:30 PM, Dmitriy Setrakyan < > dsetrakyan@apache.org> > >> > wrote: > >> >> > >> >> Now I am confused. What is the purpose of this configuration > parameter? > >> >> > >> >> On Fri, Dec 30, 2016 at 1:15 PM, Denis Magda > wrote: > >> >> > >> >>> See Val=E2=80=99s concern in the discussion. I=E2=80=99m absolutel= y fine with > >> =E2=80=98nodeName=E2=80=99. > >> >>> > >> >>> =E2=80=94 > >> >>> Denis > >> >>> > >> >>>> On Dec 30, 2016, at 1:13 PM, Dmitriy Setrakyan < > dsetrakyan@apache.org > >> > > >> >>> wrote: > >> >>>> > >> >>>> On Fri, Dec 30, 2016 at 1:12 PM, Denis Magda > >> wrote: > >> >>>> > >> >>>>> What=E2=80=99s about =E2=80=98localNodeName=E2=80=99? > >> >>>>> > >> >>>> > >> >>>> Why is it better than "nodeName"? Isn't it obvious that the name is > >> for > >> >>> the > >> >>>> local node? > >> >>> > >> >>> > >> > > >> > > > --f403045e286ee7a2ec0544f007fe--