Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 70787 invoked from network); 29 Sep 2009 07:58:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Sep 2009 07:58:17 -0000 Received: (qmail 72696 invoked by uid 500); 29 Sep 2009 07:58:17 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 72674 invoked by uid 500); 29 Sep 2009 07:58:17 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 72664 invoked by uid 99); 29 Sep 2009 07:58:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 07:58:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of catap+cassandra@catap.ru designates 85.25.165.176 as permitted sender) Received: from [85.25.165.176] (HELO mx.catap.ru) (85.25.165.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2009 07:58:06 +0000 Received: from pppoe42358.mv.ru ([95.68.157.118] helo=satellite.home.catap.ru) by mx.catap.ru with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1MsXak-0008KJ-83 for cassandra-user@incubator.apache.org; Tue, 29 Sep 2009 11:57:46 +0400 Received: from satellite.home.catap.ru ([127.0.0.1] ident=catap) by satellite.home.catap.ru with esmtp (Exim 4.69) (envelope-from ) id 1MsXaD-0001bH-A7 for cassandra-user@incubator.apache.org; Tue, 29 Sep 2009 11:57:13 +0400 Date: Tue, 29 Sep 2009 11:57:13 +0400 Message-ID: <87ws3imbdy.wl%catap@catap.ru> From: Kirill A. Korinskiy To: cassandra-user@incubator.apache.org Subject: Re: Cassandra cluster setup [WAS Re: usage] In-Reply-To: References: <87y6nyn1fv.wl%catap@catap.ru> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1.50 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org At Mon, 28 Sep 2009 18:07:03 -0500, Michael Greene wrote: > > Which partitioner are you using? org.apache.cassandra.dht.RandomPartitioner > What are the tokens for the nodes or what does bin/nodeprobe ring > output? Starting Token Ending Token Size Address Ring 155352990208345788173011248201827004586 20283731607556365006538603533864462732 2 67.218.100.94 |<--| 20283731607556365006538603533864462732 21836380263552532517023620922568993549 2 67.218.100.93 | ^ 21836380263552532517023620922568993549 27825817942936339100357854565774016889 2 67.218.100.92 v | 27825817942936339100357854565774016889 56705206375993081178630024509360001548 2 67.218.100.116 | ^ 56705206375993081178630024509360001548 154786577292345968165033245777473466277 2 67.218.100.115 v | 154786577292345968165033245777473466277 155352990208345788173011248201827004586 2 67.218.100.117 |-->| > Are you setting the initial token or allowing Cassandra to > choose one? No, initialtoken is empty and Cassandra chose itinital toke. > What do your keys look like? Are they well-distributed? > So. I try to insert as key md5(X) where X is sequences 1..100000 and all key seting on 67.218.100.116 and 67.218.100.115. > Michael > > On Mon, Sep 28, 2009 at 5:34 PM, Kirill A. Korinskiy > wrote: > > At Mon, 28 Sep 2009 17:27:35 -0500, > > Michael Greene wrote: > >> > >> This is a new thread continued from the Facebook-usage thread. > >> > > > > sure > > > >> Cassandra automatically shards your data based on the Partitioner you > >> have setup in storage-conf.xml.  The copies are controlled by the > >> ReplicationFactor setting in the same configuration file.  If all your > >> nodes are in the same data center, then the default > >> ReplicaPlacementStrategy of RackUnawareStrategy should be fine. > >> > > > > ok. But on my test all my data go to two nodes. > > > > -- > > wbr, Kirill > > -- wbr, Kirill