From user-return-23886-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Dec 28 01:18:28 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 63DE01807A6 for ; Fri, 28 Dec 2018 01:18:26 +0100 (CET) Received: (qmail 6409 invoked by uid 500); 28 Dec 2018 00:18:25 -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 6399 invoked by uid 99); 28 Dec 2018 00:18:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Dec 2018 00:18:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D3B8E180D81 for ; Fri, 28 Dec 2018 00:18:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.798 X-Spam-Level: * X-Spam-Status: No, score=1.798 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZrrbKg58Chca for ; Fri, 28 Dec 2018 00:18:23 +0000 (UTC) Received: from mail-it1-f172.google.com (mail-it1-f172.google.com [209.85.166.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A6CB760E49 for ; Fri, 28 Dec 2018 00:18:22 +0000 (UTC) Received: by mail-it1-f172.google.com with SMTP id m62so26490892ith.5 for ; Thu, 27 Dec 2018 16:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Khh1hBiuU3AIAQZQE2vpk7zlUAdHUOr79XwIlAmIa7k=; b=iAWAtPsFmrgkCyXv8L5dwJebM5F7wtYok685MpxvT1Xp0VFpJPRsp5jIE+8wrA9F+K EwIFHqK5o8EbMY7zSM9G1/Av6IhJ+KkweqaPtIik87PmNU3e1rNfxSH3WVGhH30eeM84 9OP3tUqDaXVxRHtf8waN2mgSMxjKef/sZQxLqaltqSoRbIjEfjpQ+Pf+vLEePJF4LxqV mVA9qnmflsngN9PQVBBzYl7Faad35rgFA0vfDYwkbMAfO3BLe/1W/YXAaEjo5bfgnspR VausRRojIxGZrl1yy2vtf77Uuju5tYRy+ti2z4Bd1nvozr3NcxWf95pOILyBLIdiFqVt M2Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Khh1hBiuU3AIAQZQE2vpk7zlUAdHUOr79XwIlAmIa7k=; b=TPehZlSOk9hA+KjGK8zpMXet2sEWKBE85ryEsNER8te6nU+p9ma50vL16Y33lkKXBZ xUJODPetvJB0IKJmjJS+gnHc0yXUv66O0EqNCRnDFmAZFLw/jlx8mtIxumMCtTA1QzUi z2ed/CHKZ3Z+qqiwJ5BZ9uRpxJ1MQv3WBR/35EizIPz9R95EUotQY0qVu+TWAhIK6QJK Ne2NZ5njINYwY8bgzjjoSLcMZJSGAIPHRmr0Bqw+Ah6aAUZdbUmxSa2XPQioTfaboG/0 GqwoQTZbLxDCS9VXeFpj2pJYdzNxPWWgFhi/+vlo9TGCJFghk4ImvAVjulXZmE2zmjnC 9j1A== X-Gm-Message-State: AA+aEWZouP/XOt40MfDHcaiFvlAgjI+H2lDoc+ClgWDdylMK9Jcv+WXC LkVS/gdE6v1oDsj9KEsgP2VnjsQMXxlnevMVtwXEwANg X-Google-Smtp-Source: AFSGD/X3nnstsNi1cAQYrbIRar2g/EIFzGFA//UaofNffBehwhXNdu53BNURQt+bdG0MlS6QjT4a9J+SgxQsEI7DU3E= X-Received: by 2002:a24:e38f:: with SMTP id d137mr15498925ith.69.1545956301311; Thu, 27 Dec 2018 16:18:21 -0800 (PST) MIME-Version: 1.0 References: <1545932267853-0.post@n6.nabble.com> In-Reply-To: <1545932267853-0.post@n6.nabble.com> From: Evgenii Zhuravlev Date: Thu, 27 Dec 2018 16:18:09 -0800 Message-ID: Subject: Re: Ignite Remote Node To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="0000000000002d91cb057e0a0002" --0000000000002d91cb057e0a0002 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, By default, Ignite uses TcpDiscoveryMulticastIpFinder, which means that nodes can be connected to each other even without configuring certain IP addresses. You can use TcpDiscoveryVmIpFinder instead, it will try to connect only to the pre-configured addresses. TcpDiscoverySpi discovery =3D new TcpDiscoverySpi().setIpFinder(new TcpDiscoveryVmIpFinder().setAddresses(Collections.singleton("127.0.0.1:4750= 0 ..47509"))); Evgenii =D1=87=D1=82, 27 =D0=B4=D0=B5=D0=BA. 2018 =D0=B3. =D0=B2 09:37, Skollur : > Hello > > I have upgraded my code from Apache ignite version 2.6 to 2.7. I am runni= ng > two server nodes in two different machines. However after upgrade, notice= d > that these two server nodes joined. Log shows as servers=3D2, state=3DACT= IVE. > > Based on previous suggestion, I have commented out TCPDiscoverSPI and sti= ll > see server nodes are joined in 2.7 version. How to make sure server nodes > runs in one machine and not joining with remote (stand alone)? > > IgniteConfiguration cfg =3D new IgniteConfiguration(); > cfg.setIgniteInstanceName("testdb"); > > /*TcpDiscoverySpi discovery =3D new TcpDiscoverySpi(); > > > discovery.setLocalAddress(IPClusterConfigInitialize.IpClusterConfig().get= Property("ipClusterConfig")); > discovery.setLocalPort(new > Integer(IPClusterConfigInitialize.IpClusterConfig().getProperty("port")))= ; > cfg.setDiscoverySpi(discovery);*/ > > cfg.setPeerClassLoadingEnabled(false); > > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > --0000000000002d91cb057e0a0002 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

By defau= lt, Ignite uses=C2=A0TcpDiscoveryMulticastIpFinder,= which means that nodes can be connected to each other even without configu= ring certain IP addresses. You can use=C2=A0TcpDiscoveryVmIpFinder instead, it wil= l try to connect only to the pre-configured addresses.

TcpDiscoverySpi discovery =3D new TcpDiscoverySpi().setIpFinder(new TcpDiscoveryVmIpFinder().setAddress= es(Collections.singleton("127.0.0= .1:47500..47509")));

Evgenii
=

=D1=87=D1=82, 27 =D0=B4=D0=B5=D0=BA. 2018 =D0=B3. =D0=B2 09:= 37, Skollur <Skollur@idbny.com&= gt;:
Hello

I have upgraded my code from Apache ignite version 2.6 to 2.7. I am running=
two server nodes in two different machines. However after upgrade, noticed<= br> that these two server nodes joined. Log shows as servers=3D2, state=3DACTIV= E.

Based on previous suggestion, I have commented out TCPDiscoverSPI and still=
see server nodes are joined in 2.7 version. How to make sure server nodes runs in one machine and not joining with remote (stand alone)?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 IgniteConfiguration cfg =3D new IgniteConfigura= tion();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cfg.setIgniteInstanceName("testdb");<= br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 /*TcpDiscoverySpi discovery =3D new TcpDiscover= ySpi();

discovery.setLocalAddress(IPClusterConfigInitialize.IpClusterConfig().getPr= operty("ipClusterConfig"));
=C2=A0 =C2=A0 =C2=A0 =C2=A0 discovery.setLocalPort(new
Integer(IPClusterConfigInitialize.IpClusterConfig().getProperty("port&= quot;)));
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cfg.setDiscoverySpi(discovery);*/

=C2=A0 =C2=A0 =C2=A0 =C2=A0 cfg.setPeerClassLoadingEnabled(false);





--
Sent from: http://apache-ignite-users.70518.x6.nabbl= e.com/
--0000000000002d91cb057e0a0002--