|
From: Yonik S. <yo...@ap...> - 2008-03-18 00:28:25
|
On Mon, Mar 17, 2008 at 7:39 PM, Ning Li <nin...@gm...> wrote: > Why cann't we use the string for a point on the ring? Each document > can have a unique point and all the documents have an order. Using an int/long with a good hash makes document distribution uniform on the ring, and thus makes it much easier for the master to assign ranges to nodes. For example, for a two node system the master could assign NodeA hashes 0x00000000-0x7FFFFFFF and NodeB hashes 0x80000000-0xFFFFFFFF, knowing nothing about the document ids. How would this work if one uses the String Ids? Or did you mean represent the hash as a String? -Yonik |