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 F361B200C7D for ; Tue, 2 May 2017 01:45:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F20B7160BC1; Mon, 1 May 2017 23:45:59 +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 EB0BC160BC2 for ; Tue, 2 May 2017 01:45:58 +0200 (CEST) Received: (qmail 17070 invoked by uid 500); 1 May 2017 23:45:57 -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 16929 invoked by uid 99); 1 May 2017 23:45:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2017 23:45:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E3C7218FF82 for ; Mon, 1 May 2017 23:45:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.397 X-Spam-Level: X-Spam-Status: No, score=-0.397 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.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id BMh1nAdACvu1 for ; Mon, 1 May 2017 23:45:54 +0000 (UTC) Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 72BCA5FB26 for ; Mon, 1 May 2017 23:45:53 +0000 (UTC) Received: by mail-pf0-f182.google.com with SMTP id v14so80573206pfd.2 for ; Mon, 01 May 2017 16:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=THImoSTqiPgE7aIFyIvU7KbIiwFrA3hRU82WB9R+n7Q=; b=AP45E9ZKYZzDfSpdhJ+OaIpyC0V6copKj0MWPNgLU4y6lzE4XaljU9XHjoO0Fd8dNA hiEuIV8/Oazs9WUUodXyCaXMVNsYJrGpZUi4nQFfTBpbvc/ugIpuzLwAETTZRyNYkr8m 5SAl4uQuSz2Dv3um0fkq4zZVDLJwLekJaM2IGD8w+xGPt9GmqcdBWB1eWz2oCoAZ+rH+ 4311K68H3Zxz+ecPhyJTv6FACenUESzfLBAX1fNr99fTfd34KlK5tUXhKhJj37LAM3dN 13/oXYeFdTnKtQ3oO5MTo1xsuUwAARmJqehS0N2YgJ+gwOmkc3lrFTrWP1G/otl4/2ah Qt5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=THImoSTqiPgE7aIFyIvU7KbIiwFrA3hRU82WB9R+n7Q=; b=lJyG59vcAkBRfD8yzKXBeXci3oSmuIX8RuY8ukbje4w+hNxr4kDbOcOeLmiGgD+J44 N+whVlQi8pvf7F4RvtLHr48JyeMZSrxh3m1EpmREI/ap7Sk89BO9LG15yoS2ekaW/Coq kCQp3Q8Ho84CV2rLDGErAv/WIrSCn9xu3MDSwfLtooqckXNMEPFI2CH5bjyTbkrpwniV JqvQyKo09gVXHwo9cSguJ2CgGWtpi0WMExS6e6y6Lmt+CcCSJHZ3D9q6ulvLjIfHNguF qIbfH5cHiRHc+52POW/VyMsUY5TFC1rt2XliNxiNOSBmu3cAPSsUZgrI7w3OjguNjsE7 +7pw== X-Gm-Message-State: AN3rC/7d9tkXopbfBzu7tluAbWW+Vm3agM9D2ODhtu7/vRoyJn+CojJ4 TwHTjqN3DN09WQ== X-Received: by 10.84.232.197 with SMTP id x5mr36467291plm.85.1493682351999; Mon, 01 May 2017 16:45:51 -0700 (PDT) Received: from rustyrazorblade.fios-router.home ([47.144.154.121]) by smtp.gmail.com with ESMTPSA id i15sm32608815pfj.51.2017.05.01.16.45.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 May 2017 16:45:51 -0700 (PDT) From: Jon Haddad Message-Id: <4018DCF8-AD25-43B3-B459-C84900F5AF2A@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_9192D531-0158-41AB-AFF2-81CA1E28F0AC" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Service discovery in the Cassandra cluster Date: Mon, 1 May 2017 16:45:50 -0700 In-Reply-To: <7FA3DA8D-AC3F-4509-A6C1-CFC5BBA9ABA6@sproutling.com> Cc: user@cassandra.apache.org To: Roman Naumenko 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> X-Mailer: Apple Mail (2.3273) archived-at: Mon, 01 May 2017 23:46:00 -0000 --Apple-Mail=_9192D531-0158-41AB-AFF2-81CA1E28F0AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Why do you have to figure out what=E2=80=99s up w/ them by accident? = You=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. =20 > On May 1, 2017, at 4:37 PM, Roman Naumenko = wrote: >=20 > 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.=20 >=20 > =E2=80=94 > Roman >=20 >> On May 1, 2017, at 4:14 PM, Jon Haddad > wrote: >>=20 >> The in-tree docs do not mention this anywhere, and even have some of = the answers you=E2=80=99re asking: >>=20 >> = https://cassandra.apache.org/doc/latest/faq/index.html?highlight=3Dseed#wh= at-are-seeds = >>=20 >> 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. >>=20 >> Jon >>=20 >>> On May 1, 2017, at 4:10 PM, Roman Naumenko > wrote: >>>=20 >>> The docs mention IP addresses everywhere. >>>=20 >>> = http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/operations/op= s_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 = from the cassandra.yaml file for each node in the cluster. >>>=20 >>> = http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/operations/op= s_replace_node_t.html = >>> Note the Address of the dead node; it is used in step 5. >>>=20 >>> = http://docs.datastax.com/en/cassandra/2.1/cassandra/initialize/initializeS= ingleDS.html = >>>> Properties to set: >>>> num_tokens: recommended value: 256 >>>> -seeds: internal IP address of each seed node >>>=20 >>> I saw also hostnames mentioned few times, but it just makes it even = more confusing. >>>=20 >>> =E2=80=94 >>> Roman >>>=20 >>>> On May 1, 2017, at 3:50 PM, Jon Haddad > wrote: >>>>=20 >>>> Sure, you could use DNS. Where does it say IP addresses are a = requirement? >>>>=20 >>>>> On May 1, 2017, at 1:36 PM, Roman Naumenko > wrote: >>>>>=20 >>>>> If I understand how Cassandra nodes work, they must contain a list = of seed=E2=80=99s IP addressed in config file. >>>>>=20 >>>>> This requirement makes cluster setup unnecessarily complicated. Is = it possible to use DNS name for seed nodes? >>>>>=20 >>>>> Thanks, >>>>>=20 >>>>> =E2=80=94 >>>>> Roman >>>>> = --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org = >>>>> For additional commands, e-mail: user-help@cassandra.apache.org = >>>>>=20 >>>>=20 >>>=20 >>=20 >=20 --Apple-Mail=_9192D531-0158-41AB-AFF2-81CA1E28F0AC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Why do you have to figure out what=E2=80=99s = up w/ them by accident?  You=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 = <roman@sproutling.com> 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 <jonathan.haddad@gmail.com> wrote:

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


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 <roman@sproutling.com> wrote:

The docs mention IP addresses everywhere.

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 from the cassandra.yaml file for each node in the = cluster.

Note the Address of the dead node; it is used in step = 5.

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 <jonathan.haddad@gmail.com> 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 <roman@sproutling.com> 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=94Roman
---------------------------------------------------------------= ------
To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org
For = additional commands, e-mail: user-help@cassandra.apache.org






= --Apple-Mail=_9192D531-0158-41AB-AFF2-81CA1E28F0AC--