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 A69D9200CA3 for ; Wed, 3 May 2017 02:09:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A509E160BAC; Wed, 3 May 2017 00:09:02 +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 767E4160B9D for ; Wed, 3 May 2017 02:09:01 +0200 (CEST) Received: (qmail 78811 invoked by uid 500); 3 May 2017 00:08:59 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 78801 invoked by uid 99); 3 May 2017 00:08:59 -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; Wed, 03 May 2017 00:08:59 +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 708DBC04EF for ; Wed, 3 May 2017 00:08:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.481 X-Spam-Level: ** X-Spam-Status: No, score=2.481 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=highwire-org.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id d-OlszKJofZQ for ; Wed, 3 May 2017 00:08:54 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 25A6E5F3BC for ; Wed, 3 May 2017 00:08:54 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id u65so129447941wmu.1 for ; Tue, 02 May 2017 17:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=highwire-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=iDU+/yFUFUmMH34GxoO5mm8Zw3mpLWDpHkFHocleK8M=; b=t+cULNV0d86G3AempX2BxW7FeuAIIp5reEG6FiYFdCu+deC5C9jl8yr99c2K6O8YIx cHZjnYqfRE0i5fvgyUhpY5ejpBDksOk8qypAAOibisWmdkYkzAWPQVGSl09IZT+GDYS8 rCCF6cRw9I6RrP1wjHPj6AYn5wKj8QgwmgXJmShMusNNDKZx/IQdaTOG+nso+fJ7Iuhw rjZfPoGYZcuU4DkosIZ5BJgD5N/H8tCvLx6ITGuTtJnm/eBVntNkGBwgG58oIBKPNT/4 9nQeS4kJPz/CH6pn4Kqq3Kqnkm2TET/Xz01/9bk7W/mgG952lM2xRFQp3DbMLJXZxWM3 6/Hw== 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:cc; bh=iDU+/yFUFUmMH34GxoO5mm8Zw3mpLWDpHkFHocleK8M=; b=ghjIRwc0x+8CeR8FZO+kqooGik1YdusP7yPE3W5AEtATC9ac7VUj32kwDbvq97k0Ix QTZyB+t0dc5DF+lpxidjk61vUKolIA3bUUtyaWsPp5DvEzWNVaex9P3dzU2wRHhGpn0i D1cTI0fJ+0M8xYrn3zD8Z8K9lkIdjTjRqRdJektvDveHqjgPpqzbJl0uXU1/qNAdlsKo JUaHxiRGl39XofHMe5tYQdFtBBMXsoJiDMpFrr9JS5G1TdoUhpUnuJEnuGRcCR3Rt0Fq rJo+RYBkhD8k8QrE6318r0k8lK/1vMwHRKiwdzJ2mBYDA0r7g108dW+vYn58hfgZJccE q1vQ== X-Gm-Message-State: AN3rC/7pZiDuj7WJ8syeBuqktvqxCLfee3svAFRJ83c3Qj1iD2vwwP1Q cDwsuGSEYbUj0SdncdMyEf3Z2ysSuFPd X-Received: by 10.28.165.13 with SMTP id o13mr4333140wme.139.1493770128751; Tue, 02 May 2017 17:08:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.230.67 with HTTP; Tue, 2 May 2017 17:08:48 -0700 (PDT) In-Reply-To: References: <7D0490C5-0A17-4B51-BC53-67C0D629E119@sproutling.com> <882B490C-9C01-409B-869F-78C049D33A63@gmail.com> <5FE7174C-0132-4C0D-A53B-4A724B53A534@gmail.com> <7FA3DA8D-AC3F-4509-A6C1-CFC5BBA9ABA6@sproutling.com> <4018DCF8-AD25-43B3-B459-C84900F5AF2A@gmail.com> From: Steve Robenalt Date: Tue, 2 May 2017 17:08:48 -0700 Message-ID: Subject: Re: Service discovery in the Cassandra cluster To: Roman Naumenko Cc: Jon Haddad , user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114b9f4ce69469054e9375f4 archived-at: Wed, 03 May 2017 00:09:02 -0000 --001a114b9f4ce69469054e9375f4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Roman, I'm assuming you were intending your first statement to be in jest, but it's really not that hard to startup a Cassandra cluster. The defaults are pretty usable, so if all you want to do is set the IPs and start it up, the cluster probably will just take care of everything else. So I jest a little bit too. It's normally desirable to set up storage properly for your database, and there's a few options for which you might want to change the defaults, such as the snitch. Still, if that means you only need to take note of of a couple of IPs and designate them as seeds so your cluster can mostly manage itself, you can say that's sad, but I'd say it's a small price to pay for all that you don't have to do. Steve On Mon, May 1, 2017 at 4:55 PM, Roman Naumenko wrote= : > Lol yeah, why > I guess I run some ec2 instances, drop some cassandra deb packages on 'em > - the thing will figure out how to run... > > Also, how would you get "initial state of the cluster" if the cluster... > is being initialized? > Or that's easy, according to the docs - just hardcode some seed IPs into > each node, lol > > It's all kinda funny, but in a sad way. > > On Mon, May 1, 2017 at 4:45 PM, Jon Haddad > wrote: > >> Why do you have to figure out what=E2=80=99s up w/ them by accident? Yo= u=E2=80=99ve >> gotten all the information you need. Seeds are used to get the initial >> state of the cluster and as an optimization to spread gossip faster. >> That=E2=80=99s it. >> >> >> >> On May 1, 2017, at 4:37 PM, Roman Naumenko wrote: >> >> Well, I guess I have to figure out what=E2=80=99s up with IPs/hostnames = by >> experiment. >> Information about service discovery is practically absent. >> Not to mention all important details about fqdns/hostnames, automatic >> replacing seed nodes or what not. >> >> =E2=80=94 >> Roman >> >> On May 1, 2017, at 4:14 PM, Jon Haddad wrote= : >> >> The in-tree docs do not mention this anywhere, and even have some of the >> answers you=E2=80=99re asking: >> >> https://cassandra.apache.org/doc/latest/faq/index.html?highl >> ight=3Dseed#what-are-seeds >> >> The DataStax docs are maintained outside of the project, you=E2=80=99ll = have to >> ask them why they=E2=80=99re wrong or misleading. >> >> Jon >> >> On May 1, 2017, at 4:10 PM, Roman Naumenko wrote: >> >> The docs mention IP addresses everywhere. >> >> http://docs.datastax.com/en/archived/cassandra/2.0/cassandra >> /operations/ops_replace_seed_node.html >> Promote an existing node to a seed node by adding its IP address to >> -seeds list and remove (demote) the IP address of the dead seed node fro= m >> the cassandra.yaml file for each node in the cluster. >> >> http://docs.datastax.com/en/archived/cassandra/2.0/cassandra >> /operations/ops_replace_node_t.html >> Note the Address of the dead node; it is used in step 5. >> >> http://docs.datastax.com/en/cassandra/2.1/cassandra/initiali >> ze/initializeSingleDS.html >> >> Properties to set: >> num_tokens: recommended value: 256 >> -seeds: internal IP address of each seed node >> >> >> I saw also *hostnames *mentioned few times, but it just makes it even >> more confusing. >> >> =E2=80=94 >> Roman >> >> On May 1, 2017, at 3:50 PM, Jon Haddad wrote= : >> >> Sure, you could use DNS. Where does it say IP addresses are a >> requirement? >> >> On May 1, 2017, at 1:36 PM, Roman Naumenko wrote: >> >> If I understand how Cassandra nodes work, they must contain a list of >> seed=E2=80=99s IP addressed in config file. >> >> This requirement makes cluster setup unnecessarily complicated. Is it >> possible to use DNS name for seed nodes? >> >> Thanks, >> >> =E2=80=94 >> Roman >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org >> For additional commands, e-mail: user-help@cassandra.apache.org >> >> >> >> >> >> >> > --=20 * Steve Robenalt Software Architect, HighWire Press, Inc. * www.highwire.org| Los Gatos, CA| Belfast, NI| Brighton, UK *HighWire Summer Publishers' Meeting, London, June 12-13 * STM Annual US Conference, April 25-27: Michiel Klein Swormink and Jennifer Chang are representing HighWire 2017 CSE Annual Meeting: John Sack is presenting on topic of Piracy, May 23 SSP Annual Meeting, May 31-June 2: *Visit HighWire on Booth #101A* --001a114b9f4ce69469054e9375f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Roman,

I'm assuming you were int= ending your first statement to be in jest, but it's really not that har= d to startup a Cassandra cluster. The defaults are pretty usable, so if all= you want to do is set the IPs and start it up, the cluster probably will j= ust take care of everything else.

So I jest a litt= le bit too. It's normally desirable to set up storage properly for your= database, and there's a few options for which you might want to change= the defaults, such as the snitch.=C2=A0

Still, if= that means you only need to take note of of a couple of IPs and designate = them as seeds so your cluster can mostly manage itself, you can say that= 9;s sad, but I'd say it's a small price to pay for all that you don= 't have to do.

Steve

On Mon, May 1, 2017 at 4:55 PM,= Roman Naumenko <roman@sproutling.com> wrote:
Lol yeah, why=C2=A0
I guess I r= un some ec2 instances, drop some cassandra deb packages on 'em - the th= ing will figure out how to run...

Also, how would you ge= t "initial state of the cluster" if the cluster... is being initi= alized?=C2=A0
Or that's easy, according to the docs - just ha= rdcode some seed IPs into each node, lol

It's = all kinda funny, but in a sad way.
<= div class=3D"h5">

= On Mon, May 1, 2017 at 4:45 PM, Jon Haddad <jonathan.haddad@gmail.= com> wrote:
Why do you have to figure out what=E2=80=99s up w= / them by accident?=C2=A0 You=E2=80=99ve gotten all the information you nee= d.=C2=A0 Seeds are used to get the initial state of the cluster and as an o= ptimization to spread gossip faster.=C2=A0 That=E2=80=99s it. =C2=A0
<= div>


On May 1, 2017, at 4:37 PM, Roman Nau= menko <roman@s= proutling.com> wrote:

Well, I guess I have to figure out what=E2=80=99s up with IPs/h= ostnames by experiment.
Information about service discovery is pr= actically absent.
Not to mention all important details about fqdn= s/hostnames, automatic replacing seed nodes or what not.=C2=A0
=E2=80=94
Roman

On May 1, 2017, at 4:14 PM, Jon Haddad <jonathan.haddad@gmail.com= > wrote:

The i= n-tree docs do not mention this anywhere, and even have some of the answers= you=E2=80=99re asking:


The Data= Stax docs are maintained outside of the project, you=E2=80=99ll have to ask= them why they=E2=80=99re wrong or misleading.

Jon=

On May 1, 2017, at= 4:10 PM, Roman Naumenko <roman@sproutling.com> wrote:

The docs mention IP addresses everywhere.

Promote an exis= ting node to a seed node by adding its IP address to -seeds list and remove= (demote) the IP address of the dead seed node from the cassandra.yaml file= for each node in the cluster.


Properties= to set:
num_tokens: recommended value: 256
-seeds: int= ernal IP address of each seed node

I saw a= lso=C2=A0hostnames=C2=A0mentioned few times, but it just makes it ev= en more confusing.

=E2=80=94
Roman
=

<= /div>

=





--
= --001a114b9f4ce69469054e9375f4--