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 BF90DEEF6 for ; Tue, 29 Jan 2013 18:29:59 +0000 (UTC) Received: (qmail 14466 invoked by uid 500); 29 Jan 2013 18:29:57 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 14443 invoked by uid 500); 29 Jan 2013 18:29:57 -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 14435 invoked by uid 99); 29 Jan 2013 18:29:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 18:29:57 +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) Received: from [66.193.54.208] (HELO voxeo.com) (66.193.54.208) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2013 18:29:51 +0000 Received: from [172.16.7.141] (account zli@voxeo.com [172.16.7.141] verified) by voxeo.com (CommuniGate Pro SMTP 5.3.8) with ESMTPSA id 128430089 for user@cassandra.apache.org; Tue, 29 Jan 2013 18:29:29 +0000 From: Zhong Li Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: multipart/alternative; boundary=Apple-Mail-35-1072361711 Subject: Re: Understanding Virtual Nodes on Cassandra 1.2 Date: Tue, 29 Jan 2013 13:29:27 -0500 In-Reply-To: <1C1F0670-BD45-4240-8C09-C35711E8AE3C@voxeo.com> To: user@cassandra.apache.org References: <1C1F0670-BD45-4240-8C09-C35711E8AE3C@voxeo.com> Message-Id: <65B95AB7-966E-4FC1-8290-3AB17827DEAC@voxeo.com> X-Mailer: Apple Mail (2.1085) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-35-1072361711 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 One more question, can I add a virtual node manually without reboot and = rebuild a host data? I checked nodetool command, there is no option to add a node. Thanks. Zhong=20 On Jan 29, 2013, at 11:09 AM, Zhong Li wrote: > I was misunderstood this = http://www.datastax.com/dev/blog/virtual-nodes-in-cassandra-1-2 , = especially=20 > "If you want to get started with vnodes on a fresh cluster, however, = that is fairly straightforward. Just don=92t set the initial_token = parameter in yourconf/cassandra.yaml and instead enable the num_tokens = parameter. A good default value for this is 256" >=20 > Also I couldn't find document about set multiple tokens for = cassandra.inital_token=20 >=20 > Anyway, I just tested, it does work to set comma separated list of = tokens.=20 >=20 > Thanks, >=20 > Zhong >=20 >=20 > On Jan 29, 2013, at 3:06 AM, aaron morton wrote: >=20 >>> After I searched some document on Datastax website and some old = ticket, seems that it works for random partitioner only, and leaves = order preserved partitioner out of the luck. >> Links ?=20 >>=20 >>> or allow add Virtual Nodes manually? >> If not looked into it but there is a cassandra.inital_token startup = param that takes a comma separated list of tokens for the node. >>=20 >> There also appears to be support for the ordered partitions to = generate random tokens.=20 >>=20 >> But you would still have the problem of having to balance your row = keys around the token space.=20 >>=20 >> Cheers >> =20 >> ----------------- >> Aaron Morton >> Freelance Cassandra Developer >> New Zealand >>=20 >> @aaronmorton >> http://www.thelastpickle.com >>=20 >> On 29/01/2013, at 10:31 AM, Zhong Li wrote: >>=20 >>> Hi All, >>>=20 >>> Virtual Nodes is great feature. After I searched some document on = Datastax website and some old ticket, seems that it works for random = partitioner only, and leaves order preserved partitioner out of the = luck. I may misunderstand, please correct me. if it doesn't love order = preserved partitioner, would be possible to add support multiple = initial_token(s) for order preserved partitioner or allow add Virtual = Nodes manually?=20 >>>=20 >>> Thanks, >>>=20 >>> Zhong >>=20 >=20 --Apple-Mail-35-1072361711 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
I was misunderstood this =  h= ttp://www.datastax.com/dev/blog/virtual-nodes-in-cassandra-1-2 , = especially 
"If you want to get started with vnodes on a fresh cluster, = however, that is fairly straightforward. Just don=92t set = the initial_token parameter in yourconf/cassandra.yaml and instead enable = the num_tokens parameter. A good default value for this is = 256"

Also I couldn't find document about = set multiple tokens = for cassandra.inital_token 

Anyway, I = just tested, it does work to set  comma separated list of = tokens. 

Thanks,

Zh= ong


On Jan 29, 2013, at 3:06 AM, = aaron morton wrote:

After = I searched some document on Datastax website and some old ticket, seems = that it works for random partitioner only, and leaves order preserved = partitioner out of the luck.
Links = ? 

  or = allow add Virtual Nodes manually?
If not looked into it but = there is a cassandra.inital_token startup param that takes a comma = separated list of tokens for the node.

There = also appears to be support for the ordered partitions to generate random = tokens. 

But you would still have the = problem of having to balance your row keys around the token = space. 

Cheers
 
http://www.thelastpickle.com

On 29/01/2013, at 10:31 AM, Zhong Li <zli@voxeo.com> wrote:

Hi = All,

Virtual Nodes is great feature. After I searched some = document on Datastax website and some old ticket, seems that it works = for random partitioner only, and leaves order preserved partitioner out = of the luck. I may misunderstand, please correct me. if it doesn't love = order preserved partitioner, would be possible to add support multiple = initial_token(s) for  order preserved partitioner  or allow = add Virtual Nodes manually?

Thanks,

Zhong =



= --Apple-Mail-35-1072361711--