From: Brian Aker Date: Thu, 29 Nov 2007 21:38:46 +0000 (-0800) Subject: Updating documentation on consistent hashing. X-Git-Tag: 0.13~62 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c6f53a5dccd7ca93a369d2e4dffa846eacf265e2;p=awesomized%2Flibmemcached Updating documentation on consistent hashing. --- diff --git a/docs/memcached_behavior.pod b/docs/memcached_behavior.pod index cd3288da..e6547785 100755 --- a/docs/memcached_behavior.pod +++ b/docs/memcached_behavior.pod @@ -51,6 +51,14 @@ environments). Makes the default hashing algorithm for keys use MD5. The value can be set to either MEMCACHED_HASH_DEFAULT, MEMCACHED_HASH_MD5, MEMCACHED_HASH_CRC, MEMCACHED_HASH_FNV1_64, MEMCACHED_HASH_FNV1A_64, MEMCACHED_HASH_FNV1_32, MEMCACHED_HASH_FNV1A_32, MEMCACHED_HASH_KETAMA. The behavior for all hashes but MEMCACHED_HASH_DEFAULT is identitical to the Java driver written by Dustin Sallings. +=item MEMCACHED_BEHAVIOR_DISTRIBUTION + +Using this you can enable different means of distributing values to servers. +The default method is MEMCACHED_DISTRIBUTION_MODULO. You can enable +consistent hashing by setting MEMCACHED_DISTRIBUTION_CONSISTENT. +Consistent hashing delivers better distribution and allows servers to be +added to the cluster with minimal cache losses. + =item MEMCACHED_BEHAVIOR_CACHE_LOOKUPS Memcached can cache named lookups so that DNS lookups are made only once.