Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 19366101D7 for ; Thu, 12 Dec 2013 02:06:59 +0000 (UTC) Received: (qmail 69251 invoked by uid 500); 12 Dec 2013 02:06:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 69207 invoked by uid 500); 12 Dec 2013 02:06:56 -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 69199 invoked by uid 99); 12 Dec 2013 02:06:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 02:06:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 02:06:49 +0000 Received: by mail-pb0-f47.google.com with SMTP id um1so11133964pbc.20 for ; Wed, 11 Dec 2013 18:06:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=vQ368Y2UXGZNiR1d3yluVMigiog3PErtkYDqyV8ZCdE=; b=UDCkBwNCc8UMP50E41izulRY1qviy/Vv/Ic6dC8QsHFSp0EDoIPSo0Nmq0S6QmlpU6 6ZYBewvFLXL25leoTeXabtt71EVGpm4W932PzCTUr9QRqEjqfiF7VXUVQi7ao0lS6ebz C828/83UHNg+IYJPREjT68dK/GuO5fD04TeSI04ezFvW58CMuBa4Vv/dPvhV3HKMGIS3 lnZv6v9T7vYMdZC7UpZIt7ODV+gGmsJVjZ1Lsd6ewd9pMSz9CRQlhogV/nJPthhD4am6 Woba+N/kilXxkWgVBhyoQ8cYvglIEz4oEtH7vqinSerQeHmvhY9QKzAXXWX/9atTtEms REsg== X-Gm-Message-State: ALoCoQmLzT83CBEKvdFK4zLygJVG3i061YmdzDWV109mLUue9GBR4cdwxz06QVi8BadA6FCaIw1i X-Received: by 10.68.224.38 with SMTP id qz6mr7033433pbc.156.1386813987782; Wed, 11 Dec 2013 18:06:27 -0800 (PST) Received: from [172.16.1.18] ([203.86.207.101]) by mx.google.com with ESMTPSA id iu7sm35939235pbc.45.2013.12.11.18.06.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Dec 2013 18:06:26 -0800 (PST) From: Aaron Morton Content-Type: multipart/alternative; boundary="Apple-Mail=_34CECCE2-177D-4165-B8EC-81861EF6AE58" Message-Id: <187A7B5E-2B0E-4D9A-8524-4B3D1447FB35@thelastpickle.com> Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: AddContractPoint /VIP Date: Thu, 12 Dec 2013 15:06:18 +1300 References: To: Cassandra User In-Reply-To: X-Mailer: Apple Mail (2.1822) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_34CECCE2-177D-4165-B8EC-81861EF6AE58 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 > What is the good practice to put in the code as addContactPoint = ie.,how many servers ? I use the same nodes as the seed list nodes for that DC.=20 The idea of the seed list is that it=92s a list of well known nodes, and = it=92s easier operationally to say we have one list of well known nodes = that is used by the servers and the clients.=20 > 1) I am also thinking to put this way here I am not sure this good = or bad if i conigure 4 serves into one VIP ( virtual IP/virtual = DNS) > and specifying that DSN in the code as ContactPoint, so that that VIP = is smart enough to route to different nodes. Too complicated.=20 > 2) Is that problem if i use multiple Data centers in future ? You only need to give the client the local seeds, it will discover all = the nodes.=20 Cheers ----------------- Aaron Morton New Zealand @aaronmorton Co-Founder & Principal Consultant Apache Cassandra Consulting http://www.thelastpickle.com On 7/12/2013, at 7:12 am, chandra Varahala = wrote: > Greetings, >=20 > I have 4 node cassandra cluster that will grow upt to 10 nodes,we are = using CQL Java client to access the data. > What is the good practice to put in the code as addContactPoint = ie.,how many servers ? >=20 > 1) I am also thinking to put this way here I am not sure this good = or bad if i conigure 4 serves into one VIP ( virtual IP/virtual = DNS) > and specifying that DSN in the code as ContactPoint, so that that VIP = is smart enough to route to different nodes. >=20 > 2) Is that problem if i use multiple Data centers in future ? >=20 >=20 > thanks > Chandra --Apple-Mail=_34CECCE2-177D-4165-B8EC-81861EF6AE58 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
What is = the good practice to put in the code as addContactPoint ie.,how many = servers ?
I use the same nodes as the seed list nodes = for that DC. 

The idea of the seed list is that = it=92s a list of well known nodes, and it=92s easier operationally to = say we have one list of well known nodes that is used by the servers and = the clients. 

1) I am also thinking to put this way here   I am = not sure this good or bad if i conigure       4 serves = into one VIP ( virtual IP/virtual DNS)
and specifying that DSN = in the code as ContactPoint,  so that that VIP is smart enough to = route to different nodes.
Too = complicated. 

2) Is that problem if i use multiple Data centers in future = ?
You only need to give the = client the local seeds, it will discover all the = nodes. 

Cheers

http://www.thelastpickle.com


= --Apple-Mail=_34CECCE2-177D-4165-B8EC-81861EF6AE58--