[Sheepdog] key used for consistent hashing

Liu Yuan namei.unix at gmail.com
Thu Mar 8 08:29:24 CET 2012


On 03/08/2012 02:36 PM, Bill Hastings wrote:

> A very simple question as I am new to Sheepdog. Let us say I have a
> virtual disk "A" of size 16GB. What is used as the "key" for the
> consistent hash scheme when I want to write say 64 bytes at offset
> 4096?


"Key" is a compound value of 64 bits, consist of two part, one is based
on the image name(hash value, sheep internally uses it to name the
virtual disk), the other is offset according to the virtual disk.

Thanks,
Yuan



More information about the sheepdog mailing list