Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FF1618FAB for ; Thu, 9 Jul 2015 08:37:06 +0000 (UTC) Received: (qmail 43310 invoked by uid 500); 9 Jul 2015 08:37:06 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 43276 invoked by uid 500); 9 Jul 2015 08:37:06 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 43261 invoked by uid 99); 9 Jul 2015 08:37:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 08:37:06 +0000 Date: Thu, 9 Jul 2015 08:37:06 +0000 (UTC) From: "Roman Bielik (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9748) Can't see other nodes when using multiple network interfaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620125#comment-14620125 ] Roman Bielik commented on CASSANDRA-9748: ----------------------------------------- 10.0.1.x = DC1 subnet 10.0.2.x = DC2 subnet 192.168.24.x = shared (public) network, all nodes can see each other here *Node 1 (DC1)* IP: 192.168.24.151 (eth0), 10.0.1.1 (eth2) $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 192.168.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2 0.0.0.0 192.168.24.254 0.0.0.0 UG 0 0 0 eth0 $ ip route list 10.0.1.0/24 dev eth2 proto kernel scope link src 10.0.1.1 192.168.24.0/22 dev eth0 proto kernel scope link src 192.168.24.151 169.254.0.0/16 dev eth0 scope link metric 1002 169.254.0.0/16 dev eth2 scope link metric 1003 default via 192.168.24.254 dev eth0 *Node 2 (DC1)* IP: 192.168.24.152 (eth0), 10.0.1.2 (eth2) $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 192.168.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2 0.0.0.0 192.168.24.254 0.0.0.0 UG 0 0 0 eth0 $ ip route list 10.0.1.0/24 dev eth2 proto kernel scope link src 10.0.1.2 192.168.24.0/22 dev eth0 proto kernel scope link src 192.168.24.152 169.254.0.0/16 dev eth0 scope link metric 1002 169.254.0.0/16 dev eth2 scope link metric 1003 default via 192.168.24.254 dev eth0 *Node3 (DC2)* IP: 192.168.24.153 (eth0), 10.0.2.1 (eth2) $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 192.168.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2 0.0.0.0 192.168.24.254 0.0.0.0 UG 0 0 0 eth0 $ ip route list 10.0.2.0/24 dev eth2 proto kernel scope link src 10.0.2.1 192.168.24.0/22 dev eth0 proto kernel scope link src 192.168.24.153 169.254.0.0/16 dev eth0 scope link metric 1002 169.254.0.0/16 dev eth2 scope link metric 1003 default via 192.168.24.254 dev eth0 *Node4 (DC2)* IP: 192.168.24.154 (eth0), 10.0.2.2 (eth2) $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 192.168.24.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2 0.0.0.0 192.168.24.254 0.0.0.0 UG 0 0 0 eth0 $ ip route list 10.0.2.0/24 dev eth2 proto kernel scope link src 10.0.2.2 192.168.24.0/22 dev eth0 proto kernel scope link src 192.168.24.154 169.254.0.0/16 dev eth0 scope link metric 1002 169.254.0.0/16 dev eth2 scope link metric 1003 default via 192.168.24.254 dev eth0 > Can't see other nodes when using multiple network interfaces > ------------------------------------------------------------ > > Key: CASSANDRA-9748 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9748 > Project: Cassandra > Issue Type: Bug > Environment: Cassandra 2.0.16; multi-DC configuration > Reporter: Roman Bielik > > The idea is to setup a multi-DC environment across 2 different networks based on the following configuration recommendations: > http://docs.datastax.com/en/cassandra/2.0/cassandra/configuration/configMultiNetworks.html > Each node has 2 network interfaces. One used as a private network (DC1: 10.0.1.x and DC2: 10.0.2.x). The second one a "public" network where all nodes can see each other (this one has a higher latency). > Using the following settings in cassandra.yaml: > *seeds:* public IP (same as used in broadcast_address) > *listen_address:* private IP > *broadcast_address:* public IP > *rpc_address:* 0.0.0.0 > *endpoint_snitch:* GossipingPropertyFileSnitch > _(tried different combinations with no luck)_ > No firewall and no SSL/encryption used. > The problem is that nodes do not see each other (a gossip problem I guess). The nodetool ring/status shows only the local node but not the other ones (even from the same DC). > When I set listen_address to public IP, then everything works fine, but that is not the required configuration. > _Note: Not using EC2 cloud!_ > netstat -anp | grep -E "(7199|9160|9042|7000)" > tcp 0 0 0.0.0.0:7199 0.0.0.0:* LISTEN 3587/java > tcp 0 0 10.0.1.1:9160 0.0.0.0:* LISTEN 3587/java > tcp 0 0 10.0.1.1:9042 0.0.0.0:* LISTEN 3587/java > tcp 0 0 10.0.1.1:7000 0.0.0.0:* LISTEN 3587/java > tcp 0 0 127.0.0.1:7199 127.0.0.1:52874 ESTABLISHED 3587/java > tcp 0 0 10.0.1.1:7199 10.0.1.1:39650 ESTABLISHED 3587/java -- This message was sent by Atlassian JIRA (v6.3.4#6332)