Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74C9B188B9 for ; Fri, 11 Mar 2016 22:53:30 +0000 (UTC) Received: (qmail 50099 invoked by uid 500); 11 Mar 2016 22:53:30 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 50053 invoked by uid 500); 11 Mar 2016 22:53:30 -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 50042 invoked by uid 99); 11 Mar 2016 22:53:30 -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; Fri, 11 Mar 2016 22:53:30 +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 E280EC0DAB for ; Fri, 11 Mar 2016 22:53:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.173 X-Spam-Level: **** X-Spam-Status: No, score=4.173 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, KAM_BADIPHTTP=2, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx2-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 V_PT8b58m-_2 for ; Fri, 11 Mar 2016 22:53:28 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id AE7D25F1BE for ; Fri, 11 Mar 2016 22:53:27 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id E01A322C122C for ; Fri, 11 Mar 2016 14:44:14 -0800 (PST) Date: Fri, 11 Mar 2016 14:40:44 -0800 (PST) From: vkulichenko To: user@ignite.apache.org Message-ID: <1457736044555-3464.post@n6.nabble.com> In-Reply-To: References: Subject: Re: Connecting Amazon cluster with client from local MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Alper, That's a tricky question :) This is possible to achieve if you implement AddressResolver that will map private address to public address and provide it in the configuration (IgniteConfiguration.setAddressResolver). This will add public address to node attributes, and client node will know how to connect. On Amazon you can use the special metadata URL [1] to get the public address. See [2] for more details. [1] http://169.254.169.254/latest/meta-data/public-ipv4 [2] http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html In addition Ignite currently requires bi-directional connection even between client and server, i.e. server has to be able to establish TCP connection with client. This means that if your client is behind NAT (which is often the case), you will have to provide proper address resolver there as well, and configure port forwarding on the router. This is something that should be seriously improved from usability standpoint, I will create a ticket. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Connecting-Amazon-cluster-with-client-from-local-tp3453p3464.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.