Return-Path: Delivered-To: apmail-cassandra-dev-archive@www.apache.org Received: (qmail 87013 invoked from network); 17 Jun 2010 19:20:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jun 2010 19:20:56 -0000 Received: (qmail 8319 invoked by uid 500); 17 Jun 2010 19:20:55 -0000 Delivered-To: apmail-cassandra-dev-archive@cassandra.apache.org Received: (qmail 8279 invoked by uid 500); 17 Jun 2010 19:20:54 -0000 Mailing-List: contact dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list dev@cassandra.apache.org Received: (qmail 8271 invoked by uid 99); 17 Jun 2010 19:20:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 19:20:54 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.172] (HELO mail-qy0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 19:20:47 +0000 Received: by qyk8 with SMTP id 8so1537290qyk.31 for ; Thu, 17 Jun 2010 12:20:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.70.129 with SMTP id d1mr883648qaj.357.1276802426125; Thu, 17 Jun 2010 12:20:26 -0700 (PDT) Received: by 10.229.91.139 with HTTP; Thu, 17 Jun 2010 12:20:25 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Jun 2010 12:20:25 -0700 Message-ID: Subject: Re: 3-node balanced system From: Benjamin Black To: dev@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org in ruby: def token(nodes) 1.upto(nodes) {|i| p (2**127/nodes) * i}; end >> token(3) 56713727820156410577229101238628035242 113427455640312821154458202477256070484 170141183460469231731687303715884105726 On Thu, Jun 17, 2010 at 12:08 PM, Lev Stesin wrote: > Hi, > > What is the correct procedure to create a well balanced cluster (in > terms of key distribution). From what I understand whenever I add a > new node its takes half from its neighbor. How can I make each node to > contain 1/3 of the keys in a 3 node cluster? Thanks. > > -- > Lev >