From user-return-31674-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Tue Feb 5 22:20:24 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 45947EA93 for ; Tue, 5 Feb 2013 22:20:24 +0000 (UTC) Received: (qmail 24355 invoked by uid 500); 5 Feb 2013 22:20:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 24319 invoked by uid 500); 5 Feb 2013 22:20:21 -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 24311 invoked by uid 99); 5 Feb 2013 22:20:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 22:20:21 +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 (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a50.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 22:20:13 +0000 Received: from homiemail-a50.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTP id 856E56F806B for ; Tue, 5 Feb 2013 14:19:51 -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=JMRvweA1iFWWCw395pZTgVbEWn E=; b=0Z9adXp5GVPyalKEEJfwh/RgPwQu4s9+S849O3Y2zd69ee+BQT5K0+Lruk yhbuuo4yIaxYQlHevW8anXZOJ5XJLsheEKx5Wua/y3nm7XA3UbNQiOAnfl9unF63 LlNMrzBekrHfQ9Abx+4ZfvD00LdCmSRIPqBEtzp9bKatiVm5I= 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-a50.g.dreamhost.com (Postfix) with ESMTPSA id DD5B36F8065 for ; Tue, 5 Feb 2013 14:19:50 -0800 (PST) From: aaron morton Content-Type: multipart/alternative; boundary="Apple-Mail=_ADEA2DC1-F938-44AD-89E7-A9203D8B0DEA" Message-Id: <948A33D0-BD2C-4C21-B11D-3DBBA8256F50@thelastpickle.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Clarification on num_tokens setting Date: Wed, 6 Feb 2013 11:19:53 +1300 References: <8EEBE8AF-CD2F-45C5-AAD0-810DEDFF3EA6@thelastpickle.com> 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=_ADEA2DC1-F938-44AD-89E7-A9203D8B0DEA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 > There is always num_tokens tokens in the ring. I got this wrong.=20 Each node *does* have num_tokens tokens.=20 >> With N nodes, the ring is divided into N*num_tokens. Correct?=20 Yes > In other words it is cluster wide parameter. Correct? Yes. Cheers ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 6/02/2013, at 10:36 AM, Andrey Ilinykh wrote: >=20 >=20 >=20 > On Tue, Feb 5, 2013 at 12:42 PM, aaron morton = wrote: >> With N nodes, the ring is divided into N*num_tokens. Correct?=20 >=20 > There is always num_tokens tokens in the ring. > Each node has (num_tokens / N) * RF ranges on it.=20 >=20 > That means every node should have the same num_token parameter? In = other words it is cluster wide parameter. Correct? >=20 > Thank you, > Andrey=20 --Apple-Mail=_ADEA2DC1-F938-44AD-89E7-A9203D8B0DEA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
There is always = num_tokens tokens in the = ring.
 With N = nodes, the ring is divided into N*num_tokens. = Correct? 
Yes

In = other words it is cluster wide parameter. = Correct?
Yes.

Cheer= s
http://www.thelastpickle.com

On 6/02/2013, at 10:36 AM, Andrey Ilinykh <ailinykh@gmail.com> = wrote:




On Tue, Feb 5, 2013 at 12:42 PM, aaron morton = <aaron@thelastpickle.com> wrote:
 With N nodes, the ring is divided = into N*num_tokens. Correct? 
There is always num_tokens tokens in the = ring.
Each node has (num_tokens / N) * RF ranges on = it. 

That = means every node should have the same num_token parameter? In other = words it is cluster wide parameter. Correct?

Thank you,
  Andrey 

= --Apple-Mail=_ADEA2DC1-F938-44AD-89E7-A9203D8B0DEA--