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 39BC24A4E for ; Fri, 10 Jun 2011 08:10:30 +0000 (UTC) Received: (qmail 23323 invoked by uid 500); 10 Jun 2011 08:10:28 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 23303 invoked by uid 500); 10 Jun 2011 08:10:28 -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 23295 invoked by uid 99); 10 Jun 2011 08:10:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 08:10:27 +0000 X-ASF-Spam-Status: No, hits=3.6 required=5.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,HTML_OBFUSCATE_05_10,SPF_PASS,TRACKER_ID X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [122.224.216.65] (HELO hzvscan2.utstar.com.cn) (122.224.216.65) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 08:10:21 +0000 Received: from cnmail01.cn.utstarcom.com (cnmail01.cn.utstarcom.com [172.18.22.151]) by hzvscan2.utstar.com.cn (8.13.8/8.13.8) with SMTP id p5A89hPW004282 for ; Fri, 10 Jun 2011 16:09:44 +0800 Received: from CNMAIL12.cn.utstarcom.com ([172.18.22.158]) by cnmail01.cn.utstarcom.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 10 Jun 2011 16:09:43 +0800 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC2745.C1319CB8" Subject: toke range Date: Fri, 10 Jun 2011 16:09:42 +0800 Message-ID: <7DA4B654C7FEB24C9998EE4867BEE93EB9EBB1@CNMAIL12.cn.utstarcom.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: toke range Thread-Index: AcwnEFFs/ok/EJtdRTeVMI7sQoPcNwABcdQQAApL/LAAADHiIA== References: From: "Donna Li" To: X-OriginalArrivalTime: 10 Jun 2011 08:09:43.0220 (UTC) FILETIME=[C1104F40:01CC2745] This is a multi-part message in MIME format. ------_=_NextPart_001_01CC2745.C1319CB8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 Hello all: Cassandra use MD5 hash and we can get the token range such as: Address Status Load Range Ring =20 142717619497548302610133488236729667990 =20 10.63.59.71 Up 140.93 KB 38183556207930269037140083379529366016 |<--| 10.63.59.72 Up 133.91 KB 93623288409632417443453979080454166465 | | 10.63.59.74 Up 178.93 KB 133908707295005027172461791030411347948 | | 10.63.59.73 Up 100.74 KB 142717619497548302610133488236729667990 |-->| If I insert a key donna, and MD5(donna) =3D 32FF0880C7C75D751D0F9EF3A816EAE2(hex) =3D 6.6373303140336465e+37(dec), 38183556207930269037140083379529366016 < 6.6373303140336465e+37 < 93623288409632417443453979080454166465, so the key save in 10.63.59.72. If the replication is 3, the key is also saved in 10.63.59.74 and 10.63.59.73. Am I right? =20 Best Regards Donna li ------_=_NextPart_001_01CC2745.C1319CB8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 <= /span>

Hello all:

       &= nbsp; Cassandra use MD5 hash and we can get the token range such = as:

Address      = Status     Load          Range           &n= bsp;           &nb= sp;           &nbs= p;  Ring

       &= nbsp;           &n= bsp;           &nb= sp;       142717619497548302610133488236729667990    =

10.63.59.71   Up         140.93 KB     38183556207930269037140083379529366016     = |<--|

10.63.59.72   Up         133.91 KB     93623288409632417443453979080454166465     = |   |

10.63.59.74   Up         178.93 KB     133908707295005027172461791030411347948    |   = |

10.63.59.73   Up         100.74 KB     142717619497548302610133488236729667990    = |-->|

       &= nbsp; If I insert a key donna, and MD5(donna) =3D 32FF0880C7C75D751D0F9EF3A816EAE2(hex) =3D 6.6373303140336465e+37(dec), = 38183556207930269037140083379529366016     < 6.6373303140336465e+37 < 93623288409632417443453979080454166465, =  so the key save in 10.63.59.72. If the replication is 3, the key is also = saved in 10.63.59.74 and 10.63.59.73.  Am I right?

 

Best = Regards

Donna li

------_=_NextPart_001_01CC2745.C1319CB8--