Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF95819A20 for ; Thu, 14 Apr 2016 14:10:49 +0000 (UTC) Received: (qmail 79976 invoked by uid 500); 14 Apr 2016 14:10:49 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 79919 invoked by uid 500); 14 Apr 2016 14:10:49 -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 79907 invoked by uid 99); 14 Apr 2016 14:10:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 14:10:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5FCE1C0923 for ; Thu, 14 Apr 2016 14:10:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.43 X-Spam-Level: * X-Spam-Status: No, score=1.43 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id cB1wEJVBEItN for ; Thu, 14 Apr 2016 14:10:46 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id C7F4B5F39B for ; Thu, 14 Apr 2016 14:10:45 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id c126so110250008lfb.2 for ; Thu, 14 Apr 2016 07:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=3x4rAGqxz5yhHwcHpIk0CzNvMyI5z8bp/71jQdTePAc=; b=0KXlN7nixNKh70b3+T7pRNJCeKrd0yjrB7yMH5PtFSYKwA+84zC3D9LnNaaIvTq+tb VwWC0a1log3WuiQ6IdLDWq1LLpl36/wGYDAWzLEq3v3Y5b8UmytB4HteCvJvTFNLuNsy WLmnFBjE1AOh7i6yqIRVzB4zSrvQLmoN80otAM/2K2Ulvdyi6fkLnzKjU8z9pRFxCAUR OCR8EHVlvewmRGXq/gJqGXlBm/OvYIgIsP3yE7EwrWxWybA/g0dBOU79e6OlbbK7KN4l VBvMEPCgUZ30my7MEucLucpTmb3n9k21sqKVCLfO+s7Rw2kMNAZuVOg3+n3KD7fWZ1pi tHDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=3x4rAGqxz5yhHwcHpIk0CzNvMyI5z8bp/71jQdTePAc=; b=ijeRzPivj+gqcwawS3Mm8S07gYwS8tNrESALF2X45GHhyOLbH2pT1uSgpf8LpgWSuk dJ3HdlqiTRMywBV34hr0UTfPrzuCml51XzgL0v88yuPcj457Buk/i5WeNtYMLr1jRRib dKVwLhX8k7grz5MdfDPFua/NAYCclmYreL3Xxgbd9OUXa6Xy/9B8VjgsRE7m+1nth0+u RTAsQExu4HiKk+Q0Eo0zb0Olbnl+EsWeml4ibu54CfdB5RTiUyu1+LHshRwY9sYd13x2 DtjuMdyaA7PsZVfypbzY7ja2hKEo7wYy93vlVQIq3gx5P52bTTKlRciedCzYW7dfVepj al/Q== X-Gm-Message-State: AOPr4FXvEynTo57E3xqG+WZt8ORRSfcyEzJ8spiNWFs65i7z5WQTjBXsipI/7wLRNUvKPkMN4MrTEZsXm/RWjw== MIME-Version: 1.0 X-Received: by 10.25.150.207 with SMTP id y198mr6541635lfd.76.1460643045332; Thu, 14 Apr 2016 07:10:45 -0700 (PDT) Received: by 10.112.144.102 with HTTP; Thu, 14 Apr 2016 07:10:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Apr 2016 16:10:45 +0200 Message-ID: Subject: Re: Zookeeper mesos-master on different network From: Stefano Bianchi To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a11401cb2dc70650530727539 --001a11401cb2dc70650530727539 Content-Type: text/plain; charset=UTF-8 I tried with telnet and i have connection timed out, but i am able to connect trough SSH 2016-04-14 16:05 GMT+02:00 Stefano Bianchi : > Thanks for your reply Flavio. > Actually, i don't have a DNS, so i am foced to type hosts file, in which i > have set all the IP addrsses. > Of course for the note in Network B i have set the Floating IP of the > other 2 slaves in network A associated to their hostname. Actually i don't > know if it is correct, but at least if i make a ping from the slave in > Network B to a slave in A i obtain replies. and vice versa. > > 2016-04-14 15:55 GMT+02:00 Flavio Junqueira : > >> Have you made sure that a slave in net B is able to telnet or ssh to the >> leader machine in net A? Is it possible that the client port is blocker >> from B to A? >> >> -Flavio >> >> >> > On 14 Apr 2016, at 14:09, Stefano Bianchi wrote: >> > >> > Hi all >> > i'm working on OpenStack and i have build come virtual machines and 2 >> > different networks with it. >> > I have set two mesos clusters: >> > >> > NetworkA: >> > 2 mesos master >> > 2 mesos slaves >> > >> > NetworkB: >> > 1 mesos master >> > 1 mesos slave >> > >> > I should try to make and interconnection between these two clusters. >> > >> > I have set zookeeper configurations such that all 3 masters are >> competing >> > for he leadership. I show you the main configurations: >> > >> > NetworkA on both 2 masters: >> > >> > */etc/zookeeper/conf/zoo.cfg *: at the end of the file >> > >> > server.1=192.168.100.54:2888:3888 (master1 on network A) >> > >> > server.2=192.168.100.55:2888:3888 (master2 on network A) >> > >> > server.3=131.154.xxx.xxx:2888:3888 (Master3 on network B, i have set >> > floating IP) >> > >> > *etc/mesos/zk* >> > >> > zk://192.168.100.54:2181,192.168.100.55:2181,131.154.xxx.xxx:2181/mesos >> > >> > NetorkB: >> > >> > */etc/zookeeper/conf/zoo.cfg: at the end of the file:* >> > >> > server.1=131.154.96.27:2888:3888 (master1 on network A, i have set >> floating >> > IP) >> > >> > server.2=131.154.96.32:2888:3888 (master2 on network A, i have set >> floating >> > IP) >> > >> > server.3=192.168.10.11:2888:3888 (Master3 on network B) >> > >> > >> > *etc/mesos/zk:* >> > >> > zk://131.154.zzz.zzz:2181,131.154.yyy.yyy:2181,192.168.10.11:2181/mesos >> > >> > >> > the 3 masters seems to work fine, if i stop mesos-master service on one >> of >> > them, there is the rielection, so they are behaving as one single >> cluster >> > with 3 masters. >> > I have no problems with masters, but with slaves. >> > I have currenty set up slaves setting the /etc/mesos/zk exactly as i >> shown >> > above in a coherent way. >> > >> > Now the leader s one master which is on the Network A, and only the >> slaves >> > on Network A can connect to it, but i need to connect also the slave on >> the >> > other network. >> > Do you have suggestions? >> >> > --001a11401cb2dc70650530727539--