gluster hash分布(DHT)的工作原理

gluster的hashcode计算完全依赖文件名(文件的filename,不包括各种路径)
brick里的每个文件夹的trusted.refungofs.dht属性指定了该文件夹容纳的hashcode的范围,具体如下:
trusted.refungofs.dht的前8个数字目前一直是00000001,接着8个数字目前一直是00000000
然后八个数字是起始hash值,最后八个数字是结束hash值(不知道是开区间还是闭区间)
那么DHT就能知道每个文件应该放置的文件夹

http://joejulian.name/blog/dht-misses-are-expensive/
http://hekafs.org/index.php/2011/04/glusterfs-extended-attributes/
http://hekafs.org/index.php/2012/03/glusterfs-algorithms-distribution/

猜你喜欢

转载自kabike.iteye.com/blog/1932076