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 4A2CA200D24 for ; Tue, 24 Oct 2017 14:27:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4894E160BE0; Tue, 24 Oct 2017 12:27:47 +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 67F4D160BDB for ; Tue, 24 Oct 2017 14:27:46 +0200 (CEST) Received: (qmail 50382 invoked by uid 500); 24 Oct 2017 12:27:44 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 50366 invoked by uid 99); 24 Oct 2017 12:27:44 -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; Tue, 24 Oct 2017 12:27:44 +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 DE583C4F81 for ; Tue, 24 Oct 2017 12:27:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.4 X-Spam-Level: X-Spam-Status: No, score=-0.4 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.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UJu3iADEKrvt for ; Tue, 24 Oct 2017 12:27:41 +0000 (UTC) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D804D5F3E1 for ; Tue, 24 Oct 2017 12:27:40 +0000 (UTC) Received: by mail-io0-f177.google.com with SMTP id 97so23642619iok.7 for ; Tue, 24 Oct 2017 05:27:40 -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=f52YU7YVpzhSIw3LuVM/USx3f4J0/DSLAWhadoMyQqg=; b=k2b5RfTK35Um7qdfOC97vkxqowg7bySGlSinqCevZ6f2Gykp0o+UJZDECVJqH20LUp GnpQ6LnS0r0MzJBA1gYfG7BRYX5XHIAfJtJ36xHrHLT0k30ZXmlDQCoPjGpcp8upOILf +flxJBridKBNPWrWF44TpKmgZI6ycNKEA5agmDprnBTMrAk734EG4DiySBzK/9DKFyQT M7w48jRIPcOXj8w6Pmrzd+pzRhcBmb+345ClX/2F5PzZa7m7ivTi5/G38S4TlXWYsSjR znMSp23cFyjlc4UmphUKkdyR2JLj9PqIZz26TW5rbVJKae+u9YStbgrwjYOxBn3rbE2O l5NQ== 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=f52YU7YVpzhSIw3LuVM/USx3f4J0/DSLAWhadoMyQqg=; b=D49dMENutqt3IxuD1a3SOZYIA3jlJYMlNL3MF6y5UPBtRqNb4uySBg5l6dg3Dyh+HX 1bXldXJ6/NiAPU8+YADN5UcsXqG7XgDCZCZXUkJCMfqeLA2v1WjLRVqNc5FWZdDOiPIA flL/OZqzIy2lqDc9L/gp9DzuIgBjAn5uw790WyF7hGLy64SX0V8jxiLrLcO1531GiOmx fWNhP1xoIiCpzWCBxHiWmPC0VRpYaE5Ndd8dtD3FkZJu1q0wwcU3C2WNb0eWpoaAAmmx 0vafI5EpvFbb0bWmZqH0eZAfKqoMGvcB407Ikjq5NHFC4owVFzloXKPMiTsMUo56mJA6 /7+Q== X-Gm-Message-State: AMCzsaU1HjmkQ1WToQH9ou4UCMJbDTfbWHxEOfAsS6hwSMbxUg5y97aL Sr4Hj/esGJYxX+3mK/le2aMoItQYaKUv4dpgyW8= X-Google-Smtp-Source: ABhQp+Q0XMBDpgQ/GbQ8DkgdGLTcJdVrfPQzvQyRBTYy1m20dz4urzhnL/wlSVP9TBVSXvsno983jwJCQk48z6LDwoM= X-Received: by 10.107.38.79 with SMTP id m76mr21725448iom.187.1508848053788; Tue, 24 Oct 2017 05:27:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.41.205 with HTTP; Tue, 24 Oct 2017 05:27:33 -0700 (PDT) In-Reply-To: References: From: shalom sagges Date: Tue, 24 Oct 2017 15:27:33 +0300 Message-ID: Subject: Re: Adding a New Node To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary="001a113da8284425ba055c4a1007" archived-at: Tue, 24 Oct 2017 12:27:47 -0000 --001a113da8284425ba055c4a1007 Content-Type: text/plain; charset="UTF-8" Thanks Kurt! That sorted things in my head. Much appreciated! On Tue, Oct 24, 2017 at 12:29 PM, kurt greaves wrote: > Your node shouldn't show up in DC1 in nodetool status from the other > nodes, this implies a configuration problem. Sounds like you haven't added > the new node to all the existing nodes cassandra-topology.properties file. > You don't need to do a rolling restart with PropertyFileSnitch, it should > reload the cassandra-topology.properties file automatically every 5 seconds. > > With GPFS each node only needs to know about its own topology settings in > cassandra-rackdc.properties, so the problem you point out in 2 goes away, > as when adding a node you only need to specify its configuration and that > will be propagated to the rest of the cluster through gossip. > > On 24 October 2017 at 07:13, shalom sagges wrote: > >> Hi Everyone, >> >> I have 2 DCs (v2.0.14) with the following topology.properties: >> >> DC1: >> xxx11=DC1:RAC1 >> xxx12=DC1:RAC1 >> xxx13=DC1:RAC1 >> xxx14=DC1:RAC1 >> xxx15=DC1:RAC1 >> >> >> DC2: >> yyy11=DC2:RAC1 >> yyy12=DC2:RAC1 >> yyy13=DC2:RAC1 >> yyy14=DC2:RAC1 >> yyy15=DC2:RAC1 >> >> >> # default for unknown nodes >> default=DC1:RAC1 >> >> Now let's say that I want to add a new node yyy16 to DC2, and I've added >> yyy16 to the topology properties file only on that specific node. >> >> What I saw is that during bootstrap, the new node is receiving data only >> from DC2 nodes (which is what I want), but nodetool status on other nodes >> shows that it was joining to DC1 (which is the default DC for unknown >> nodes). >> >> So I have a few questions on this matter: >> >> 1) What are the implications of such a bootstrap, where the joining node >> actually gets data from nodes in the right DC, but all nodes see it in the >> default DC when running nodetool status? >> >> 2) I know that I must change the topology.properties file on all nodes to >> be the same. If I do that, do I need to perform a rolling restart on all of >> the cluster before each bootstrap (which is a real pain for large clusters)? >> >> 3) Regarding the Snitch, the docs say that the recommended snitch in >> Production is the GossipingPropertyFileSnitch with >> cassandra-rackdc.properties file. >> What's the difference between the GossipingPropertyFileSnitchand and the >> PropertyFileSnitch? >> I currently use PropertyFileSnitch and cassandra-topology.properties. >> >> >> Thanks! >> >> >> >> >> >> > --001a113da8284425ba055c4a1007 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Kurt!

That sorted things in my he= ad. Much appreciated!



On Tue, Oct 24, 2017 at 12:29 PM, kurt greaves <k= urt@instaclustr.com> wrote:
Your node shouldn't show up in DC1 in nodetool s= tatus from the other nodes, this implies a configuration problem. Sounds li= ke you haven't added the new node to all the existing nodes cassandra-t= opology.properties file. You don't need to do a rolling restart with Pr= opertyFileSnitch, it should reload the cassandra-topology.properties file a= utomatically every 5 seconds.

With GPFS each node = only needs to know about its own topology settings in cassandra-rackdc.prop= erties, so the problem you point out in 2 goes away, as when adding a node = you only need to specify its configuration and that will be propagated to t= he rest of the cluster through gossip.=C2=A0

On 24 October 2017 at 07:13, shalom sagges <shalomsagges@gmai= l.com> wrote:
Hi Everyone,

I have 2 DCs (v2.0.14) w= ith the following topology.properties:

DC1:
xxx11=3DDC1:RAC1
x= xx12=3DDC1:RAC1
xxx13=3DDC1:RAC1
xxx14=3DDC1:RAC1
xxx15=3DDC1:RAC1=


DC2:
yyy11=3DDC2:RAC1
yyy12=3DDC2:RAC1
yyy13=3DDC2:RAC= 1
yyy14=3DDC2:RAC1
yyy15=3DDC2:RAC1


# default for unknown = nodes
default=3DDC1:RAC1

Now let's say that I want to a= dd a new node yyy16 to DC2, and I've added yyy16 to the topology proper= ties file only on that specific node.

What I saw i= s that during bootstrap, the new node is receiving data only from DC2 nodes= (which is what I want), but nodetool status on other nodes shows that it w= as joining to DC1 (which is the default DC for unknown nodes).

So I have a few questions on this matter:

<= /div>
1) What are the implications of such a bootstrap, where the joini= ng node actually gets data from nodes in the right DC, but all nodes see it= in the default DC when running nodetool status?

2= ) I know that I must change the topology.properties file on all nodes to be= the same. If I do that, do I need to perform a rolling restart on all of t= he cluster before each bootstrap (which is a real pain for large clusters)?=

3) Regarding the Snitch, the docs say that the re= commended snitch in Production is the GossipingPropertyFileSnitch with cass= andra-rackdc.properties file.
What's the diff= erence between the GossipingPropertyFileSnitchand and the PropertyFileSnitc= h?
I currently use PropertyFileSnitch and cassandra-topology.prop= erties.


Thanks!

=






--001a113da8284425ba055c4a1007--