From user-return-31606-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Sat Feb 2 22:43:22 2013 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 F3CDBECC7 for ; Sat, 2 Feb 2013 22:43:21 +0000 (UTC) Received: (qmail 98982 invoked by uid 500); 2 Feb 2013 22:43:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 98954 invoked by uid 500); 2 Feb 2013 22:43:19 -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 98946 invoked by uid 99); 2 Feb 2013 22:43:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 22:43:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a80.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2013 22:43:14 +0000 Received: from homiemail-a80.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTP id 15D7637A06F for ; Sat, 2 Feb 2013 14:42:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :content-type:message-id:mime-version:subject:date:references:to :in-reply-to; s=thelastpickle.com; bh=t868vdo/6xdAq5mukud71mrVSp Y=; b=i1rN4sHH5EP8HgpCZBjIYsMfwir4NET/pHX/abPf1qYS4tz/nQaaPS8TS2 WlX8jski+Y5IufL+euEc67MeFljLm3Cn948XzYsSqNy1HIUxMx7aAyqxlMrdTRfF hMcn2yfN0KmwPGeJ7RHOR1Aa1D6tBLr3dlpY1QUTyw0N3Zt3Y= Received: from [172.16.1.8] (unknown [203.86.207.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTPSA id 401B537A065 for ; Sat, 2 Feb 2013 14:42:49 -0800 (PST) From: aaron morton Content-Type: multipart/alternative; boundary="Apple-Mail=_8EE1B9E4-959F-4AC9-84B3-A8DB9DBC4B3B" Message-Id: <4745E18D-32BA-43F9-BF09-FA42FF396B4B@thelastpickle.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: initial_token Date: Sun, 3 Feb 2013 11:42:43 +1300 References: <333B362E7B77B344A2D0FD92840282611F81D39EF6@MSGCMSIL1003.ent.wfb.bank.corp> To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_8EE1B9E4-959F-4AC9-84B3-A8DB9DBC4B3B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 If you are using Murmur3 partitioner and do not wish to partake in = vnodes you can still calculate inital_tokens.=20 There is a guide here = http://www.datastax.com/docs/1.2/initialize/token_generation#calculating-t= okens-for-the-murmur3partitioner Cheers =20 ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 2/02/2013, at 9:59 AM, Edward Capriolo wrote: > You do not just want to vnodes without being sure. Some queries are > not optimized for vnodes and issue 128 slices to solve some > secondaryIndexQueries. >=20 >=20 > On Fri, Feb 1, 2013 at 12:55 PM, V=EDctor Hugo Oliveira Molinar > wrote: >> Do not set initial_token when using murmur3partitioner. >> instead, set num_tokens. >>=20 >> For example, u have 3 hosts with the same hardware setup, then, for = each one >> set the same num_tokens. >> But now consider adding another better host, this time i'd suggest = you to >> set previous num_tokens * 2. >>=20 >> num_tokens: 128 (worse machines) >> num_tokens: 256(twice better machine) >>=20 >> This is the setup of virtual nodes. >> Check current datastax docs for it. >>=20 >>=20 >> On Thu, Jan 31, 2013 at 8:43 PM, Edward Capriolo = >> wrote: >>>=20 >>> This is the bad side of changing default. There are going to be a = few >>> groups unfortunates. >>>=20 >>> The first group, who only can not setup their cluster, and = eventually >>> figure out their tokens. (this thread) >>> The second group, who assume their tokens were correct and run = around >>> with an unbalanced cluster thinking the performance sucks. (the >>> threads for the next few months) >>> The third group, who will google "how to balance my ring" and find a >>> page with random partitioner instructions. (the occasional thread = for >>> the next N years) >>> The fourth group, because as of now map reduce is highly confused by = this. >>>=20 >>> On Thu, Jan 31, 2013 at 4:52 PM, Rob Coli = wrote: >>>> On Thu, Jan 31, 2013 at 12:17 PM, Edward Capriolo >>>> wrote: >>>>> Now by default a new partitioner is chosen Murmer3. >>>>=20 >>>> "Now" =3D as of 1.2, to be unambiguous. >>>>=20 >>>> =3DRob >>>>=20 >>>> -- >>>> =3DRobert Coli >>>> AIM>ALK - rcoli@palominodb.com >>>> YAHOO - rcoli.palominob >>>> SKYPE - rcoli_palominodb >>=20 >>=20 --Apple-Mail=_8EE1B9E4-959F-4AC9-84B3-A8DB9DBC4B3B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 If = you are using Murmur3 partitioner and do not wish to partake in vnodes = you can still calculate inital_tokens. 


Cheers
 
http://www.thelastpickle.com

On 2/02/2013, at 9:59 AM, Edward Capriolo <edlinuxguru@gmail.com> = wrote:

You do not just want to vnodes without being sure. Some = queries are
not optimized for vnodes and issue 128 slices to solve = some
secondaryIndexQueries.


On Fri, Feb 1, 2013 at 12:55 = PM, V=EDctor Hugo Oliveira Molinar
<vhmolinar@gmail.com> = wrote:
Do not set initial_token when using = murmur3partitioner.
instead, set num_tokens.

For example, u = have 3 hosts with the same hardware setup, then, for each one
set the = same num_tokens.
But now consider adding another better host, this = time i'd suggest you to
set previous num_tokens * = 2.

num_tokens: 128 (worse machines)
num_tokens: 256(twice = better machine)

This is the setup of virtual nodes.
Check = current datastax docs for it.


On Thu, Jan 31, 2013 at 8:43 = PM, Edward Capriolo <edlinuxguru@gmail.com>
wro= te:

This is the bad side of changing = default. There are going to be a few
groups unfortunates.

The = first group, who only can not setup their cluster, and = eventually
figure out their tokens. (this thread)
The second = group, who assume their tokens were correct and run around
with an = unbalanced cluster thinking the performance sucks. (the
threads for = the next few months)
The third group, who will google "how to balance = my ring" and find a
page with random partitioner instructions. (the = occasional thread for
the next N years)
The fourth group, because = as of now map reduce is highly confused by this.

On Thu, Jan 31, = 2013 at 4:52 PM, Rob Coli <rcoli@palominodb.com> = wrote:
On Thu, Jan 31, 2013 at 12:17 PM, = Edward Capriolo
<edlinuxguru@gmail.com> = wrote:
Now by default a new partitioner is = chosen Murmer3.

"Now" =3D as of 1.2, to be = unambiguous.

=3DRob

--
=3DRobert Coli
AIM&GTALK = - rcoli@palominodb.com
YAHOO - = rcoli.palominob
SKYPE - = rcoli_palominodb



= --Apple-Mail=_8EE1B9E4-959F-4AC9-84B3-A8DB9DBC4B3B--