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 228DE200C6A for ; Wed, 19 Apr 2017 12:08:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 212C7160B94; Wed, 19 Apr 2017 10:08:23 +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 4B430160B86 for ; Wed, 19 Apr 2017 12:08:22 +0200 (CEST) Received: (qmail 34619 invoked by uid 500); 19 Apr 2017 10:08:21 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 34609 invoked by uid 99); 19 Apr 2017 10:08:21 -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; Wed, 19 Apr 2017 10:08:21 +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 05275C0040 for ; Wed, 19 Apr 2017 10:08:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.896 X-Spam-Level: X-Spam-Status: No, score=-0.896 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_H2=-2.796, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 8mmTJTL-NjbB for ; Wed, 19 Apr 2017 10:08:18 +0000 (UTC) Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 968155FB6A for ; Wed, 19 Apr 2017 10:08:17 +0000 (UTC) Received: by mail-ua0-f175.google.com with SMTP id f10so10932826uaa.2 for ; Wed, 19 Apr 2017 03:08:17 -0700 (PDT) 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=WY2ngu30SfS2E4RQeUR7LNEvl3u54bVScsg06Ftd1Gs=; b=rEINuaWdi41CRN2PqyZh0fxhi9mdjiaMeLiVdrtITre0ve80fpXp4XHnFxVWxDjTpr JU8qrUWdnsjjNuko51mamnKklDAWjlk4+Mu7lrPLxSR6ABRXbFVRucgr5FinenjYYUJc DyZPlm8pxd/7MWxlH+9xhIrHe/ICPysctBAaHI2EAGG0/Z4cQWkwn4/NfvBbsGZdMzKz Gc+hUHCkAZSoo3JgwphDh2JIouYQbBja/1yn6vCBpYhf9Q2efo8GtmUpcCWpChVrV8R1 iI9Bc617RI/RmC2Wxvbd07mNqbbAi9cqRmfg3rMm29J2pWiB3e9NH1spwmIccZ5usvS5 XrWg== 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=WY2ngu30SfS2E4RQeUR7LNEvl3u54bVScsg06Ftd1Gs=; b=TUJundskJ+Vex5sLeqkmVecgy762msZK/dsU+ru5dUgwue2f1mBPb5uyU1L+Y3zdl6 8OxHyyPjj4BG1zbVmTkAlbT/RwSMp2Fje8phlPObFb49KrDbLaqIW5wGsqK+znjFYlgP e+Np5C0wZuV6y3YW/EAZnIWs1ZuSJg51RD1QmEr6iQCcQbHa0VFV8Ma3BBcFS4s9xT/u 7jZTxqDDYhBYZUb0PgRtpOtdvRbPawqWFEmICcN6M+LCIZpj9mPfcuRDg7mub/0RGTzz k2p4mZTITRrdbJRBiIk7ya53QRwkdIDrwDqWpoUpBhzrC5YGMgX3nxQpXhCCus9Q3PiC 3VZQ== X-Gm-Message-State: AN3rC/5gDKO/3SmfYVLdY7KSICcHjZBoJb07Ss+voEz16jFXQ6YIwZ8S UitYqjiymRWD5UVA5ATcXYWwYeTOCfLb X-Received: by 10.31.115.130 with SMTP id o124mr778180vkc.59.1492596496374; Wed, 19 Apr 2017 03:08:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.7.136 with HTTP; Wed, 19 Apr 2017 03:08:16 -0700 (PDT) In-Reply-To: <1492595732705-12071.post@n6.nabble.com> References: <1492595732705-12071.post@n6.nabble.com> From: Andrey Mashenkov Date: Wed, 19 Apr 2017 13:08:16 +0300 Message-ID: Subject: Re: Use of Ignition.allGrids() To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c14c862f5a4cf054d8233f0 archived-at: Wed, 19 Apr 2017 10:08:23 -0000 --94eb2c14c862f5a4cf054d8233f0 Content-Type: text/plain; charset=UTF-8 Hi, There are number of methods with confising names. Actually, gridName means ignite instance name. It will be fixed in 2.0 release. 1. Ignition.allGrids() return local JVM node instances. If you need all cluster nodes, see Ignite.cluster() method. 2. Both of you nodes belongs to same cluster as they found each other via DiscoverySPI. By default, cache is created in PARTITIONED mode and its data distributed among grid nodes. That is why one nodes see cache created on other node. If you need to create separate grids then DiscoverySPI should be configured with certain IpFinder. See [1] for details. [1] https://apacheignite.readme.io/docs/clustering On Wed, Apr 19, 2017 at 12:55 PM, jpmoore40 wrote: > Hi, > > I'm a bit confused about the purpose of the Ignition.allGrids() method, and > how also the naming of grids using the IgniteConfiguration works. > > I started a node using Ignition.getOrStart() with an IgniteConfiguration > with name set to grid1, then create a cache and add some values to it. I > then start a second node with name grid2. In the process for this second > node I call Ignition.allGrids() which returns a single Ignite grid instance > with name grid2. That grid instance contains the cache I created in the > first process. > > So my questions are: > > 1. Why does allGrids() not return two instances, one for grid1 and one for > grid2? > 2. Why does the grid2 instance contain the cache when it was created in > grid1. > > I assumes that the grid name was to allow you to create separate > partitioned > grids and that the caches would only be available in the grid in which they > are created, but this doesn't seem to be the case. So I'm not sure what the > purpose of the grid name or the allGrids() method is (since it only ever > seems to return the current instance). > > Thanks > Jon > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Use-of-Ignition-allGrids-tp12071.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Best regards, Andrey V. Mashenkov --94eb2c14c862f5a4cf054d8233f0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

There are number of methods with co= nfising names.=C2=A0 Actually, gridName means ignite instance name. It will= be fixed in 2.0 release.

1. Ignition.allGrids() r= eturn local JVM node instances. If you need all cluster=C2=A0nodes, see Ign= ite.cluster() method.
2. Both of you nodes belongs to same cluste= r as they found each other via DiscoverySPI.=C2=A0
By default, ca= che is created in PARTITIONED mode and its data distributed among grid node= s. That is why one nodes see cache created on other node.

If you need to create separate grids then DiscoverySPI should be co= nfigured with certain IpFinder. See [1] for details.

[1]=C2=A0http= s://apacheignite.readme.io/docs/clustering


On Wed, Apr 19, 201= 7 at 12:55 PM, jpmoore40 <jonathan.moore@ca-cib.com>= wrote:
Hi,

I'm a bit confused about the purpose of the Ignition.allGrids() method,= and
how also the naming of grids using the IgniteConfiguration works.

I started a=C2=A0 node using Ignition.getOrStart() with an IgniteConfigurat= ion
with name set to grid1, then create a cache and add some values to it. I then start a second node with name grid2. In the process for this second node I call Ignition.allGrids() which returns a single Ignite grid instance=
with name grid2. That grid instance contains the cache I created in the
first process.

So my questions are:

1. Why does allGrids() not return two instances, one for grid1 and one for<= br> grid2?
2. Why does the grid2 instance contain the cache when it was created in
grid1.

I assumes that the grid name was to allow you to create separate partitione= d
grids and that the caches would only be available in the grid in which they=
are created, but this doesn't seem to be the case. So I'm not sure = what the
purpose of the grid name or the allGrids() method is (since it only ever seems to return the current instance).

Thanks
Jon



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Use-of-Ignition-allGrids-tp12071.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
Best regards,
Andrey V. Mashenkov
--94eb2c14c862f5a4cf054d8233f0--