"memcache.hash_strategy" = consistent 重新编译,这时候就是使用Consistent hashing算法来寻找服务器存取数据了。
有效测试数据表明,使用Consistent hashing可以极大的改善增删Memcache时缓存大范围丢失的情况。
NonConsistentHash: 92% of lookups changed after adding a target to the existing 10
NonConsistentHash: 90% of lookups changed after removing 1 of 10 targets
ConsistentHash: 6% of lookups changed after adding a target to the existing 10
ConsistentHash: 9% of lookups changed after removing 1 of 10 targets
Tag: 部署, Memcache, 分布式
kimi at 2009-04-29 21:19:00 in Memcache
版权声明:原创作品,欢迎转载,转载时请务必以超链接形式标明文章原始地址、作者信息和本声明。
“Memcache分布式部署方案”
7条回复
deeka at 2009-04-30 09:30:53 回复
我觉得最好拿一台稳定的机子,在addServer之connect着
Guest at 2009-06-01 15:44:40 回复
Come on, boy! It should be “Memcached”….
kimi at 6月 9th, 2009 at 09:46:33 回复
@Guest, tks for reminding me
丹木秋风 at 2009-06-24 16:51:01 回复
再看的时候又实际化了一些啊.
small at 2009-07-14 14:18:53 回复
最近在看 memcache的源码,不知道楼主可否写一些源码分析,或者分析一下memcache的实现原理